koillection : A self-hosted website to manage all your collections
-
https://koillection.github.io/
https://github.com/benjaminjonard/koillectionFrom README on github:
Koillection is a self-hosted collection manager created to keep track of physical (mostly) collections of any kind like books, DVDs, stamps, games... As Koillection is meant to be used for any kind of collections, it doesn't support automatic download of metadata. But it offers the possibility to add your own metadata freely.
-
I'd like to see this on Cloudron as well! I started to package this up but the latest version only plays nice with PHP 8.2. I'm wondering if the latest PHP version can be packaged in Cloudron's base image coming up?
-
@thetomester13 We already use 8.2 in a bunch of apps. See https://git.cloudron.io/cloudron/firefly-iii-app/-/blob/master/Dockerfile?ref_type=heads#L6
-
I have a decent start for Koillection but am getting an error when trying to start up:
Mon Sep 18 01:03:32 2023 (1): Fatal Error Preloading failed to getpwnam("koillection")
Is someone able to help me figure this out and help me get past this error? I pushed up my what I have so far here. Any help would be appreciated! I'm obviously happy to do the clean up work on the repo afterwards, just really want to get past this one error. Thanks!
-
@robi thanks for the response!
You're talking about the 'generate-keypair' command? Yikes, I definitely did muck that up somehow however, even after fixing it and even commenting out that line entirely I'm still seeing the same(1): Fatal Error Preloading failed to getpwnam("koillection")
error -
@thetomester13 said in koillection : A self-hosted website to manage all your collections:
I'm still seeing the same (1): Fatal Error Preloading failed to getpwnam("koillection") error
I have not met this error before.
Let us all know if you get it packaged - it would be an interesting addition for Cloudron.
-
Search showed this :
The error message Preloading failed to getpwnam("koillection") error suggests that the system is trying to find a user named "koillection" but is unable to do so. This might be required by the application or its underlying system for proper permissions and ownership. To resolve this issue when packaging Koillection for Cloudron, you can follow these steps: 1. Create the User Before running the application, ensure that the user "koillection" exists on the system. You can create the user using the adduser command: sudo adduser koillection 2. Set Proper Permissions If Koillection requires specific directories or files to be owned by the "koillection" user, you'll need to change the ownership of those resources: sudo chown -R koillection:koillection /path/to/koillection/directory Replace /path/to/koillection/directory with the actual path to the directory or file that Koillection uses.
But no idea if this is in the right direction or a red herring.
-
@timconsidine this doesn't right to me unfortunately since I believe apps are run via the cloudrun user, I don't think each app gets its own user - feel free to correct me (anyone) if I'm mistaken. Appreciate the help looking into this error though @timconsidine !
-
I was able to get to the next error - progress! The app is now booting up properly. However, on first boot of the app it redirects users to a setup page endpoint, and I'm getting a 404 error on that page. Latest code is pushed up to my repo here, would appreciate if anyone is able to take a look!
-
This post is deleted!
-
@thetomester13 given that you're in debug stage, I would eliminate any authentication issues, maybe remove from
.env.production
and as you're packaging for cloudron, use proxyAuth addon.
At least as a temporary measure to see if it resolves the issue.
404 is usually not found but maybe here means not allowed to find ? -
Good news! With some help from the developer I was able to make some strides with this, and am now stuck on a new error. The Koillection application is built on top of Symfony, a PHP framework, which introduces some complexity which don't get along well with Cloudron's read-only fs. I'm wondering if anyone knows of any other Symfony based applications that could help point me in the right direction? I also pushed up the latest code to the repo in the meantime if anyone wants to take a look!
cc @girish @nebulon
Thanks and happy Thanksgiving -
@thetomester13 said in koillection : A self-hosted website to manage all your collections:
Symfony based applications that could help point me in the right direction?
Not Symfony, but Castopod is built with CodeIgniter which afaiu is a similar kettle of fish (a PHP framework)