iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.42k stars 1.85k forks source link

Invidious Setup fails on fresh debian installation #1110

Closed BasePointer closed 4 years ago

BasePointer commented 4 years ago

Hi there,

I made a new virtual machine for invidious. I am using the latest debian (10). The install fails. This is the log:


Invidious is ready to be installed, press any key to continue...

➜ Downloading Invidious from GitHub
Klone nach 'invidious' ...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 12318 (delta 18), reused 27 (delta 9), pack-reused 12257
Empfange Objekte: 100% (12318/12318), 15.52 MiB | 2.99 MiB/s, Fertig.
Löse Unterschiede auf: 100% (7871/7871), Fertig.
Zu neuem Branch 'release' gewechselt
➜ Done
/home/invidious
Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postgresql
➜ Creating user kemal with password invidious
CREATE ROLE
➜ Creating database invidious with owner kemal
CREATE DATABASE
➜ Grant all on database invidious to user kemal
GRANT
➜ Running /home/invidious/invidious/config/sql/annotations.sql
CREATE TABLE
GRANT
➜ Running /home/invidious/invidious/config/sql/channels.sql
CREATE TABLE
GRANT
CREATE INDEX
➜ Running /home/invidious/invidious/config/sql/channel_videos.sql
CREATE TABLE
GRANT
CREATE INDEX
➜ Running /home/invidious/invidious/config/sql/nonces.sql
CREATE TABLE
GRANT
CREATE INDEX
➜ Running /home/invidious/invidious/config/sql/playlists.sql
psql:/home/invidious/invidious/config/sql/playlists.sql:16: FEHLER:  Typ »privacy« existiert nicht
ZEILE 10:     privacy privacy,
                      ^
psql:/home/invidious/invidious/config/sql/playlists.sql:18: FEHLER:  Relation »public.playlists« existiert nicht
➜ Running /home/invidious/invidious/config/sql/playlist_videos.sql
psql:/home/invidious/invidious/config/sql/playlist_videos.sql:17: FEHLER:  Relation »playlists« existiert nicht
psql:/home/invidious/invidious/config/sql/playlist_videos.sql:19: FEHLER:  Relation »public.playlist_videos« existiert nicht
➜ Running /home/invidious/invidious/config/sql/privacy.sql
CREATE TYPE
➜ Running /home/invidious/invidious/config/sql/session_ids.sql
CREATE TABLE
GRANT
CREATE INDEX
➜ Running /home/invidious/invidious/config/sql/users.sql
CREATE TABLE
GRANT
CREATE INDEX
➜ Running /home/invidious/invidious/config/sql/videos.sql
CREATE TABLE
GRANT
CREATE INDEX
✔ Finished Database section
➜ Updating config.yml with new info...
✔ Done.
Resolving dependencies
Fetching https://github.com/will/crystal-pg.git
Fetching https://github.com/crystal-lang/crystal-sqlite3.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/ysbaddaden/pool.git
Fetching https://github.com/omarroth/protodec.git
Fetching https://github.com/omarroth/lsquic.cr.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/crystal-loot/exception_page.git
Installing pg (0.19.0)
Installing sqlite3 (0.14.0)
Installing kemal (0.26.1)
Installing pool (0.2.3)
Installing protodec (0.1.2)
Installing lsquic (0.1.9)
Installing db (0.7.0)
Installing radix (0.3.9)
Installing kilt (0.4.0)
Installing exception_page (0.1.4)
Writing shard.lock
Resolving dependencies
Fetching https://github.com/will/crystal-pg.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/crystal-lang/crystal-sqlite3.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/ysbaddaden/pool.git
Fetching https://github.com/omarroth/protodec.git
Fetching https://github.com/omarroth/lsquic.cr.git
Using pg (0.19.0)
Using sqlite3 (0.14.0)
Using kemal (0.26.1)
Using pool (0.2.3)
Using protodec (0.1.2)
Using lsquic (0.1.9)
Using db (0.7.0)
Using radix (0.3.9)
Using kilt (0.4.0)
Using exception_page (0.1.4)
Writing shard.lock
Showing last frame. Use --error-trace for full trace.

In lib/pg/src/pq/connection.cr:170:20

 170 | rescue e : Errno
                  ^----
Error: Errno is not a subclass of Exception
✗ Invidious service installation failed...
Adding logrotate configuration...
/home/invidious/invidious/invidious.log {
    rotate 4
    weekly
    notifempty
    missingok
    compress
    minsize 1048576
}
 (done)

 ╔═══════════════════════════════════════════════════════════════════╗
 ║                        Invidious Update.sh                        ║ 
 ║               Automatic update script for Invidio.us              ║
 ║                      Maintained by @tmiland                       ║
 ║                          version: 1.4.7                           ║
 ╚═══════════════════════════════════════════════════════════════════╝

Thank you for using the Invidious Update.sh script.

✔ Invidious install done. Now visit http://192.168.100.63:80

Documentation for this script is available here:
 ➜ https://github.com/tmiland/Invidious-Updater
BasePointer commented 4 years ago

Wrong repo I guess.

haizrul commented 4 years ago

How do you fix this problem? Happened to me too.

BasePointer commented 4 years ago

I didnt, I opened the issue here.