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

Heroku is failing - raising OSError when making LOGS_DIR #448

Closed
CasperWA opened this issue Aug 2, 2020 · 0 comments · Fixed by #449
Closed

Heroku is failing - raising OSError when making LOGS_DIR #448

CasperWA opened this issue Aug 2, 2020 · 0 comments · Fixed by #449
Assignees
Labels
bug Something isn't working deployment An app serves the OPTIMADE regular server

Comments

@CasperWA
Copy link
Member

CasperWA commented Aug 2, 2020

From the heroku logs:

2020-08-02T18:12:41.473090+00:00 app[web.1]: File "./optimade/server/logger.py", line 39, in <module>
2020-08-02T18:12:41.473090+00:00 app[web.1]: LOGS_DIR.mkdir(exist_ok=True)
2020-08-02T18:12:41.473093+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.7/pathlib.py", line 1268, in mkdir
2020-08-02T18:12:41.473093+00:00 app[web.1]: self._accessor.mkdir(self, mode)
2020-08-02T18:12:41.473136+00:00 app[web.1]: OSError: [Errno 30] Read-only file system: '/var/log/optimade'
2020-08-02T18:13:38.829133+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

So it seems we should "simply" try and catch a more general OSError instead of PermissionError when trying to make the directory.

@CasperWA CasperWA added bug Something isn't working deployment An app serves the OPTIMADE regular server labels Aug 2, 2020
@CasperWA CasperWA self-assigned this Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment An app serves the OPTIMADE regular server
Projects
None yet
1 participant