Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(main/sftpgo): Relocate data path to fix running server #23037

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

Biswa96
Copy link
Member

@Biswa96 Biswa96 commented Jan 26, 2025

@Biswa96
Copy link
Member Author

Biswa96 commented Jan 26, 2025

sftpgo shows the following error when $PREFIX/var/lib/sftpgo directory is absent.

$ sftpgo serve
INF creating initial database schema, version 28
WRN Unable to initialize data provider: unable to open database file: no such file or directory
ERR error initializing data provider: unable to open database file: no such file or directory

After adding that directory in build script, sftpgo shows the following error due to not finding the template directory in sftpgo.json file.

$ sftpgo serve
INF creating initial database schema, version 28
DBG Data provider successfully initialized
INF updating database schema version: 28 -> 29
ERR error loading required template: open templates/email/reset-password.html: no such file or directory
ERR Try setting the absolute templates path in your configuration file or specifying the config directory adding the `-c` flag to the serve options. For example: sftpgo serve -c "<path to dir containing the default config file and templates directory>"

After fixing the sftpgo.json, it now works.

@Biswa96 Biswa96 merged commit c794443 into termux:master Jan 26, 2025
7 checks passed
@Biswa96 Biswa96 deleted the sftpgo branch January 26, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant