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

187 views
Skip to first unread message

Stefan Steuer

unread,
Jul 16, 2015, 11:19:14 AM7/16/15
to priva...@googlegroups.com
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 <module>
    from privacyidea.app import create_app
  File "/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/app.py", line 152, in <module>
    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



Cornelius Kölbel

unread,
Jul 16, 2015, 12:09:04 PM7/16/15
to priva...@googlegroups.com

check your logfile.
> --
> 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...@googlegroups.com.
> To post to this group, send email to priva...@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
corneliu...@netknights.it
+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

Stefan Steuer

unread,
Jul 17, 2015, 2:03:56 AM7/17/15
to priva...@googlegroups.com
here is no logfile in the directory  /var/log/privacyidea

Cornelius Kölbel

unread,
Jul 17, 2015, 2:24:16 AM7/17/15
to priva...@googlegroups.com
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 directory

Am 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...@googlegroups.com.
> To post to this group, send email to priva...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/privacyidea/32e13c42-06b1-4e52-b4b6-f687719f93a2%40googlegroups.com.
signature.asc

Stefan Steuer

unread,
Jul 17, 2015, 3:41:54 AM7/17/15
to priva...@googlegroups.com
Issue were solved with two restarts....

Reply all
Reply to author
Forward
0 new messages