koillection : A self-hosted website to manage all your collections
-
@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)
-
@thetomester13 from https://symfony.com/projects, it seems mautic, grav, wallabag are some examples.
-
@girish that's exactly what I needed to be able to get Koillection up and running! Thanks so much. The problem at the end was also getting a write-friendly directory for user sessions for Symfony, by symlinking
/run/php/session
into/app/data
. I pushed up the latest which is a working application to the repo here.@girish is there interest in making this an official app? If so I can work on making tests for this (no guarantee of timeline though). The other question is how strict the precedence is for auto-creating users on app installation? Currently on install the user needs to go in and create the first user. If a user is a pre-req for an installable app then I'd need to find a way to bake an admin user in.
-
@thetomester13 said in koillection : A self-hosted website to manage all your collections:
Currently on install the user needs to go in and create the first user.
I'm pretty sure there are existing apps like that
-
@thetomester13 donβt fret about it, different apps take different approaches, not really right or wrong one, do what is best/easiest for you, just make sure it is clearly instructed what user should do on installation
-
Appreciate the input!
I just pushed up some changes to make the app a bit more official: image, markdown files, etc. It should be ready for people to use if they'd like! I've been able to create a Collection, leverage Templates for additional fields, and use the API pretty seamlessly.
Again, the repo is here.
@girish @nebulon if we want to make this app official let me know and I can start working towards making some tests for it.
-
@thetomester13 sure, if it's useful, why not. I have forked it at https://git.cloudron.io/cloudron/koillection-app and you should have access.
-
@thetomester13 Quickly built it and installs fine. File upload doesn't seem to work.