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?