dlandon / logitechmediaserver

Logitech Media Server Docker
MIT License
3 stars 3 forks source link

DB Errors and Unable to connect Volumio #3

Open semtex41 opened 5 years ago

semtex41 commented 5 years ago

Hey, I really appreciate you creating the dockerhub repo and unraid template!

I am day1 with LMS and Volumio, so just trying to understand the expected behaviors but I am having some issues.

First, Volumio+Squeezelite plugin fails to see the LMS container. The LMS container also fails to see Volumio running on a RasPi that I can access no problem.

I have dumped the image and blasted the appdata, but I am still having the same problem. In the logs, I did notice this:

Start Logitech Media Server... [19-04-17 23:45:54.6192] main::init (387) Starting Logitech Media Server (v7.9.2, 1550612824, Tue Feb 19 23:19:59 CET 2019) perl 5.022001 - x86_64-linux-gnu-thread-multi [19-04-17 23:45:54.7144] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table [19-04-17 23:45:54.7309] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized! [19-04-17 23:45:54.7905] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table [19-04-17 23:45:54.8071] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized! [19-04-17 23:45:54.9980] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table [19-04-17 23:45:55.0154] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized! [19-04-17 23:45:55.0865] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan. [19-04-17 23:45:55.4566] main::main (205) Starting Logitech Media Server scanner (v7.9.2, 1550612824, Tue Feb 19 23:19:59 CET 2019) perl 5.022001 [19-04-17 23:45:55.5393] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!

After about 15 minutes, I bounced the new container and finally connected to the web server. Again, LMS is saying it needs to update but I am unable to see Volumio.

Do you have any suggestons for a noob? Also, without tags I am unable to try a previous version. Is there a technical reason with the software for not commiting the image per version?

Thank you very much!

dlandon commented 5 years ago

I don't believe your issues are the docker. Try LMS support to get help.

There is really no versioning with LMS. I apply nightly builds once in a while just to keep up, but the nightly builds are for the same version.

Findus76 commented 5 years ago

Hello, Also experiencing problems with DB. I'am not runnig PUID PGID as 99, 100. Is that a problem?

Boot log from docker Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 passwd amd64 1:4.2-3.1ubuntu5.4 [780 kB], Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tzdata all 2019a-0ubuntu0.16.04 [167 kB], Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute2 amd64 4.3.0-1ubuntu3.16.04.5 [523 kB], Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.14 [153 kB], Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.14 [667 kB], Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.5 [161 kB], Preconfiguring packages ..., Fetched 2754 kB in 0s (4783 kB/s), (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19212 files and directories currently installed.) , Preparing to unpack .../login_1%3a4.2-3.1ubuntu5.4_amd64.deb ... , Unpacking login (1:4.2-3.1ubuntu5.4) over (1:4.2-3.1ubuntu5.3) ... , Setting up login (1:4.2-3.1ubuntu5.4) ... , (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19212 files and directories currently installed.) , Preparing to unpack .../passwd_1%3a4.2-3.1ubuntu5.4_amd64.deb ... , Unpacking passwd (1:4.2-3.1ubuntu5.4) over (1:4.2-3.1ubuntu5.3) ... , Setting up passwd (1:4.2-3.1ubuntu5.4) ... , (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19212 files and directories currently installed.) , Preparing to unpack .../tzdata_2019a-0ubuntu0.16.04_all.deb ... , Unpacking tzdata (2019a-0ubuntu0.16.04) over (2018i-0ubuntu0.16.04) ... , dpkg: error processing archive /var/cache/apt/archives/tzdata_2019a-0ubuntu0.16.04_all.deb (--unpack): , unable to make backup link of './usr/share/zoneinfo/UTC' before installing new version: Invalid cross-device link , Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.5_amd64.deb ... , Unpacking iproute2 (4.3.0-1ubuntu3.16.04.5) over (4.3.0-1ubuntu3.16.04.4) ... , Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.14_amd64.deb ... , Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.14) over (1:9.10.3.dfsg.P4-8ubuntu1.12) ... , Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.14_amd64.deb ... , Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.14) over (1:9.10.3.dfsg.P4-8ubuntu1.12) ... , Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.5_amd64.deb ... , Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.5) over (2.4.42+dfsg-2ubuntu3.4) ... , Processing triggers for libc-bin (2.23-0ubuntu11) ... , Errors were encountered while processing: , /var/cache/apt/archives/tzdata_2019a-0ubuntu0.16.04_all.deb , E: Sub-process /usr/bin/dpkg returned an error code (1), Reading package lists..., Building dependency tree..., Reading state information..., Calculating upgrade..., The following packages will be upgraded:, tzdata, 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded., 4 not fully installed or removed., Need to get 167 kB of archives., After this operation, 0 B of additional disk space will be used., Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tzdata all 2019a-0ubuntu0.16.04 [167 kB], Preconfiguring packages ..., Fetched 167 kB in 0s (726 kB/s), (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19212 files and directories currently installed.) , Preparing to unpack .../tzdata_2019a-0ubuntu0.16.04_all.deb ... , Unpacking tzdata (2019a-0ubuntu0.16.04) over (2018i-0ubuntu0.16.04) ... , dpkg: error processing archive /var/cache/apt/archives/tzdata_2019a-0ubuntu0.16.04_all.deb (--unpack): , unable to make backup link of './usr/share/zoneinfo/UTC' before installing new version: Invalid cross-device link , Errors were encountered while processing: , /var/cache/apt/archives/tzdata_2019a-0ubuntu0.16.04_all.deb , E: Sub-process /usr/bin/dpkg returned an error code (1), Reading package lists..., Building dependency tree..., Reading state information..., 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded., 4 not fully installed or removed., After this operation, 0 B of additional disk space will be used., Setting up iproute2 (4.3.0-1ubuntu3.16.04.5) ... , Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.14) ... , Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.14) ... , Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.5) ... , Processing triggers for libc-bin (2.23-0ubuntu11) ... , *** Running /etc/my_init.d/30_firstrun.sh..., usermod: group '1000' does not exist, *** Running /etc/my_init.d/999_advanced_script.sh..., *** Running /etc/rc.local..., *** Booting runit daemon..., *** Runit started as PID 409, Start Logitech Media Server..., dirsFor: Didn't find a match request: [scprefs], dirsFor: Didn't find a match request: [videos], dirsFor: Didn't find a match request: [pictures], Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189., [19-04-29 21:58:46.4024] main::init (387) Starting Logitech Media Server (v7.9.2, 1555406898, Tue Apr 16 11:48:46 CEST 2019) perl 5.022001 - x86_64-linux-gnu-thread-multi, [19-04-29 21:58:48.1673] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:58:48.2761] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, [19-04-29 21:58:49.0372] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:58:49.1246] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, Start Logitech Media Server..., Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189., [19-04-29 21:58:55.7602] main::init (387) Starting Logitech Media Server (v7.9.2, 1555406898, Tue Apr 16 11:48:46 CEST 2019) perl 5.022001 - x86_64-linux-gnu-thread-multi, [19-04-29 21:58:55.9058] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:58:55.9955] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, [19-04-29 21:58:56.2672] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:58:56.3536] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, [19-04-29 21:58:56.8239] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:58:56.9221] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, Start Logitech Media Server..., Can't call method "log" on an undefined value at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender.pm line 189., [19-04-29 21:59:03.1970] main::init (387) Starting Logitech Media Server (v7.9.2, 1555406898, Tue Apr 16 11:48:46 CEST 2019) perl 5.022001 - x86_64-linux-gnu-thread-multi, [19-04-29 21:59:03.3413] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:59:03.4175] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, [19-04-29 21:59:03.6351] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:59:03.7195] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, [19-04-29 21:59:04.1805] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table, [19-04-29 21:59:04.2657] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!, Start Logitech Media Server...,

Docker compose file: ` logitechmediaserver: container_name: "LogitechMediaServer" image: dlandon/logitechmediaserver restart: unless-stopped network_mode: bridge environment:

In volume map, I can see in folder (/stv/docker/lms/config) cache, logs, playlists, prefs. So someting has been created.

What can i try?

Tanks for lms docker!