Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Unraid #38

Closed
shedman214 opened this issue Nov 22, 2022 · 15 comments
Closed

Unraid #38

shedman214 opened this issue Nov 22, 2022 · 15 comments
Labels
help wanted Extra attention is needed

Comments

@shedman214
Copy link

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 oae added the help wanted Extra attention is needed label Nov 22, 2022
@oae
Copy link
Owner

oae commented Nov 22, 2022

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

@shedman214
Copy link
Author

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

@flo-dl
Copy link

flo-dl commented Nov 23, 2022

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:
- DATABASE_URL=postgresql://kaizoku:kaizoku@db:5432/kaizoku
- KAIZOKU_PORT=3000
- REDIS_HOST=redis
- REDIS_PORT=6379
# Set Unraid permissions here
- PUID=99
# Set Unraid permissions here
- PGID=100
# Set your timezone here
- TZ=Europe/Istanbul
volumes:
# Define the location of your library
- /mnt/user/data/:/data
# Define the location for the config files
- /mnt/cache/appdata/kaizoku:/config
# Define the location for the logs. I use a subfolder within the share above
- /mnt/cache/appdata/kaizoku/logs:/logs
depends_on:
db:
condition: service_healthy
ports:
- '3000:3000'
redis:
image: redis:7-alpine
volumes:
# Define the location on the Unraid host
- /mnt/cache/appdata/kaizoku_redis:/data
db:
image: postgres:alpine
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U kaizoku']
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_USER=kaizoku
- POSTGRES_DB=kaizoku
- POSTGRES_PASSWORD=kaizoku
volumes:
# Define the location on the Unraid host
- /mnt/cache/appdata/kaizoku_pgdata/data/:/var/lib/postgresql/data

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 (<path_to_library>:/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
Copy link
Owner

oae commented Nov 23, 2022

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
Copy link

flo-dl commented Nov 23, 2022

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
Copy link

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:[email protected]:5432/kaizoku but this can vary based on how you do your networking.

@flo-dl
Copy link

flo-dl commented Nov 24, 2022

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:[email protected]: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
Copy link

vodkapmp commented Nov 24, 2022

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
Copy link
Owner

oae commented Nov 24, 2022

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
Copy link
Author

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

@shedman214
Copy link
Author

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:[email protected]: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
Copy link
Author

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

@flo-dl
Copy link

flo-dl commented Dec 8, 2022

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
Copy link
Author

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
Copy link
Owner

oae commented Dec 14, 2022

You should set up your library as instructed here #38 (comment)

Repository owner locked and limited conversation to collaborators Jan 20, 2023
@oae oae converted this issue into discussion #64 Jan 20, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants