Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker v3.29 crashing #228

Closed
abdulocracy opened this issue May 27, 2022 · 16 comments
Closed

Docker v3.29 crashing #228

abdulocracy opened this issue May 27, 2022 · 16 comments
Labels
Milestone

Comments

@abdulocracy
Copy link

After updating to the latest release there are the following log errors, LMS later exits with code 139:

lms  | [2022-May-27 08:24:03.315] 1 - [warning] "config: The behind-reverse-proxy configuration option is deprecated, use a <trusted-proxy-config> block instead"
lms  | [2022-May-27 08:24:03.315] 1 - [info] - [UTILS] Starting IO context with 24 threads...
lms  | [2022-May-27 08:24:03.316] 1 - [info] - [DB] Creating connection pool on file /var/lms/lms.db
lms  | [2022-May-27 08:24:03.599] 1 - [error] - [DB] Cannot create tables: Sqlite3: create table "cluster_type" (
lms  |   "id" integer primary key autoincrement,
lms  |   "version" integer not null,
lms  |   "name" text not null,
lms  |   "scan_settings_id" bigint,
lms  |   constraint "fk_cluster_type_scan_settings" foreign key ("scan_settings_id") references "scan_settings" ("id") on delete cascade deferrable initially deferred
lms  | ): table "cluster_type" already exists
lms  | [2022-May-27 08:24:03.599] 1 - [info] - [DB] Database version = 33, LMS binary version = 33
lms  | [2022-May-27 08:24:04.122] 1 - [info] - [COVER] JPEG export quality = 75
lms  | [2022-May-27 08:24:04.122] 1 - [info] - [COVER] Default cover path = '/usr/share/lms/approot//images/unknown-cover.jpg'
lms  | [2022-May-27 08:24:04.122] 1 - [info] - [COVER] Max cache size = 30000000
lms  | [2022-May-27 08:24:04.122] 1 - [info] - [COVER] Max file size = 10000000
@abdulocracy
Copy link
Author

Rolled back to 3.28.0 in the meantime, back to functioning normally.

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

Arf it was working fine when testing...
Which platform?

@abdulocracy
Copy link
Author

Debian 11, Docker 20.10.16, Docker compose 2.5.0

@abdulocracy
Copy link
Author

From the compose file:

  lms:
    command: /var/lms/lms.conf
    container_name: lms
    depends_on:
      - traefik
    image: epoupon/lms:3.28.0
    labels:
      traefik.enable: "true"
      traefik.http.routers.lms.entrypoints: "https"
      traefik.http.routers.lms.rule: "Host(`music.abdulocra.cy`)"
      traefik.http.routers.lms.tls.certresolver: "le"
      traefik.http.services.lms.loadbalancer.server.port: "5082"
    networks:
      - web
    restart: unless-stopped
    user: 1000:1000
    volumes:
      - ./data/lms:/var/lms
      - ../music/music-archive:/music:ro

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

Amd64?

@abdulocracy
Copy link
Author

Yes

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

I tested the uploaded 3.29.0 image, it works fine for me.
I also have the error log entry about "Cannot create tables", but it is not important (should be an info).

Do you have more information? Does it crash only when the web interface is accessed? Does it crash at the very beginning?
Can you run with debug log level? (you can provide a custom lms.conf file and set log-config = "*";)

@khena
Copy link

khena commented May 27, 2022

Hi @epoupon @abdulocracy

same issue here after update to the last image version. After quick investigation, I have this entry in my host syslog (the DB UPDATER came from the container, after that it's a kernel issue) :

May 27 14:22:28 ns362699 lms[1143]: [2022-May-27 12:22:28.995] 1 - [info] - [DB UPDATER] Scheduling next scan at Sat May 28 05:00:00 2022
May 27 14:22:28 ns362699 lms[1143]:
May 27 14:22:28 ns362699 kernel: traps: lms[14079] general protection ip:751095e80920 sp:751093e1d338 error:0 in ld-musl-x86_64.so.1[751095e72000+48000]
May 27 14:22:28 ns362699 kernel: grsec: Segmentation fault occurred at            (nil) in /usr/bin/lms[lms:14079] uid/euid:1000/1000 gid/egid:1000/1000, parent /usr/bin/containerd-shim[containerd-shim:14009] uid/euid:0/0 gid/egid:0/0

Note the container is restarting, without accessing to the web interface

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

Thanks for the valuable information! Indeed I managed to reproduce this by just launching a scan

@epoupon epoupon added the bug label May 27, 2022
@epoupon epoupon added this to the v3.29.1 milestone May 27, 2022
@rluetzner
Copy link

I solved this by throwing away the DB. If you're not attached to the metadata you can try this and 3.29 will work.

@abdulocracy
Copy link
Author

Unfortunately since starred tracks can't be exported I can't part with the DB.

@epoupon
Copy link
Owner

epoupon commented May 27, 2022

Yes, just stick to 3.28.0, we will eventualy figure out what is wrong with this 3.29.0.
Throwing the DB is not an acceptable solution as the problem is still here.

@epoupon
Copy link
Owner

epoupon commented May 28, 2022

I repushed the 3.29.0 and latest images, built this time on Alpine 3.14 as it seems to work as before.
You have to delete your image (docker image rm -f epoupon/lms:latest epoupon/lms:3.29.0) to pull it again

@rluetzner
Copy link

I can confirm that the crash no longer happens with the new image. I've restored my old DB from a backup to test this and made sure that it fails again, before I pulled the new image.

LMS is now up and running again, with my old metadata intact. 🙂

@epoupon
Copy link
Owner

epoupon commented May 28, 2022

Unfortunately since starred tracks can't be exported I can't part with the DB.

Hope this will be possible soon with #163

@abdulocracy
Copy link
Author

Can confirm it's fixed now. Cool theme! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants