a1ex4 / ownfoil

Lightweight and customizable Tinfoil Shop manager, with automatic saves backup.
BSD 3-Clause "New" or "Revised" License
311 stars 32 forks source link

V2 can´t start ownfoil container #65

Open fettesb opened 8 months ago

fettesb commented 8 months ago

Starting ownfoil ownfoil:x:1000:ownfoil ownfoil:x:1000:1000:Linux User,,,:/home/ownfoil:/sbin/nologin Starting ownfoil warning: The following paths are not up to date and were left despite sparse patterns: DE.de.json After fixing the above paths, you may want to run git sparse-checkout reapply.

HenryBaby commented 8 months ago

I had this same issue when I migrated from V1 to V2. I'm not quite sure how I fixed it, but I was running things from portainer. I removed and cleaned everything, including my volumes (remember to backup before doing this), and then started the container fresh.

Again, not sure what helped.

FunsKiTo commented 8 months ago

So, here's what happened to me. I was checking the logs and noticed that the container seem to be stuck at the starting stage. To resolve this, I decided to restart the container and got the same error. I think this error occurred because Docker was building, and that process can take some time, maybe depending on the size of your library.

As @HenryBaby suggested, the best approach would be to remove the container and its volumes. Afterward, launch it again and give it time to build.

fettesb commented 8 months ago

i try to remove the container and its volumes and let it sit for an hour and report back. Thanks

fettesb commented 8 months ago

I did a clean install and let it sit for an hour Log: Starting ownfoil

after an hour i try to reach http://192.168.178.117:8465 but i get ERR_CONNECTION_REFUSED

so i restartet the Container and let it sit for an hour Log: ownfoil:x:1000:ownfoil ownfoil:x:1000:1000:Linux User,,,:/home/ownfoil:/sbin/nologin Starting ownfoil warning: The following paths are not up to date and were left despite sparse patterns: US.en.json After fixing the above paths, you may want to run git sparse-checkout reapply.

Unfortunately, none of that helped. any ideas?

a1ex4 commented 8 months ago

This can happen if the container was not stopped cleanly or basically stopped at the wrong time. To fix it you just need to recreate the container (docker rm ownfoil and docker-compose up -d again) and that should fix it.

fettesb commented 8 months ago

i use portainer and deleted all images and container and the stack. Did a reboot and started fresh. Same thing happend again.

my library has a file size of 28 files

fettesb commented 8 months ago
SCR-20231102-qjwm
FunsKiTo commented 8 months ago

The container is generating a tmp.pack file that occupies multiple gigabytes inside the "/app/data/titledb/.git/objects/pack" directory. It never completes, so I stopped it when it reached 20GB.

a1ex4 commented 8 months ago

Thanks, on startup Ownfoil updates the locally cloned blawar/titledb, my guess is that there has been many changes to titledb since the last time the image was built. I added some mitigations to the update issues, and rebuilt the image so the delta won't be too much to handle (20GB+ pack file...).

Could you try the latest image?

fettesb commented 8 months ago

i deployed a new stack. No Problems at all. Ownfoil is up and running again. Thanks

FunsKiTo commented 8 months ago

The latest image is running without issues. Thanks

acaltas commented 8 months ago

took some times after i created the container go get back access to the WebGui... but its working i still have a lot of Unrecognized games.. but its seems tinfoil website has some errors

FoUStep commented 8 months ago

traceback-ownfoilv2.log

I've been running a HTTP v1 for a while. Decided to try v2. The attached log file (errors) is what I get when trying to go to the Web UI on port 8465.

Is there another way to pre-config it on CLI?

a1ex4 commented 7 months ago

@FoUStep should be fixed by latest commit.

FoUStep commented 7 months ago

@FoUStep should be fixed by latest commit.

ownfoilv2 | HEAD is now at 315bd23 meta ownfoilv2 | Your branch is up to date with 'origin/master'. ownfoilv2 | Already on 'master' ownfoilv2 | Already up to date.

Unfortunately the issue still persists.

P-C-R commented 6 months ago

@a1ex4 same issue here: ownfoil:x:1000:ownfoil ownfoil:x:1000:1000:Linux User,,,:/home/ownfoil:/sbin/nologin Starting ownfoil HEAD is now at 315bd23 meta Your branch is up to date with 'origin/master'.

P-C-R commented 6 months ago

NVM. Takes just over 30min for inital start.