Home page missing
-
@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?
-
@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?
-
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
-
@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?
-
@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?
@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 wheregit
and maybe something else is used. -
@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?
@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!
-
@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?
@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?
-
@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!