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

No such file or directory: '/logs/FTS_debug.log' #46

Closed
nconder opened this issue May 21, 2020 · 3 comments
Closed

No such file or directory: '/logs/FTS_debug.log' #46

nconder opened this issue May 21, 2020 · 3 comments

Comments

@nconder
Copy link

nconder commented May 21, 2020

After recent pull I now get No such file or directory: '/logs/FTS_debug.log'. The new folder needs to be added to the repo or the application fails to start.

Ruining:
python3 /TAKlib/TAKfreeServer/server.py -p 8087

Output:
Traceback (most recent call last):
File "/TAKlib/TAKfreeServer/server.py", line 47, in
logger.addHandler(newHandler(const.DEBUGLOG, logging.DEBUG, log_format))
File "/TAKlib/TAKfreeServer/server.py", line 37, in newHandler
backupCount=const.BACKUPCOUNT
File "/usr/lib/python3.6/logging/handlers.py", line 150, in init
BaseRotatingHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/handlers.py", line 57, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/init.py", line 1032, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.6/logging/init.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/logs/FTS_debug.log'

@a-f-G-U-C
Copy link

mkdir logs in the TAKfreeServer directory.

@a-f-G-U-C
Copy link

Also, I just noticed that the missing logs directory is created by httpServer.py so the problem is probably avoided by executing the run.py wrapper to start the software components (server and httpServer) instead of running them individually. :)

@nconder
Copy link
Author

nconder commented May 23, 2020

Also, I just noticed that the missing logs directory is created by httpServer.py so the problem is probably avoided by executing the run.py wrapper to start the software components (server and httpServer) instead of running them individually. :)

Yes, both mkdir and run.py work. I was not aware of run.py or missed this in the docs if it was referenced some place. Thanks!

@nconder nconder closed this as completed May 23, 2020
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

2 participants