donderjoekel / Mangarr

An *arr inspired approach to downloading manga using individual sources
MIT License
34 stars 2 forks source link

I can't get the mangarr backend container to work #2

Closed xavimaa closed 2 months ago

xavimaa commented 5 months ago

Hello,

I tried to install mangarr but the mangarr backed container doesn't work. I'm attaching my docker compose file and logs, can you help me?

I'm not a developer but I'd like to install it and use it to give you feedback 😊

docker-compose.txt _mangarr.backend_logs.txt

Thundernerd commented 5 months ago

It seems like it is unable to find the mongodb container which is kind of odd as it should be able to find it through the host name.

Are you using a tool like portainer? It isn't a great solution but you could try to find the mangarr.db container's ip address and fill that in as the value for the MONGO__HOST environment variable.

Another thing worth noting is that I'm currently doing a pretty hefty rewrite which will combine the frontend and backend into one, but of course feel free to try out the current version and leave feedback, that is very much appreciated :)

xavimaa commented 5 months ago

Thanks for your reply. I'll wait for the project rewrite to install it because I really believe in the project. I suggest you separate the extensions on a repository external to the application to avoid being in a situation like the Tachiyomi app...

I'll be happy to give you feedback once mangarr is installed :)

Thundernerd commented 5 months ago

Thanks for the suggestion! I am indeed planning on separating it to avoid exactly that :)

Thundernerd commented 5 months ago

@xavimaa I've published the combined version and have updated the example docker-compose.yml in the root of the repo. Feel free to try it!

If you run into any issues you can poke me here. And if everything is working as expected then you can close the issue :)

xavimaa commented 5 months ago

Hi,

Thanks for your return. I just tried setting the IP address to the MONGO__HOST environment variable but I got errors. image

I actually think it comes from my configuration with Portainer. I will try to resolve this problem this weekend :) _mangarr.stack_logs.txt

Thundernerd commented 5 months ago

You should remove the http:// from MONGO__HOST. The actual connection string for connecting to the db will be turned into mongodb://username:password@host:port, so if your host starts with http:// then it'll be incorrect!

xavimaa commented 5 months ago

I've just tried it but I'm getting the same errors :/

Thundernerd commented 5 months ago

Can you show your config and logs?

xavimaa commented 5 months ago

Hi! Thanks again for your help! I think I know where the problem comes from. I have this error with mongo: WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

The Pentium J5040 cpu on my not-so-old NAS doesn't seem to support AVX instructions.

If you have a solution I'd love to hear from you :) _mangarr.db_logs20240130.txt _mangarr.stack_logs20240130.txt docker-compose.txt

Thundernerd commented 5 months ago

Hm. I can't guarantee that it'll work, but you could try changing the image tag from the mongodb container in your docker-compose file

from

image: mongo

to

image: mongo:4
xavimaa commented 5 months ago

I've just tried it, there are no more errors with mango in version 4 but I still get errors with mangarr.

Is it possible to offer an alternative database system in the future? _mangarr.stack_logs20240131.txt

Thundernerd commented 5 months ago

Is it possible to offer an alternative database system in the future?

It isn't to plan to support that, for now at least.

I've just tried it, there are no more errors with mango in version 4 but I still get errors with mangarr.

I suspect that the ip address you have filled in isn't correct, one thing I would recommend based on your last docker-compose, is replace the ip address for MONGO__HOST to mangarr.db

If you run into the same problem with the cache then you should change the value for REDIS__HOST to mangarr.cache