goapp test: timeout starting child process

428 views
Skip to first unread message

Fred Janon

unread,
Jul 24, 2014, 6:01:02 PM7/24/14
to google-ap...@googlegroups.com
GAE Go SDK 1.9.7 Win7 Pro

I am getting a "timeout starting child process". I launch the same command and it works. the system is quite buy and paging, that's probably why I am getting this timeout.

Is there a way to increase the timeout?

C:\test>goapp test -run TestSearchList
2014/07/24 23:15:54 appengine: not running under devappserver2; using some default configuration
--- FAIL: TestSearchList (15.06 seconds)
        search_test.go:155: timeout starting child process
FAIL
exit status 1
FAIL    _/C_/test 15.626s

Thanks

Glenn Lewis

unread,
Jul 24, 2014, 6:17:34 PM7/24/14
to Fred Janon, google-appengine-go
$ cat app_test.go
package testwithtimeout

import (
"testing"
"time"

"appengine"
"appengine/aetest"
"appengine/memcache"
)

func TestVars(t *testing.T) {
c, err := aetest.NewContext(nil)
if err != nil {
t.Fatal(err)
}
defer c.Close()

nc := appengine.Timeout(c, 90*time.Second)
_, err = memcache.Get(nc, "something")
if err != nil {
t.Error(err)
}
}



--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Zimmerman

unread,
Jul 24, 2014, 6:34:59 PM7/24/14
to Glenn Lewis, Fred Janon, google-appengine-go
Wrong kind of timeout Glenn ;)

It's a hardcoded value in aetest.

Once again Fred, I'm banking on you not closing your contexts (or panicking/exiting before defer).  My system runs out of resources running ~10 dev appservers too.

Glenn Lewis

unread,
Jul 24, 2014, 6:42:49 PM7/24/14
to Matthew Zimmerman, Fred Janon, google-appengine-go
Whups.  Thanks, Matthew!

Fred Janon

unread,
Jul 24, 2014, 7:12:11 PM7/24/14
to google-ap...@googlegroups.com, gml...@google.com, fja...@gmail.com
Once again, cmd used for 1 test, nothing to do with the test, the luanch stops before the test runs.

C:\test>goapp test -run TestSearchList
2014/07/24 23:15:54 appengine: not running under devappserver2; using some default configuration
--- FAIL: TestSearchList (15.06 seconds)
        search_test.go:155: timeout starting child process
FAIL
exit status 1
FAIL    _/C_/test 15.626s

Is there another list for support for GAE GO Windows?
>> To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.

>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.

David Symonds

unread,
Jul 24, 2014, 8:18:22 PM7/24/14
to Fred Janon, google-appengine-go, Glenn Lewis
Can you show us the full output for
dev_appserver.py --port=0 --api_port=0 --admin_port=0
--skip_sdk_update_check=true --clear_datastore=true <path_to_your_app>
?

Unless your system is incredibly slow, I suspect aetest is not
correctly noticing that the dev_appserver is starting okay, which
might be for all kinds of wacky reasons (localisation of log messages,
for instance).

nou...@gmail.com

unread,
Apr 5, 2016, 10:59:50 PM4/5/16
to google-appengine-go
Today, I got the same error when trying to execute aetests locally: 
"timeout starting child process".

As it turned out the problem was in Google Clodud SDK's "dev_appserver.py" overriding Google AppEngine SDK's "dev_appserver.py".
After setting the value of "APPENGINE_DEV_APPSERVER" environment variable to the path of Google AppEngine SDK's "dev_appserver.py" file, the tests executed fine:
     # export APPENGINE_DEV_APPSERVER="<path to Go AppEngine SDK>/dev_appserver.py"
     # goapp test ...
Reply all
Reply to author
Forward
0 new messages