oae / kaizoku

Self-hosted manga downloader
https://kaizoku.app
MIT License
578 stars 34 forks source link

Unraid #38

Closed shedman214 closed 1 year ago

shedman214 commented 1 year ago

Feature Description

Is there any chance you can add this to unraid or advise how? I would love to use this app.

Solution you would like

No response

Alternatives you have considered

The alternative is FMD2 download but it stalls all the time and can never use it.

Additional context

No response

oae commented 1 year ago

I don't have any experience with unraid. Any help would be appreciated.

shedman214 commented 1 year ago

Unraid in a nutshell: https://en.wikipedia.org/wiki/Unraid

flo-dl commented 1 year ago

It's actually not too difficult with the Unraid Docker Compose Manager (Plugin).

See here: https://forums.unraid.net/topic/114415-plugin-docker-compose-manager/ General usage: https://docs.ibracorp.io/docker-compose/docker-compose-for-unraid

Only minimal configuration changes are required:

Install the Docker Compose Manager on Unraid. After the install, navigate to the "Plugins" tab on your Unraid host > Click on the icon on the left of the Compose.Manager > Hit "Add new stack" > Give it a name (e.g. Kaizoku) > Click ok > Now click on the cog to the left of the name you gave the stack > Click edit stack > Click compose file > Copy and paste it and then change the relevant parts if necessary.

Note: You can also provide the variables via an env file but for simplicity’s sake I kept it in one file here. See the comments below for some changes.

version: '3'

volumes: db: redis:

services: app: container_name: kaizoku image: ghcr.io/oae/kaizoku:latest environment:

After everything looks good hit "Save Changes". On the next window "Edit Stack UI Labels" just click ok. Click "Compose up" next to your stack. Wait until all containers are pulled and close when the window shows "Connection Close" in the middle. Be patient as it takes some time until everything is ready. Change to the Docker tab on your Unraid host. You should three new containers.

Navigate to the IP:3000 (as shown under port mappings for the kaizoku docker) in a browser and you should be able to access the webui. Finally, you have to update the stack via the Plugins > Compose.Manager Icon > "Update Stack" Button.

Got it up and running with this. And of course thanks for the awesome work.

@oae When I download stuff, I'm not sure where it is actually saved? I have mapped it to a share (:/data which is in my case /mnt/user/data/media/mangas:/data). The share is created correctly but it's remains empty. So, where are the downloads stored? Thanks!

oae commented 1 year ago

When you first start, you create a library. You need to give /data as the path. Chapters are downloaded to this path. If it is empty, there may be a permission issue

flo-dl commented 1 year ago

When you first start, you create a library. You need to give /data as the path. Chapters are downloaded to this path. If it is empty, there may be a permission issue

Thanks for the quick reply. Yeah, I was just about to change my comment as I figured it out. Was using a wrong path there. Thanks anyway and great work!

vodkapmp commented 1 year ago

Making this available for Unraid via Community Applications would be neat, but since kaizoku doesn't run AIO, it wouldn't actually be a simple 1 click install for Unraid users like they are used to as you'd have to configure a postgres and redis docker too. Could always make 3 apps available with all the settings ready to go for kaizoku, postgres and redis though.

Anyway, for anyone wondering how to set this up on Unraid, here's screenshots for my current setup: Postgres: image Redis: image Kaizoku: image For the Kaizoku container, the full path I use for DATABASE_URL is: postgresql://kaizoku:kaizoku@192.168.1.5:5432/kaizoku but this can vary based on how you do your networking.

flo-dl commented 1 year ago

Making this available for Unraid via Community Applications would be neat, but since kaizoku doesn't run AIO, it wouldn't actually be a simple 1 click install for Unraid users like they are used to as you'd have to configure a postgres and redis docker too. Could always make 3 apps available with all the settings ready to go for kaizoku, postgres and redis though.

Anyway, for anyone wondering how to set this up on Unraid, here's screenshots for my current setup: Postgres: image Redis: image Kaizoku: image For the Kaizoku container, the full path I use for DATABASE_URL is: postgresql://kaizoku:kaizoku@192.168.1.5:5432/kaizoku but this can vary based on how you do your networking.

Also really nice! Thanks. I've started downloading some mangas and it seems to inflate my docker image. Checking the container size on the Unraid Docker tab shows that it is indeed the kaizoku docker (not the db or redis) that is increasing. It has grown to over 12GB. Did you experience the same? I'm not sure what I've mapped incorrectly but something seems to write in the docker image.

@oae Is the growth of the docker image expected to some degree? I've looked at the bull backend and the job queues and was wondering whether this information is taking up some or most of this space? I also can't clear the queues since hitting the "Clean all" buttons on the FAILED and COMPLETED tabs on the Bull Dashboard only shows me an internal server error. Interestingly, I can clear individual jobs over the icon on the right side of a job. Any idea what is happening there?

vodkapmp commented 1 year ago

Yeah mine is sitting at 9.97GB. This is due to this folder inside the docker: /tmp/rod/user-data I have no idea what this folder is, and I've not mounted it anywhere as I'm scared of breaking things.

My only theory is that it is some cache directory for headless chromium, but that is just pure guesswork. What I do know is that it isn't the mangal cache at least.

oae commented 1 year ago

Mine is at 552MB. I don't know why it is getting too big. But I believe you can remove it. I have recreated my container many times, this didn't cause any problems.

shedman214 commented 1 year ago

I have done all with the screenshots and I get refused to connect. Here _s my setup: image image image

shedman214 commented 1 year ago

Making this available for Unraid via Community Applications would be neat, but since kaizoku doesn't run AIO, it wouldn't actually be a simple 1 click install for Unraid users like they are used to as you'd have to configure a postgres and redis docker too. Could always make 3 apps available with all the settings ready to go for kaizoku, postgres and redis though.

Anyway, for anyone wondering how to set this up on Unraid, here's screenshots for my current setup: Postgres: image Redis: image Kaizoku: image For the Kaizoku container, the full path I use for DATABASE_URL is: postgresql://kaizoku:kaizoku@192.168.1.5:5432/kaizoku but this can vary based on how you do your networking.

I have followed your guide and when i click the webui i get refused to connect?

shedman214 commented 1 year ago

I got it to work but it's not let me save any of my settings when I change them?

flo-dl commented 1 year ago

I got it to work but it's not let me save any of my settings when I change them?

Sounds like a mapping/permission problem. Have you tried restarting the container and applying the settings then?

FYI have you checked the permissions of your kaizokua folder in Unraid (mnt/user/appdata/kaizoku)? I'm using it with the top level folder (kaizoku) belonging to the user/owner nobody and the following permissions drwxr-xr-x (chmod 755). The same goes for the owner/permission settings for the subfolders (.config, .cache, logs, tmp; not .pki which also belongs to nobody but uses drwx------).

shedman214 commented 1 year ago

I got it to work but it's not let me save any of my settings when I change them?

Sounds like a mapping/permission problem. Have you tried restarting the container and applying the settings then?

FYI have you checked the permissions of your kaizokua folder in Unraid (mnt/user/appdata/kaizoku)? I'm using it with the top level folder (kaizoku) belonging to the user/owner nobody and the following permissions drwxr-xr-x (chmod 755). The same goes for the owner/permission settings for the subfolders (.config, .cache, logs, tmp; not .pki which also belongs to nobody but uses drwx------).

question, all i did was change the network. Now when i restart the container. nothing will save. is that still a permission issue?

oae commented 1 year ago

You should set up your library as instructed here https://github.com/oae/kaizoku/issues/38#issuecomment-1325247969