-
Notifications
You must be signed in to change notification settings - Fork 226
Database Build Fails; Suggestions Requested
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:
- Follow starter project steps to set up Google Appengine and Local Development environments for WordPress.
- Load starter project in Launcher, click Run, see busy for about 4 seconds, get yellow ! triangle by project id in Launcher.
- Check Log and find Log File Text (below), ending in "Process exited with Code 1".
- Created this request for assistance and posted it to the Project Wiki.
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 PDT:
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...
Update 2014 10 25; 11:20 PDT:
OK, partial success. Implementing the GAE PHP WordPress Starter Project on the win 7 64 bit VM worked OK. I am able to log in to WordPress running locally and post to the instance. Next step is implementing CiviCRM within the WordPress Platform. That ran into an error: Path Too Long in copying files to the plugin directory. So, I need to shorten the path. My solution is to shorten the path length by going from: "appengine-php-wordpress-starter-project" in the path to "aephpwpsp" in the full path. If all path references are "local" that should work. Let's see...
Update 2014 10 25; 23:10 PDT:
Using the short path "aephpwpsp" worked nicely. I was able to set up the local environment and implement CiviCRM on the WordPress platform. Next step is to deploy the app on GAE and work through the web to access it. That's for later.
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)