dev_appserver.py can't start _go_app - OSError: [Errno 13] Permission denied

301 views
Skip to first unread message

Saratogan

unread,
Sep 30, 2013, 12:14:53 AM9/30/13
to golan...@googlegroups.com
Hi,

I succeeded in following/coding/testing and uploading the Hello World! Go app engine tutorial using native Windows 8 tools (after I sorted out windows Python + cygwin issues).  But I want to continue dev on Linux.  But I am having problems getting dev_appserver.py to start the tutorial's _go_app (built successfully).  Configuration and debug log below.  I checked and verified  permission on every file and dir I could find in the log.  What could be the problem? 

Thank you in advance for your help.

Sincerely,
Saratogan

-------------------------

Configuration:

Ubuntu (VMPlayer guest OS to Windows 8) - Linux ubuntu 3.8.0-31-generic #46~precise1-Ubuntu SMP Wed Sep 11 18:21:16 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

go version go1.1.2 linux/amd64

Go App Eng SDK 1.8.5 (probably not necessary but I "chmod -R r+x go_appengine/")

Python 2.7.3


-------------------------

Log:

/home/saratogan $ python /home/saratogan/go_appengine/dev_appserver.py --dev_appserver_log_level debug /home/saratogan/go/src/webapps/

DEBUG    2013-09-30 03:53:34,747 appengine_rpc.py:174] Server: appengine.google.com
INFO     2013-09-30 03:53:34,767 sdk_update_checker.py:245] Checking for updates to the SDK.
DEBUG    2013-09-30 03:53:34,768 appengine_rpc.py:392] Sending HTTPS request:
POST /api/updatecheck?api_versions=%5B%271%27%5D&release=1.8.5&runtime=go&timestamp=1378244055 HTTPS/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: devappserver2_py/1.8.5 Linux/3.8.0-31-generic Python/2.7.3.final.0
INFO     2013-09-30 03:53:35,131 sdk_update_checker.py:289] This SDK release is newer than the advertised release.
INFO     2013-09-30 03:53:35,388 api_server.py:138] Starting API server at: http://localhost:38537
DEBUG    2013-09-30 03:53:35,422 inotify_file_watcher.py:99] _add_watch_for_path('/home/saratogan/go/src/webapps')
DEBUG    2013-09-30 03:53:35,465 inotify_file_watcher.py:99] _add_watch_for_path('/home/saratogan/go/src')
INFO     2013-09-30 03:53:35,790 dispatcher.py:168] Starting module "default" running at: http://localhost:8080
INFO     2013-09-30 03:53:35,793 admin_server.py:117] Starting admin server at: http://localhost:8000
DEBUG    2013-09-30 03:53:35,796 safe_subprocess.py:60] Starting process ['/home/saratogan/go_appengine/goroot/bin/go-app-builder', '-app_base', '/home/saratogan/go/src/webapps', '-arch', '6', '-binary_name', '_go_app', '-dynamic', '-extra_imports', 'appengine_internal/init', '-goroot', '/home/saratogan/go_appengine/goroot', '-nobuild_files', '^^$', '-unsafe', '-work_dir', '/tmp/tmpgLBcuxappengine-go-bin', '-gopath', '/home/saratogan/go', '-print_extras_hash', 'hello/hello.go'] with input='', env={}, cwd=None
DEBUG    2013-09-30 03:53:35,912 go_application.py:239] Rebuilding Go application due to source modification
DEBUG    2013-09-30 03:53:35,913 go_application.py:179] Building Go application
DEBUG    2013-09-30 03:53:35,913 safe_subprocess.py:60] Starting process ['/home/saratogan/go_appengine/goroot/bin/go-app-builder', '-app_base', '/home/saratogan/go/src/webapps', '-arch', '6', '-binary_name', '_go_app', '-dynamic', '-extra_imports', 'appengine_internal/init', '-goroot', '/home/saratogan/go_appengine/goroot', '-nobuild_files', '^^$', '-unsafe', '-work_dir', '/tmp/tmpgLBcuxappengine-go-bin', '-gopath', '/home/saratogan/go', 'hello/hello.go'] with input='', env={}, cwd=None
DEBUG    2013-09-30 03:53:38,616 go_application.py:195] Build succeeded:

2013/09/29 20:53:38 go-app-builder: build timing: 2×6g (233.2331ms total), 3×gopack (46.273774ms total), 1×6l (2.199510417s total)

DEBUG    2013-09-30 03:53:38,670 safe_subprocess.py:60] Starting process '/tmp/tmpgLBcuxappengine-go-bin/_go_app' with input='CgZkZXZ+aHcSFDEuMzQ0OTE1OTMwNzAyOTcwMjQ5Gh4vaG9tZS9zYXJhdG9nYW4vZ28vc3JjL3dlYmFwcHMgACiJrQIyDgoHd2ViYXBwMhIDMi4zMg4KBXdlYm9iEgUxLjEuMTIMCgR5YW1sEgQzLjEwOjdeKC4qLyk/KCgjLiojKXwoLip+KXwoLipcLnB5W2NvXSl8KC4qL1JDUy8uKil8KFwuLiopfCkkQgJeJFoSCglsb2NhbGhvc3QQ6hkaACIAYgN1czFqJGZhN2FkNThkMDBiM2RmZTZmMWEzNWRjYmU0ZWVmY2JjY2UwY3gBggEJZ21haWwuY29tigEJbG9jYWxob3N0', env={'GOROOT': '/home/saratogan/go_appengine/goroot', 'PWD': '/home/saratogan/go/src/webapps', 'TZ': 'UTC', 'USER': 'saratogan'}, cwd='/home/saratogan/go/src/webapps'
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/module.py", line 1250, in _loop_adjusting_instances
    self._adjust_instances()
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/module.py", line 1227, in _adjust_instances
    self._add_instance(permit_warmup=True)
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/module.py", line 1112, in _add_instance
    if not inst.start():
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/instance.py", line 271, in start
    self._runtime_proxy.start()
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/http_runtime.py", line 379, in start
    cwd=self._module_configuration.application_root)
  File "/home/saratogan/go_appengine/google/appengine/tools/devappserver2/safe_subprocess.py", line 62, in start_process
    stdin=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

------- end of log ------



Ibrahim M. Ghazal

unread,
Sep 30, 2013, 9:17:00 AM9/30/13
to Saratogan, golang-nuts
Just a random guess, is /tmp mounted noexec?

jacob....@gmail.com

unread,
Sep 30, 2013, 11:56:53 AM9/30/13
to golan...@googlegroups.com, jacob....@gmail.com
You nailed it!

Thank you very much.

Saratogan
Reply all
Reply to author
Forward
0 new messages