google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Datastore not working with Go? #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. launch the guestbook demo from the 1.7.5 SDK on 0.7 of devappserver2
2. Go to localhost:8080/ in your browser
3. sign in as any user

What is the expected output? What do you see instead?
Expect to see the form to submit something to the guestbook. instead I get a 
server error

What version of the product are you using? On what operating system?
devappserver2-v0.7_linux_amd64 on Arch Linux 64-bit

Please provide any additional information below.
Grabbed the Go guestbook example off of the 1.7.5 SDK. It runs fine with the 
older dev app server, but when I run it with the 0.7 of devappserver 2, it 
crashes. Anytime I introduce any datastore interaction with a test app on 0.7, 
it fails. I start with the --clear_datastore parameter

Original issue reported on code.google.com by someone1@gmail.com on 19 Mar 2013 at 4:32

GoogleCodeExporter commented 9 years ago
Are any errors logged to the console? If not, can you try running with 
--log_level=debug.

Original comment by sa...@google.com on 19 Mar 2013 at 6:19

GoogleCodeExporter commented 9 years ago
Here's the output:

/opt/google_appengine2/dev_appserver.py 
--datastore_path=/home/prateek/workspace/gotest/.datastore 
/opt/google_appengine/demos/guestbook/ --clear_datastore --log_level=debug
DEBUG    2013-03-20 11:55:39,970 appengine_rpc.py:174] Server: 
appengine.google.com
INFO     2013-03-20 11:55:39,975 sdk_update_checker.py:244] Checking for 
updates to the SDK.
DEBUG    2013-03-20 11:55:39,975 appengine_rpc.py:392] Sending HTTPS request:
POST 
/api/updatecheck?api_versions=%5B%271%27%5D&release=1.7.5&runtime=go×tamp=13576
90550 HTTPS/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: devappserver2_py/1.7.5 Linux/3.7.10-1-ARCH Python/2.7.3.final.0

INFO     2013-03-20 11:55:40,070 sdk_update_checker.py:288] This SDK release is 
newer than the advertised release.
WARNING  2013-03-20 11:55:40,072 api_server.py:323] Could not initialize images 
API; you are likely missing the Python "PIL" module.
INFO     2013-03-20 11:55:40,074 api_server.py:152] Starting API server at: 
http://localhost:41490
DEBUG    2013-03-20 11:55:40,083 inotify_file_watcher.py:96] 
_add_watch_for_path('/opt/google_appengine/demos/guestbook')
INFO     2013-03-20 11:55:40,084 dispatcher.py:93] Starting server "default" 
running at: http://localhost:8080
INFO     2013-03-20 11:55:40,084 admin_server.py:117] Starting admin server at: 
http://localhost:8000
DEBUG    2013-03-20 11:55:40,092 go_application.py:220] Rebuilding Go 
application due to source modification
DEBUG    2013-03-20 11:55:40,092 go_application.py:162] Building Go application
DEBUG    2013-03-20 11:55:40,591 instance.py:278] Started instance: <Instance 
b317c8af080f2790ff6cdd633df4937d76dd: 0/1, total: 0>
DEBUG    2013-03-20 11:55:40,591 server.py:956] Created instance: <Instance 
b317c8af080f2790ff6cdd633df4937d76dd: 0/1, total: 0>
DEBUG    2013-03-20 11:55:51,253 url_handler.py:138] login required, 
redirecting user
INFO     2013-03-20 11:55:51,253 server.py:512] "GET / HTTP/1.1" 302 -
DEBUG    2013-03-20 11:55:51,321 url_handler.py:138] login required, 
redirecting user
INFO     2013-03-20 11:55:51,321 server.py:512] "GET /favicon.ico HTTP/1.1" 302 
-
DEBUG    2013-03-20 11:55:53,546 server.py:915] Dispatching request to 
<Instance b317c8af080f2790ff6cdd633df4937d76dd: 0/1, total: 0> after 0.0001s 
pending
2013/03/20 11:55:53 ERROR: dial tcp 127.0.0.1:41490: connection refused
DEBUG    2013-03-20 11:55:53,548 instance.py:385] Request handled by <Instance 
b317c8af080f2790ff6cdd633df4937d76dd: 1/1, total: 1> in 0.0020s
INFO     2013-03-20 11:55:53,549 server.py:512] "GET / HTTP/1.1" 500 21
DEBUG    2013-03-20 11:55:53,566 url_handler.py:138] login required, 
redirecting user
INFO     2013-03-20 11:55:53,567 server.py:512] "GET /favicon.ico HTTP/1.1" 302 
-
DEBUG    2013-03-20 11:55:53,609 instance.py:278] Started instance: <Instance 
723efdce412caf50afcf3dbfc6c4c8d50df0: 0/1, total: 0>
DEBUG    2013-03-20 11:55:53,609 server.py:956] Created instance: <Instance 
723efdce412caf50afcf3dbfc6c4c8d50df0: 0/1, total: 0>

Original comment by prat...@referabuyer.com on 20 Mar 2013 at 11:59