Error - OSError: [Errno 2] No such file or directory

Hi Cornelius,
I try to setup a test-enviroment on a debian wheezy server with the PI
version 2-4-1 - but it ends with the following error.

(privacyidea-venv)root@mfatest:/# pi-manage.py createdb
The configuration name is: heroku
Additional configuration can be read from the file /etc/privacyidea/pi.cfg
No section: 'formatters’
No log config file defined in PI_LOGCONFIG. Using default logging settings
PI_LOGLEVEL found. Setting to 20
PI_LOGFILE found. Setting to /var/log/privacyidea/privacyidea.log
Traceback (most recent call last):
File “/opt/privacyidea/privacyidea-venv/bin/pi-manage.py”, line 44, in

from privacyidea.app import create_app
File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/app.py",
line 152, in
heroku_app = create_app(config_name=“heroku”)
File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/app.py",
line 146, in create_app
handler.doRollover()
File “/usr/lib/python2.7/logging/handlers.py”, line 140, in doRollover
os.rename(self.baseFilename, dfn)
OSError: [Errno 2] No such file or directory

check your logfile.Am Donnerstag, den 16.07.2015, 08:19 -0700 schrieb Stefan Steuer:

Hi Cornelius,
I try to setup a test-enviroment on a debian wheezy server with the PI
version 2-4-1 - but it ends with the following error.

(privacyidea-venv)root@mfatest:/# pi-manage.py createdb
The configuration name is: heroku
Additional configuration can be read from the
file /etc/privacyidea/pi.cfg
No section: ‘formatters’
No log config file defined in PI_LOGCONFIG. Using default logging
settings
PI_LOGLEVEL found. Setting to 20
PI_LOGFILE found. Setting to /var/log/privacyidea/privacyidea.log
Traceback (most recent call last):
File “/opt/privacyidea/privacyidea-venv/bin/pi-manage.py”, line 44,
in
from privacyidea.app import create_app
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/app.py”, line 152, in
heroku_app = create_app(config_name=“heroku”)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/app.py”, line 146, in create_app
handler.doRollover()
File “/usr/lib/python2.7/logging/handlers.py”, line 140, in
doRollover
os.rename(self.baseFilename, dfn)
OSError: [Errno 2] No such file or directory


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/a2935049-aa63-420f-a141-6d16e9e811cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (819 Bytes)

Issue were solved with two restarts…>

why would this be?
What could you do?

-> PI_LOGFILE found. Setting to /var/log/privacyidea/privacyidea.log

-> File “/usr/lib/python2.7/logging/handlers.py”, line 140, in
doRollover
os.rename(self.baseFilename, dfn)
OSError: [Errno 2] No such file or directoryAm Donnerstag, den 16.07.2015, 23:03 -0700 schrieb Stefan Steuer:

here is no logfile in the directory /var/log/privacyidea

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/32e13c42-06b1-4e52-b4b6-f687719f93a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
@cornelinux
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

signature.asc (819 Bytes)

here is no logfile in the directory /var/log/privacyidea