Bug0029

Description
Initialise Database Scema upgrade fails

pyFLAG 0.84rc2 running on ubuntu 7.04: First load of pyFLAG creates default database. Second run prompts to upgrade database schema from (0) to (1). Selecting "Upgrade" and clicking submit fails.

6376(Debug): Will shell out to run /bin/cat /usr/local/share/pyflag/db.setup 
sh: /usr/bin: Permission denied
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 49643)
Traceback (most recent call last):
  File "SocketServer.py", line 464, in process_request_thread
    self.finish_request(request, client_address)
  File "SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "SocketServer.py", line 522, in __init__
    self.handle()
  File "BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "BaseHTTPServer.py", line 310, in handle_one_request
    method()
  File "/usr/local/lib/python2.5/site-packages/pyflag/FlagHTTPServer.py", line 248, in do_GET
    if flag.check_config(result,query):
  File "/usr/local/lib/python2.5/site-packages/pyflag/FlagFramework.py", line 613, in check_config
    report.display(query,result)
  File "/usr/local/lib/python2.5/site-packages/pyflag/plugins/Configuration.py", line 119, in display
    FlagFramework.post_event('init_default_db', dbh.case)
  File "/usr/local/lib/python2.5/site-packages/pyflag/FlagFramework.py", line 1007, in post_event
    getattr(event_handler, event)(dbh,case)
  File "/usr/local/lib/python2.5/site-packages/pyflag/plugins/Core.py", line 341, in init_default_db
    dbh.MySQLHarness("/bin/cat %s/db.setup" % config.DATADIR)
  File "/usr/local/lib/python2.5/site-packages/pyflag/DB.py", line 778, in MySQLHarness
    p_mysql.write(data)
IOError: [Errno 32] Broken pipe
------------------------------------
Logged
9 May 2007
Logged By

BlareSutton

Assigned to
Status
Closed

Get back to the BugIndex


Blare, This looks like pyflag is unable to shell out. Its trying to pipe /bin/cat /usr/local/share/pyflag/db.setup to the mysql client binary normally found in /usr/bin/mysql.

Do you have mysql-client installed?

Scudette: I am closing this as this appears to have been the problem.