pyflag 0.84 problem running

Help
igpar1
2007-03-18
2013-05-29
  • igpar1

    igpar1 - 2007-03-18

    Hi,

    After installing pyflag, entering the initial settings I get the following error:

    Exception happened during processing of request from ('127.0.0.1', 37740)
    Traceback (most recent call last):
      File "SocketServer.py", line 463, 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 521, 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.4/site-packages/pyflag/FlagHTTPServer.py", line 196, in do_GET
        s = os.stat(path)
    OSError: [Errno 2] No such file or directory: '/usr/local/share/pyflag/javascript/functions.js'
    ----------------------------------------

    Then I initialise the database in the browser and get the following error:

    posted query is upgrade=yes&error=Unable%2520to%2520connect%2520%252D%2520does%2520the%2520DB%2520Exist%253F&family=Configuration&report=Initialise%2520Database
    ----------------------------------------
    Exception happened during processing of request from ('127.0.0.1', 37741)
    Traceback (most recent call last):
      File "SocketServer.py", line 463, 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 521, 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.4/site-packages/pyflag/FlagHTTPServer.py", line 153, in do_POST
        self.do_GET()
      File "/usr/local/lib/python2.4/site-packages/pyflag/FlagHTTPServer.py", line 248, in do_GET
        if flag.check_config(result,query):
      File "/usr/local/lib/python2.4/site-packages/pyflag/FlagFramework.py", line 573, in check_config
        query['report'])
      File "/usr/local/lib/python2.4/site-packages/pyflag/Registry.py", line 239, in dispatch
        raise Exception("Can not find report %s/%s" % (family,report))
    Exception: Can not find report Configuration/Initialise%20Database
    ----------------------------------------
    After this the browser goes to http://127.0.0.1:8000/f

    and a blank screen.

    Any ideas?

    Regards
    Ian Parks - Melbourne AU

     
    • Michael Cohen

      Michael Cohen - 2007-03-18

      Ian,
        This sounds like a known problem with 0.84RC1. I have just released 0.84RC2 which should address these issue, please try that. If you still have problems please report.

      Michael.

       
    • igpar1

      igpar1 - 2007-03-23

      Thanks Michael,

      I have installed 0.84RC2 (on ubuntu distribution).

      After running:

      "root@igpar1-desktop:/home/igpar1# mysqladmin -u root password "password""

      I get an error:

      "mysqladmin: connect to server at 'localhost' failed
      error: 'Access denied for user 'root'@'localhost' (using password: NO)'"

      after running pyflag and getting the initialise database screen.  I select initialise database and execute.

      The browser then goes blank.

      In the command line I get the following error

      "Exception happened during processing of request from ('127.0.0.1', 40444)
      Traceback (most recent call last):
        File "SocketServer.py", line 463, 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 521, 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.4/site-packages/pyflag/FlagHTTPServer.py", line 248, in do_GET
          if flag.check_config(result,query):
        File "/usr/local/lib/python2.4/site-packages/pyflag/FlagFramework.py", line 613, in check_config
          report.display(query,result)
        File "/usr/local/lib/python2.4/site-packages/pyflag/plugins/Configuration.py", line 114, in display
          dbh = DB.DBO('mysql')
        File "/usr/local/lib/python2.4/site-packages/pyflag/DB.py", line 308, in __init__
          self.dbh,self.mysql_bin_string=DBH.get(key).get()
        File "/usr/local/lib/python2.4/site-packages/pyflag/DB.py", line 210, in get
          raise DBError("Unable to connect - does the DB Exist?")
      DBError: Unable to connect - does the DB Exist?"
      ----------------------------------------

      Is it my mysql setup causing the problem?

      Regards,

      Ian

       
      • Michael Cohen

        Michael Cohen - 2007-03-23

        igpar1,

        It looks like you already have a password set on your mysql installation, because mysqladmin was unable to set a password without logging in with an existing password (the default password is blank). So I would assume your database password is set correctly.

        However, it seems that PyFlag already has a password set in its ~/.pyflagrc which its failing to connect with - please check or remove your ~/.pyflagrc to ensure the password there is correct. Is it possible that you have previously configured pyflag with a different password than the current db password?

        Michael.

         
    • igpar1

      igpar1 - 2007-03-26

      Michael,

      I have logged in to mysqladmin and checked the password.

      This might be a silly question, but where do I find my ~/.pyflagrc?

      I have two on my system: one at usr/local/etc  and one in the initial installation folder. Both are mounted read only.

      Both state they are the site wide configuration file.  Both have the DBUSER and DBPASSWORD values blank.

      Could the problem be that they are mounted read only?

      Ian

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks