Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. koillection : A self-hosted website to manage all your collections

koillection : A self-hosted website to manage all your collections

Scheduled Pinned Locked Moved App Wishlist
29 Posts 6 Posters 5.3k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thetomester13
    App Dev
    wrote on last edited by
    #7

    @girish @nebulon wondering if either of you have seen the error above previously and know of a way forward?

    1 Reply Last reply
    0
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #8

      See start.sh line 7

      Conscious tech

      T 1 Reply Last reply
      0
      • robiR robi

        See start.sh line 7

        T Offline
        T Offline
        thetomester13
        App Dev
        wrote on last edited by
        #9

        @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 πŸ˜•

        timconsidineT 1 Reply Last reply
        1
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by robi
          #10

          hmm, I think it was the double php php typo I noticed

          Conscious tech

          1 Reply Last reply
          0
          • T thetomester13

            @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 πŸ˜•

            timconsidineT Offline
            timconsidineT Offline
            timconsidine
            App Dev
            wrote on last edited by
            #11

            @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.

            1 Reply Last reply
            0
            • timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by timconsidine
              #12

              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.

              T 1 Reply Last reply
              0
              • timconsidineT timconsidine

                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.

                T Offline
                T Offline
                thetomester13
                App Dev
                wrote on last edited by
                #13

                @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 !

                1 Reply Last reply
                0
                • robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #14

                  Can you run each line individually or comment out other lines to isolate which one generates the error?

                  Conscious tech

                  T 1 Reply Last reply
                  0
                  • robiR robi

                    Can you run each line individually or comment out other lines to isolate which one generates the error?

                    T Offline
                    T Offline
                    thetomester13
                    App Dev
                    wrote on last edited by
                    #15

                    @robi yep, that's probably what's going to need to happen!

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      thetomester13
                      App Dev
                      wrote on last edited by
                      #16

                      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!

                      1 Reply Last reply
                      1
                      • timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by timconsidine
                        #17
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by
                          #18

                          @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 ?

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            thetomester13
                            App Dev
                            wrote on last edited by
                            #19

                            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 πŸ™‚

                            jdaviescoatesJ 1 Reply Last reply
                            3
                            • T thetomester13

                              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 πŸ™‚

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #20

                              @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)

                              I use Cloudron with Gandi & Hetzner

                              1 Reply Last reply
                              0
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by girish
                                #21

                                @thetomester13 from https://symfony.com/projects, it seems mautic, grav, wallabag are some examples.

                                1 Reply Last reply
                                3
                                • T Offline
                                  T Offline
                                  thetomester13
                                  App Dev
                                  wrote on last edited by
                                  #22

                                  @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.

                                  jdaviescoatesJ timconsidineT 2 Replies Last reply
                                  1
                                  • T thetomester13

                                    @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.

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #23

                                    @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

                                    I use Cloudron with Gandi & Hetzner

                                    1 Reply Last reply
                                    1
                                    • T thetomester13

                                      @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.

                                      timconsidineT Offline
                                      timconsidineT Offline
                                      timconsidine
                                      App Dev
                                      wrote on last edited by
                                      #24

                                      @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

                                      1 Reply Last reply
                                      1
                                      • T Offline
                                        T Offline
                                        thetomester13
                                        App Dev
                                        wrote on last edited by
                                        #25

                                        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.

                                        girishG 2 Replies Last reply
                                        4
                                        • T thetomester13

                                          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.

                                          girishG Offline
                                          girishG Offline
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #26

                                          @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.

                                          1 Reply Last reply
                                          2
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search