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

config file not found while running ocis through sysytemd service in the docs #692

Closed
nabim777 opened this issue Dec 29, 2023 · 0 comments · Fixed by #696
Closed

config file not found while running ocis through sysytemd service in the docs #692

nabim777 opened this issue Dec 29, 2023 · 0 comments · Fixed by #696
Assignees

Comments

@nabim777
Copy link
Member

nabim777 commented Dec 29, 2023

Part of: owncloud/ocis#7940
Tested on ocis version: 5.0.0-beta.2

Description

While testing the docs binary setup by systemd service gives error on running the ocis

while initializing ocis

ocis init
Output
Do you want to configure Infinite Scale with certificate checking disabled?
 This is not recommended for public instances! [yes | no = default] yes

=========================================
 generated OCIS Config
=========================================
 configpath : /home/nabin/.ocis/config/ocis.yaml
 user       : admin
 password   : <generated-password>

This command sudo journalctl -f -u ocis gives an error

sudo journalctl -f -u ocis
Output:
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: Started OCIS server.
Dec 29 11:12:40 nabin-OptiPlex-3050 ocis[11212]: The jwt_secret has not been set properly in your config for ocis. Make sure your /home/ocis/.ocis/config config contains the proper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
Dec 29 11:12:40 nabin-OptiPlex-3050 ocis[11212]: The jwt_secret has not been set properly in your config for ocis. Make sure your /home/ocis/.ocis/config config contains the proper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: ocis.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: ocis.service: Failed with result 'exit-code'.
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: ocis.service: Scheduled restart job, restart counter is at 5.
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: Stopped OCIS server.
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: ocis.service: Start request repeated too quickly.
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: ocis.service: Failed with result 'exit-code'.
Dec 29 11:12:40 nabin-OptiPlex-3050 systemd[1]: Failed to start OCIS server.

It have been searches for config file on /home/ocis/.ocis/config but there is not

@nabim777 nabim777 self-assigned this Dec 29, 2023
@saw-jan saw-jan transferred this issue from owncloud/ocis Dec 29, 2023
@nabim777 nabim777 linked a pull request Jan 5, 2024 that will close this issue
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 a pull request may close this issue.

1 participant