IOError: [Errno 21] Is a directory:

31 views
Skip to first unread message

Auden RovelleQuartz

unread,
Jun 29, 2015, 5:48:09 PM6/29/15
to web...@googlegroups.com
does anyone know what this means?

{
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2015
Version 2.11.2-stable+timestamp.2015.05.30.16.33.24
Database drivers available: sqlite3, psycopg2, pg8000, pymysql, imaplib
Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/shell.py", line 262, in run
    execfile(startfile, _env)
IOError: [Errno 21] Is a directory: 'applications/omniavx_joe'
}

isn't it supposed to be a directory?

Massimo Di Pierro

unread,
Jun 30, 2015, 3:36:32 AM6/30/15
to web...@googlegroups.com, oves...@gmail.com
yes. it is supposed to be. When do you get this error?

Auden RovelleQuartz

unread,
Jun 30, 2015, 7:10:16 AM6/30/15
to web...@googlegroups.com, oves...@gmail.com
there is a system cron process "init_db_tables.py" (the script in the web2py cron folder) that runs @reboot

that process produces that error

Auden RovelleQuartz

unread,
Jun 30, 2015, 7:25:51 AM6/30/15
to web...@googlegroups.com
SOLVED

the issue was in the system crontab,

@reboot python /home/www-data/web2py/web2py.py -S omniavx_joe -M -R applications/omniavx_joe /cron/init_db_tables.py 1 >> /tmp/cron_init_db_tables.output 2>&1

should be instead

@reboot python /home/www-data/web2py/web2py.py -S omniavx_joe -M -R applications/omniavx_joe/cron/init_db_tables.py 1 >> /tmp/cron_init_db_tables.output 2>&1


(typo: there should not be a space after omniavx_joe in the pathname)
Reply all
Reply to author
Forward
0 new messages