Error in server startup(Ubuntu 8.0.4)

8 views
Skip to first unread message

Rafael Nunes

unread,
Jul 1, 2008, 4:40:56 PM7/1/08
to Google App Engine
Hi,
I follow the entire tutorial of Google app engine and everything works
fine when I run in WIndows XP or Windows Vista.
But when I try to run the same tutorial in Linux Ubuntu 8.0.4, I
cannot start the server(dev_appserver.py). I search in the group
history for this error, and I would create this files (dev_appserver*)
at first time I run the server. But it didn't.
Here is the erro that I receive when I try to start(I already tried to
start with sudo, but I have the same error):

rafael@rafael-note2:~/dev/google_appengine$ sudo python
dev_appserver.py myprojects/helloworld/
[sudo] password for rafael:
INFO 2008-07-01 20:10:29,386 appcfg.py] Server:
appengine.google.com
INFO 2008-07-01 20:10:29,398 appcfg.py] Checking for updates to
the SDK.
INFO 2008-07-01 20:10:30,223 appcfg.py] The SDK is up to date.
WARNING 2008-07-01 20:10:30,224 datastore_file_stub.py] Could not
read datastore data from /tmp/dev_appserver.datastore
WARNING 2008-07-01 20:10:30,224 datastore_file_stub.py] Could not
read datastore data from /tmp/dev_appserver.datastore.history
Traceback (most recent call last):
File "dev_appserver.py", line 50, in <module>
execfile(script_path, globals())
File "/home/rafael/dev/google_appengine/google/appengine/tools/
dev_appserver_main.py", line 351, in <module>
sys.exit(main(sys.argv))
File "/home/rafael/dev/google_appengine/google/appengine/tools/
dev_appserver_main.py", line 330, in main
require_indexes=require_indexes)
File "/home/rafael/dev/google_appengine/google/appengine/tools/
dev_appserver.py", line 2645, in CreateServer
return BaseHTTPServer.HTTPServer((serve_address, port),
handler_class)
File "/usr/lib/python2.5/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 101, in
server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.5/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: (99, 'Cannot assign requested address')

Matt Falkenhagen

unread,
Jul 1, 2008, 10:41:28 PM7/1/08
to Google App Engine
I would guess some other process is listening on the default port
(8080). Try running the dev_appserver on a different port by using the
-p option. You can use netstat to see what's listening on the port.

Rafael Nunes

unread,
Jul 2, 2008, 2:49:20 PM7/2/08
to google-a...@googlegroups.com
I tried it with other ports(8090, 8088, etc) and have the same error.
The problem is not the port because I can run other services in this port(like Tomcat, Jboss, etc).

And the error log says the server cannot find the files '/tmp/dev_appserver.datastore' and '/tmp/dev_appserver.datastore.history'. In fact I don't have this files in this directory, but why the server do not create them when it starts?

Thank you,
Rafael

Rafael Nunes

unread,
Jul 4, 2008, 2:48:14 PM7/4/08
to google-a...@googlegroups.com
Just for the records.
It was miss the 'lo inet' interface in my /etc/networking/interfaces.

Now everything is working fine.

Rafael
Reply all
Reply to author
Forward
0 new messages