这是indexloc提供的服务,不要输入任何密码
Skip to content

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