Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Database Build Fails; Suggestions Requested

dvhirst edited this page Oct 25, 2014 · 5 revisions

I seek to implement WordPress on the Google Appengine. I have followed the process described in the starter project to the best of my ability, but come up to an error exit in the db build step. I would appreciate advice / suggestions about possible remedies or next steps.

RYO System Configuration: SCP: Win7SP1 64bit; Mobo: ASUS Crosshair IV Formula Rev 1.02G; BIOS: American Megatrends Inc. V1005 08/06/2010; CPU: AMD Phenom II X4 965 C3 BE, 3.95 GHz; RAM: Corsair Dominator DDR3, 8 GB (2 x 4 GB); SATA III SSD: OCZ Vertex 240 GB; SATA III HDD: 1 x Seagate 2 TB, 2 x WD 500 GB, 1 x Seagate 300 GB, 3 x Seagate Replica 2TB USB3 (Automatic backup); ODD: 1 x Plextor SATA DVD RW, 1 x ASUS SATA BlueRay DVD RW; VGA: ASUS EN6600TD PCIe; PSU: OCZ X-Stream 650W; Case: Eagle Tech-Skyhawk Server; Cooling: CPU-stock; 2 case fans.

Process:

  1. Follow starter project steps to set up Google Appengine and Local Development environments for WordPress.
  2. Load starter project in Launcher, click Run, see busy for about 4 seconds, get yellow ! triangle by project id in Launcher.
  3. Check Log and find Log File Text (below), ending in "Process exited with Code 1".
  4. Created this request for assistance and posted it to the Project Wiki.
Update 2014 10 24; 11:45:
Following the traceback in the log, I find that the problem arises as the DB Build process is reading the Windows 7 Registry to build a database of MIME-Types. It seems that there is a string returned containing null bytes. When I checked the registry (Computer\HKEY_CLASSES_ROOT\Mime\Database\Content Type\), I found that several entries had a null string for the (Default) key, rather than "Value not set". I deleted these null strings so that all (Default) keys have either a null terminated string or "Value not set" indicated. In checking the Extension key, I found that all are set with a null terminated string. In any case, editing my registry to remove the null strings for the Default keys and verifying that all Extension keys are set made no difference in behavior, I am still seeing the exit with Code 1; no joy yet.

Update 2014 10 24; 23:45:
Seeing no response to the above, I'll try implementing the Starter Project in a Win 8.1 VM running on my desktop. Perhaps the less complex environment will work better. Stay tuned for further developments...

TIA for any assistance you can provide.

Don Hirst
Eugene, OR
dvhirst[at]aol.com

Log File Text

2014-10-22 23:24:18 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8001', 'I:\\Data\\GitHub\\appengine-php-wordpress-starter-project']"
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 83, in <module>
    _run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 79, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 34, in <module>
    from google.appengine.tools.devappserver2 import api_server
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\api_server.py", line 70, in <module>
    from google.appengine.tools.devappserver2 import wsgi_server
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\wsgi_server.py", line 32, in <module>
    from cherrypy import wsgiserver
  File "C:\Program Files (x86)\Google\google_appengine\lib\cherrypy\cherrypy\__init__.py", line 70, in <module>
    from cherrypy import _cptools
  File "C:\Program Files (x86)\Google\google_appengine\lib\cherrypy\cherrypy\_cptools.py", line 245, in <module>
    from cherrypy.lib import cptools, encoding, auth, static, jsontools
  File "C:\Program Files (x86)\Google\google_appengine\lib\cherrypy\cherrypy\lib\static.py", line 7, in <module>
    mimetypes.init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
2014-10-22 23:24:22 (Process exited with code 1)
Clone this wiki locally