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. SFTPGo
  3. Home page missing

Home page missing

Scheduled Pinned Locked Moved SFTPGo
9 Posts 4 Posters 204 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic was forked from SFTPGo is now available joseph
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      C Offline
      crazybrad
      wrote on last edited by
      #1

      @BrutalBirdie Changing the port to start at 40100 solved that problem. I ran into another (after changing the admin password). When I tried to create a user, it would not allow me to save the user because of a missing Home directory. I tried to update the sftpgo.json file and add a key in the common section like this: "users_base_dir":"/app/data" to establish a default. I'm not sure if that is the correct absolute path, but after restarting SFTPGo with the new config, I ran into the same "Home page missing" error. And there does not seem to be a place in the interface to create one when adding a user. What am I missing?

      J 1 Reply Last reply
      1
      • C crazybrad

        @BrutalBirdie Changing the port to start at 40100 solved that problem. I ran into another (after changing the admin password). When I tried to create a user, it would not allow me to save the user because of a missing Home directory. I tried to update the sftpgo.json file and add a key in the common section like this: "users_base_dir":"/app/data" to establish a default. I'm not sure if that is the correct absolute path, but after restarting SFTPGo with the new config, I ran into the same "Home page missing" error. And there does not seem to be a place in the interface to create one when adding a user. What am I missing?

        J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #2

        @crazybrad you have to give a path to a writable directory. I gave /app/data/testuser and then when testuser logs in, he is able to save files there.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joseph
          Staff
          wrote on last edited by joseph
          #3

          So per https://github.com/drakkan/sftpgo/blob/d4ea6adcc30bf095d3f4bd8084ddad95991086f5/internal/dataprovider/dataprovider.go#L410 , you should set to users_base_dir to say /app/data/user_files . Then, a user logging in would save things in /app/data/user_files/<username> .

          cc @girish , maybe we set something by default

          1 Reply Last reply
          0
          • C Offline
            C Offline
            crazybrad
            wrote on last edited by
            #4

            @joseph Really helpful, thanks. That was the missing link for me. I now have a working user who can log into the SFTP server. Uploading a file worked. All is right with the world (or a least this small corner). Appreciate your efforts, @girish and especially @BrutalBirdie for making this available.

            I think your suggestion of setting up a default mount point for user_files is excellent. Making sure it integrates with Cloudron backup (see question below) would be great. Lastly, a mistake I made (but quickly rectified) was the default SFTP port. Standard is 22, but SFTPGo chooses 2022 (good idea) but it is easy to miss. Perhaps adding a note to the app documentation that SFTPGo does not use standard service ports?

            A couple of follow-up questions (still learning a lot about Cloudron):

            • Is Cloudron the correct owner for /app/data/user_files or is yellowtent or www-data more appropriate?
            • What is the difference between these 3 owners {Cloudron, yellowtent, www-data}?
            • To have /app/data/user_files (and all user folders underneath) backed up as part of the normal Cloudron backup process, what (if anything) in the way of extra configuration is necessary?
            • This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?
            J BrutalBirdieB 3 Replies Last reply
            1
            • C crazybrad

              @joseph Really helpful, thanks. That was the missing link for me. I now have a working user who can log into the SFTP server. Uploading a file worked. All is right with the world (or a least this small corner). Appreciate your efforts, @girish and especially @BrutalBirdie for making this available.

              I think your suggestion of setting up a default mount point for user_files is excellent. Making sure it integrates with Cloudron backup (see question below) would be great. Lastly, a mistake I made (but quickly rectified) was the default SFTP port. Standard is 22, but SFTPGo chooses 2022 (good idea) but it is easy to miss. Perhaps adding a note to the app documentation that SFTPGo does not use standard service ports?

              A couple of follow-up questions (still learning a lot about Cloudron):

              • Is Cloudron the correct owner for /app/data/user_files or is yellowtent or www-data more appropriate?
              • What is the difference between these 3 owners {Cloudron, yellowtent, www-data}?
              • To have /app/data/user_files (and all user folders underneath) backed up as part of the normal Cloudron backup process, what (if anything) in the way of extra configuration is necessary?
              • This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?
              J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #5

              @crazybrad said in Home page missing:

              Is Cloudron the correct owner for /app/data/user_files or is yellowtent or www-data more appropriate?
              What is the difference between these 3 owners {Cloudron, yellowtent, www-data}?

              The yellowtent user is only for the server and not applicable to the (containerized) apps.

              For apps, each app is containerized differently and the username has to be guessed. A good place to start is just look at the other files in /app/data . In all cases, if you just restart the app, it will fixup to the correct permissions since the container start up script always changes permissions. As a general rule:

              www-data is a non-root user in mostly apache/php apps
              cloudron is a non-root user in most other apps
              I think there are also cases where git and maybe something else is used.

              1 Reply Last reply
              0
              • C crazybrad

                @joseph Really helpful, thanks. That was the missing link for me. I now have a working user who can log into the SFTP server. Uploading a file worked. All is right with the world (or a least this small corner). Appreciate your efforts, @girish and especially @BrutalBirdie for making this available.

                I think your suggestion of setting up a default mount point for user_files is excellent. Making sure it integrates with Cloudron backup (see question below) would be great. Lastly, a mistake I made (but quickly rectified) was the default SFTP port. Standard is 22, but SFTPGo chooses 2022 (good idea) but it is easy to miss. Perhaps adding a note to the app documentation that SFTPGo does not use standard service ports?

                A couple of follow-up questions (still learning a lot about Cloudron):

                • Is Cloudron the correct owner for /app/data/user_files or is yellowtent or www-data more appropriate?
                • What is the difference between these 3 owners {Cloudron, yellowtent, www-data}?
                • To have /app/data/user_files (and all user folders underneath) backed up as part of the normal Cloudron backup process, what (if anything) in the way of extra configuration is necessary?
                • This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?
                J Offline
                J Offline
                joseph
                Staff
                wrote on last edited by
                #6

                @crazybrad said in Home page missing:

                This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?

                Maybe @BrutalBirdie knows about this. Are you referring to OIDC login though? That works for me atleast . It's slightly confusing btw that admin and user login pages are styled very similarly!

                1 Reply Last reply
                0
                • C crazybrad

                  @joseph Really helpful, thanks. That was the missing link for me. I now have a working user who can log into the SFTP server. Uploading a file worked. All is right with the world (or a least this small corner). Appreciate your efforts, @girish and especially @BrutalBirdie for making this available.

                  I think your suggestion of setting up a default mount point for user_files is excellent. Making sure it integrates with Cloudron backup (see question below) would be great. Lastly, a mistake I made (but quickly rectified) was the default SFTP port. Standard is 22, but SFTPGo chooses 2022 (good idea) but it is easy to miss. Perhaps adding a note to the app documentation that SFTPGo does not use standard service ports?

                  A couple of follow-up questions (still learning a lot about Cloudron):

                  • Is Cloudron the correct owner for /app/data/user_files or is yellowtent or www-data more appropriate?
                  • What is the difference between these 3 owners {Cloudron, yellowtent, www-data}?
                  • To have /app/data/user_files (and all user folders underneath) backed up as part of the normal Cloudron backup process, what (if anything) in the way of extra configuration is necessary?
                  • This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?
                  BrutalBirdieB Offline
                  BrutalBirdieB Offline
                  BrutalBirdie
                  Partner
                  wrote on last edited by
                  #7

                  @crazybrad said in Home page missing:

                  To have /app/data/user_files (and all user folders underneath) backed up as part of the normal Cloudron backup process, what (if anything) in the way of extra configuration is necessary?

                  Nothing extra needed. Everything in /app/data is fully backuped by default.

                  @crazybrad said in Home page missing:

                  This app seemed to allow Cloudron users and groups to be assigned access but logging in using a user with access permission did not work. Is there a configuration change required? Or is the linkage only via LDAP or OIDC?

                  Are you writing about Cloudorn Groups and permissions beeing synced into SFTPgo?

                  Like my work? Consider donating a drink. Cheers!

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    crazybrad
                    wrote on last edited by
                    #8

                    @BrutalBirdie Yes. Are Cloudron Users and Groups "synced" into SFTPGo? BTW, I checked and backup is working perfectly. And it's funny how life works sometimes. I wasn't sure that I would use SFTPGo. Until I found out that one of my vendors was not properly backing up a server. Their preferred solution: providing an external SFTP server. And voilĂ ... you packaged SFTPGo. And it just works. And it integrates with Cloudron backup. Many thanks!

                    1 Reply Last reply
                    1
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #9

                      Users and Groups are not synced. Users will only be available after first login of that user.
                      Groups itself are fully managed within the app itself.

                      1 Reply Last reply
                      1
                      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