gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
4.05k stars 240 forks source link

Files are not being analyzed on linux #1668

Closed SSoft7 closed 2 months ago

SSoft7 commented 2 months ago

Steps to reproduce

Just add a folder with cbz files and add it to the library and then click analyze

Expected behavior

It should analyze successfully and thumbnails should show up.

Actual behavior

Logs

https://pastebin.com/717hhzyf

Komga version

1.11.3

Operating system

Alpine Linux Docker

Installation method

other (please provide more details below)

Other details

Docker/Alpine Linux Image

Acknowledgements

gotson commented 2 months ago

and then click analyze

you need to scan, not analyze

SSoft7 commented 2 months ago

and then click analyze

you need to scan, not analyze

I tried already. "Scan Library Files" and "Scan Library Files (Deep)". It was stuck, then I tried "Analyze" on a single item.

It is stuck like this image

Media Analysis page is empty image

gotson commented 2 months ago

can you provide logs?

SSoft7 commented 2 months ago

can you provide logs?

Yes, Regular Logs will work? or I need to provide Debug/TRACE log?

gotson commented 2 months ago

regular logs, but more than what you provided so far which doesn't show anything weird. The logs in the initial post show that books are being analyzed.

SSoft7 commented 2 months ago

Here you can see the image of the dashboard - https://imgur.com/Kfhczf8 Here is the regular logs - https://bin.disroot.org/?68f0f2266d08e911#DTo1anVCJ8xQf8szrjxCRcwrVmsZ45mAmMgiBbguL1Kx

Let me know if debug log is required after this.

gotson commented 2 months ago

it says you run Komga with docker alpine linux, can you clarify how you are running it ? What's the underlying system hardware / OS ?

has it worked before ?

SSoft7 commented 2 months ago

it says you run Komga with docker alpine linux, can you clarify how you are running it ? What's the underlying system hardware / OS ?

has it worked before ?

gotson commented 2 months ago

why do you mention alpine in the original ticket ?

SSoft7 commented 2 months ago

why do you mention alpine in the original ticket ?

Because I'm running komga within a Alpine based container...not on the underlaying Ubuntu OS directly.

Also, I'm not running the non-docker local installation v.1.7.1-master myself. Another komga user is running it.

gotson commented 2 months ago

Because I'm running komga within a Alpine based container...not on the underlaying Ubuntu OS directly.

Komga does not ship an official Alpine docker image, the official image is ubuntu based.

Given you manage to get Komga running without docker successfully, the issue most likely points at this unofficial docker image.

SSoft7 commented 2 months ago

Because I'm running komga within a Alpine based container...not on the underlaying Ubuntu OS directly.

Komga does not ship an official Alpine docker image, the official image is ubuntu based.

Given you manage to get Komga running without docker successfully, the issue most likely points at this unofficial docker image.

You are correct. This works fine on the official docker image.

But ideally if something is wrong with the environment komga should complaint about it in the logs or atleast throw some random errors right?

As for my alpine image. I'm simply using this openjdk - https://pkgs.alpinelinux.org/package/v3.18/community/x86_64/openjdk17-jre-headless and then using the Jar release file available on your releases page - https://github.com/gotson/komga/releases

I already checked this doc page but could not find any dependency listed for linux installation, so I assumed it would not require any - https://komga.org/docs/installation/jar

But, the official dockerfile available here - https://github.com/gotson/komga/blob/master/komga/docker/Dockerfile.tpl indicates it needs lots of system dependencies.

Is there any page that list dependencies to be installed? This would be very helpful.

gotson commented 2 months ago

But ideally if something is wrong with the environment komga should complaint about it in the logs or atleast throw some random errors right?

a lot of things could go wrong at a lot of different levels, sometimes Komga doesn't even know about it

You are correct. This works fine on the official docker image.

why not use the official image then ?

SSoft7 commented 2 months ago

But ideally if something is wrong with the environment komga should complaint about it in the logs or atleast throw some random errors right?

a lot of things could go wrong at a lot of different levels, sometimes Komga doesn't even know about it

You are correct. This works fine on the official docker image.

why not use the official image then ?

This looks like a glibc issue (alpine uses muslc) or maybe any other system level dependency issue. I've switched to ubuntu as my base docker image and it is working fine now.

This issue can be closed now.