Unable to install invidious

Hi. I’m getting this error, is there a problem with ynh invidious package? regards

args:
  app: invidious
  args: domain=domain2.tld&is_public=1&language=en
  force: false
  label: Invidious
  no_remove_on_failure: false
ended_at: 2021-05-04 17:36:57.373389
env:
  YNH_APP_ARG_DOMAIN: domain2.tld
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ARG_LANGUAGE: en
  YNH_APP_ID: invidious
  YNH_APP_INSTANCE_NAME: invidious
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.20.1~ynh8
error: An error occurred inside the app installation script
interface: api
operation: app_install
parent: null
related_to:
- - app
  - invidious
started_at: 2021-05-04 17:36:48.499476
success: false
yunohost_version: 4.1.8

============

2021-05-04 19:36:48,508: INFO - Installing invidious...
2021-05-04 19:36:48,592: DEBUG - Permission 'invidious.main' updated
2021-05-04 19:36:48,630: DEBUG - Full log of this operation: '<a href="#/tools/logs/20210504-173648-permission_url-invidious" style="text-decoration:underline">Update url related to permission 'invidious'</a>'
2021-05-04 19:36:48,719: DEBUG - The permission database has been resynchronized
2021-05-04 19:36:48,761: DEBUG - SSOwat configuration regenerated
2021-05-04 19:36:48,806: DEBUG - Permission 'invidious.main' created
2021-05-04 19:36:48,806: DEBUG - Full log of this operation: '<a href="#/tools/logs/20210504-173648-permission_create-invidious" style="text-decoration:underline">Create permission 'invidious'</a>'
2021-05-04 19:36:48,820: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_APP_MANIFEST_VERSION='0.20.1~ynh8' YNH_APP_INSTANCE_NAME=invidious YNH_STDINFO=/tmp/tmpoQwjMe/stdinfo YNH_CWD=/var/cache/yunohost/from_file/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_INTERFACE=api YNH_APP_ID=invidious YNH_STDRETURN=/tmp/tmpfVRQdz/stdreturn YNH_APP_ARG_DOMAIN=domain2.tld BASH_XTRACEFD=7 /bin/bash -x "./install" domain2.tld 1 en invidious 7>&1'
2021-05-04 19:36:48,837: DEBUG - + source _common.sh
2021-05-04 19:36:48,837: DEBUG - ++ pkg_dependencies='apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev'
2021-05-04 19:36:48,838: DEBUG - + source /usr/share/yunohost/helpers
2021-05-04 19:36:48,838: DEBUG - +++ set +o
2021-05-04 19:36:48,838: DEBUG - +++ grep xtrace
2021-05-04 19:36:48,838: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-05-04 19:36:48,838: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-05-04 19:36:48,938: DEBUG - + ynh_abort_if_errors
2021-05-04 19:36:48,938: DEBUG - + set -o errexit
2021-05-04 19:36:48,938: DEBUG - + set -o nounset
2021-05-04 19:36:48,939: DEBUG - + trap ynh_exit_properly EXIT
2021-05-04 19:36:48,939: DEBUG - + domain=domain2.tld
2021-05-04 19:36:48,939: DEBUG - + path_url=/
2021-05-04 19:36:48,939: DEBUG - + is_public=1
2021-05-04 19:36:48,939: DEBUG - + language=en
2021-05-04 19:36:48,939: DEBUG - + app=invidious
2021-05-04 19:36:48,939: DEBUG - + echo '[....................] > Validating installation parameters...'
2021-05-04 19:36:48,940: DEBUG - + final_path=/var/www/invidious
2021-05-04 19:36:48,940: DEBUG - + test '!' -e /var/www/invidious
2021-05-04 19:36:48,940: DEBUG - + ynh_webpath_register --app=invidious --domain=domain2.tld --path_url=/
2021-05-04 19:36:49,041: DEBUG - + yunohost app register-url invidious domain2.tld /
2021-05-04 19:36:49,041: INFO - [....................] > Validating installation parameters...
2021-05-04 19:36:49,644: DEBUG - + echo '[+...................] > Storing installation settings...'
2021-05-04 19:36:49,644: DEBUG - + ynh_app_setting_set --app=invidious --key=domain --value=domain2.tld
2021-05-04 19:36:49,745: DEBUG - + [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-05-04 19:36:49,745: INFO - [+...................] > Storing installation settings...
2021-05-04 19:36:49,746: DEBUG - + ynh_app_setting set invidious domain domain2.tld
2021-05-04 19:36:49,846: DEBUG - + ynh_app_setting_set --app=invidious --key=path --value=/
2021-05-04 19:36:49,848: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-05-04 19:36:49,848: DEBUG - + ynh_app_setting set invidious path /
2021-05-04 19:36:49,949: DEBUG - + ynh_app_setting_set --app=invidious --key=language --value=en
2021-05-04 19:36:50,050: DEBUG - + [[ language =~ (unprotected|protected|skipped)_ ]]
2021-05-04 19:36:50,050: DEBUG - + ynh_app_setting set invidious language en
2021-05-04 19:36:50,152: DEBUG - + echo '[#...................] > Finding an available port...'
2021-05-04 19:36:50,152: DEBUG - ++ ynh_find_port --port=3000
2021-05-04 19:36:50,152: DEBUG - ++ test -n 3000
2021-05-04 19:36:50,152: DEBUG - ++ ynh_port_available --port=3000
2021-05-04 19:36:50,153: DEBUG - ++ ss --numeric --listening --tcp --udp
2021-05-04 19:36:50,153: DEBUG - ++ awk '{print$5}'
2021-05-04 19:36:50,153: DEBUG - ++ grep --quiet --extended-regexp ':3000$'
2021-05-04 19:36:50,153: DEBUG - ++ return 0
2021-05-04 19:36:50,153: DEBUG - ++ echo 3000
2021-05-04 19:36:50,153: DEBUG - + port=3000
2021-05-04 19:36:50,153: DEBUG - + ynh_app_setting_set --app=invidious --key=port --value=3000
2021-05-04 19:36:50,254: DEBUG - + [[ port =~ (unprotected|protected|skipped)_ ]]
2021-05-04 19:36:50,255: INFO - [#...................] > Finding an available port...
2021-05-04 19:36:50,255: DEBUG - + ynh_app_setting set invidious port 3000
2021-05-04 19:36:50,356: DEBUG - + echo '[#++++...............] > Installing dependencies...'
2021-05-04 19:36:50,356: DEBUG - + ynh_exec_warn_less curl -fsSL https://crystal-lang.org/install.sh
2021-05-04 19:36:50,356: DEBUG - + bash -s -- --crystal=0.36
2021-05-04 19:36:50,357: DEBUG - + eval curl -fsSL https://crystal-lang.org/install.sh
2021-05-04 19:36:50,357: DEBUG - ++ curl -fsSL https://crystal-lang.org/install.sh
2021-05-04 19:36:50,858: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2021-05-04 19:36:50,858: INFO - [#++++...............] > Installing dependencies...
2021-05-04 19:36:50,859: DEBUG - Hit:2 http://security.debian.org buster/updates InRelease
2021-05-04 19:36:50,859: DEBUG - Hit:3 http://deb.debian.org/debian buster-updates InRelease
2021-05-04 19:36:50,859: DEBUG - Hit:5 http://mirror.hetzner.de/debian/packages buster InRelease
2021-05-04 19:36:50,859: DEBUG - Hit:4 http://download.opensuse.org/repositories/devel:languages:crystal/Debian_10  InRelease
2021-05-04 19:36:50,859: DEBUG - Hit:6 https://download.docker.com/linux/debian buster InRelease
2021-05-04 19:36:50,859: DEBUG - Hit:7 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2021-05-04 19:36:50,959: DEBUG - Hit:8 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2021-05-04 19:36:50,960: DEBUG - Get:9 http://mirror.hetzner.de/debian/security buster/updates InRelease [65.4 kB]
2021-05-04 19:36:50,960: DEBUG - Hit:10 http://forge.yunohost.org/debian buster InRelease
2021-05-04 19:36:51,962: DEBUG - Get:11 http://mirror.hetzner.de/debian/security buster/updates/main amd64 Packages [285 kB]
2021-05-04 19:36:52,163: DEBUG - Fetched 350 kB in 1s (255 kB/s)
2021-05-04 19:36:53,266: DEBUG - Reading package lists...
2021-05-04 19:36:53,366: DEBUG - Reading package lists...
2021-05-04 19:36:53,567: DEBUG - Building dependency tree...
2021-05-04 19:36:53,567: DEBUG - Reading state information...
2021-05-04 19:36:53,768: DEBUG - gpg is already the newest version (2.2.12-1+deb10u1).
2021-05-04 19:36:53,768: DEBUG - wget is already the newest version (1.20.1-1.1).
2021-05-04 19:36:53,768: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2021-05-04 19:36:53,969: DEBUG - deb http://download.opensuse.org/repositories/devel:languages:crystal/Debian_10/ /
2021-05-04 19:36:54,170: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:2 http://security.debian.org buster/updates InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:3 http://deb.debian.org/debian buster-updates InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:5 http://mirror.hetzner.de/debian/packages buster InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:6 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:7 http://forge.yunohost.org/debian buster InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:4 http://download.opensuse.org/repositories/devel:languages:crystal/Debian_10  InRelease
2021-05-04 19:36:54,170: DEBUG - Hit:8 https://download.docker.com/linux/debian buster InRelease
2021-05-04 19:36:54,171: DEBUG - Hit:9 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2021-05-04 19:36:54,314: DEBUG - Hit:10 http://mirror.hetzner.de/debian/security buster/updates InRelease
2021-05-04 19:36:56,318: DEBUG - Reading package lists...
2021-05-04 19:36:56,419: DEBUG - Reading package lists...
2021-05-04 19:36:56,619: DEBUG - Building dependency tree...
2021-05-04 19:36:56,620: DEBUG - Reading state information...
2021-05-04 19:36:56,820: DEBUG - + ynh_exit_properly
2021-05-04 19:36:56,821: WARNING - E: Version '0.36*' for 'crystal' was not found
2021-05-04 19:36:56,822: DEBUG - + local exit_code=100
2021-05-04 19:36:56,822: DEBUG - + '[' 100 -eq 0 ']'
2021-05-04 19:36:56,822: DEBUG - + trap '' EXIT
2021-05-04 19:36:56,823: DEBUG - + set +o errexit
2021-05-04 19:36:56,823: DEBUG - + set +o nounset
2021-05-04 19:36:56,823: DEBUG - + sleep 0.5
2021-05-04 19:36:57,324: DEBUG - + type -t ynh_clean_setup
2021-05-04 19:36:57,325: DEBUG - + ynh_clean_setup
2021-05-04 19:36:57,325: DEBUG - + ynh_clean_check_starting
2021-05-04 19:36:57,325: DEBUG - + '[' -n '' ']'
2021-05-04 19:36:57,325: DEBUG - + '[' -n '' ']'
2021-05-04 19:36:57,326: DEBUG - + exit 1
2021-05-04 19:36:57,372: ERROR - Unable to install invidious: An error occurred inside the app installation script

Bug report on github: Crystal version conflict · Issue #26 · YunoHost-Apps/invidious_ynh · GitHub
(I had it here for reference)

1 Like

A workaround for me was to install crystal 0.36 myself before installation.

After that Invidious installed succesfully. I could upgrade to the latest crystal version after installation without Invidious causing problems.

:slight_smile:

1 Like

Similar issue with another app : Unable to install invidious

That repo is problematic :sweat_smile:

Well, after trying different methods, I was able to fix it. I share the steps to follow (in my case, for a debian 10 VPS server):

Download version 0.36 of Crystal from the repository: https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal_0.36.1-1_amd64.deb

Then we need to upload the downloaded file to our server. To do this, we open a terminal in the downloads folder (or wherever the downloaded file is) and use:

scp crystal_0.36.1-1_amd64.deb admin@yourIP:/home/admin (or other directory where you have root permissions).

Then we access via SSH and use the command:

sudo apt install ./[deb_path]
(example: sudo apt install ./home/admin/crystal_0.36.1-1_amd64.deb)

And with that you can install invidious. After you have installed it, you can upgrade the crystal version without any problems.

If you have a local server, I guess you can run the .deb file directly.

I hope it helps.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.