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

Service does not start after successful install #53

Closed
Toxlen opened this issue Feb 27, 2024 · 7 comments
Closed

Service does not start after successful install #53

Toxlen opened this issue Feb 27, 2024 · 7 comments

Comments

@Toxlen
Copy link

Toxlen commented Feb 27, 2024

Describe the bug

After installing the app I couldn't access the app because the service is not started and when I watch the logs I saw this message.
Error: Error: '/var/log/fittrackee/fittrackee.log' isn't writable [PermissionError(13, 'Permission denied')]

Context

  • Hardware: Old computer
  • YunoHost version: 11.2.10.1
  • I have access to my server: through the webadmin and direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • If upgrading, current package version: 0.7.31~ynh1

Steps to reproduce

Install the app.

Expected behavior

The service launch without problems after install.

Logs

In the fittrackee service :

Error: Error: '/var/log/fittrackee/fittrackee.log' isn't writable [PermissionError(13, 'Permission denied')]

In the fittrackee_workers service :

Traceback (most recent call last):
  File "/var/www/fittrackee/venv/bin/flask", line 8, in <module>
    sys.exit(main())
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/flask/cli.py", line 1107, in main
    cli.main()
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/flask/cli.py", line 385, in decorator
    app = ctx.ensure_object(ScriptInfo).load_app()
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/flask/cli.py", line 337, in load_app
    app = locate_app(import_name, name)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/flask/cli.py", line 247, in locate_app
    __import__(module_name)
  File "/var/www/fittrackee/venv/lib/python3.9/site-packages/fittrackee/__init__.py", line 34, in <module>
    logging.basicConfig(
  File "/usr/lib/python3.9/logging/__init__.py", line 1999, in basicConfig
    h = FileHandler(filename, mode,
  File "/usr/lib/python3.9/logging/__init__.py", line 1142, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.9/logging/__init__.py", line 1171, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding,
PermissionError: [Errno 13] Permission denied: '/var/log/fittrackee/fittrackee.log'
@Thovi98
Copy link
Member

Thovi98 commented Feb 28, 2024

I can confirm this issue thanks!
Could you please try chmod -R 640 /var/log/fittrackee?

@Toxlen
Copy link
Author

Toxlen commented Feb 29, 2024

Thanks for the quick response but it doesn't function I also tried

sudo chmod 640 /var/log/fittrackee/fittrackee.log

And it didn't fix the start of the service ...

@Thovi98
Copy link
Member

Thovi98 commented Feb 29, 2024

Could you try again by replacing 640 wirh 750?

@mchbck
Copy link

mchbck commented Feb 29, 2024

I had the same issue. chmod -R 750 /var/log/fittrackee worked for me. Thanks!

@Thovi98
Copy link
Member

Thovi98 commented Feb 29, 2024

Thanks for confirming!
I will patch this soon.

Enjoy this app 🎉

@Thovi98
Copy link
Member

Thovi98 commented Feb 29, 2024

Fixed in the core (for next Yunohost release) : YunoHost/yunohost#1787

@Thovi98
Copy link
Member

Thovi98 commented Mar 1, 2024

New Yunohost release is out!
So i close this issue, feel free to reopen if not solved.

@Thovi98 Thovi98 closed this as completed Mar 1, 2024
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

No branches or pull requests

3 participants