appengine - reduce friction

149 views
Skip to first unread message

Tomasz Kubacki

unread,
Oct 15, 2015, 7:18:57 AM10/15/15
to Dart Server-side and Cloud Development
Hi,

Is there any long term plan to reduce friction while developing appengine apps ?
I know it's still preview, but having no easy way (preferably dockerless) to debug appengine apps on local machine makes it very hard to convince anyone to try it out.

I would love to hear where current server-side-dart efforts is going.

Cheers,
t.k





Kevin Moore

unread,
Oct 16, 2015, 12:30:17 AM10/16/15
to Dart Server-side and Cloud Development
You can run Docker-less now, using --custom-entrypoint

gcloud preview app run --custom-entrypoint \"dart bin/server.dart --port={port}\" app.yaml

You'll need to add arg parsing to your server, but that's about it.


We need to get our docs updated, since we're tracking a moving target with managed VMs.

> Kevin

Tomasz Kubacki

unread,
Oct 16, 2015, 1:10:10 AM10/16/15
to Dart Server-side and Cloud Development
Kevin,

Tried it already. It seems to start but got 503 on every hit (at least with newest gcloud 0.9.82). 

full log below

INFO     2015-10-16 05:06:55,056 devappserver2.py:763] Skipping SDK update check.

INFO     2015-10-16 05:06:55,098 api_server.py:205] Starting API server at: http://localhost:63426

INFO     2015-10-16 05:06:55,106 dispatcher.py:197] Starting module "default" running at: http://localhost:8080

INFO     2015-10-16 05:06:55,112 admin_server.py:116] Starting admin server at: http://localhost:8000

INFO     2015-10-16 05:07:19,370 module.py:786] default: "GET / HTTP/1.1" 503 59

INFO     2015-10-16 05:07:29,509 module.py:786] default: "GET /favicon.ico HTTP/1.1" 503 59

Kevin Moore

unread,
Oct 16, 2015, 1:28:00 AM10/16/15
to Tomasz Kubacki, Dart Server-side and Cloud Development
Are you using pub serve?

Do you have thing set in app.yaml?

DART_PUB_SERVE: 'http://localhost:[some port]'

--
You received this message because you are subscribed to the Google Groups "Dart Server-side and Cloud Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud+un...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/cloud/.

Tomasz Kubacki

unread,
Oct 16, 2015, 1:56:03 AM10/16/15
to Dart Server-side and Cloud Development, tomasz....@gmail.com


W dniu piątek, 16 października 2015 07:28:00 UTC+2 użytkownik Kevin Moore napisał:
Are you using pub serve?

Do you have thing set in app.yaml?

 yes

DART_PUB_SERVE: 'http://localhost:[some port]'

and yes

maybe something else is broken on my proj. or my machine will try later on other computer (I'm on OSX now, will try on Linux box) and with your git repo. 

If I figure out something I will post it here.

Anyway thanks for your help.


tomas eilsoe

unread,
Oct 16, 2015, 4:02:10 AM10/16/15
to Dart Server-side and Cloud Development
Hi

I recently spend 20 hours trying to get dar running on an appengine managed vm. The dart experts on the dart slack were a great help. After 20 hours of running into problems and working with outdated documentation I finally gave up.

My ambition was to use dart, data store and memcache. I never got a VM running on Google's platform. I got one running locally in a docker container, but unable to debug it.

Im sorry to say that I think the current developer experience is awfull. Even for a alpha product.

I'm on windows 10. Using webstorm.

Dart for the browser is great but the documentation to get started on using dart server side with Google services is in such a bad state that I bet noone can get started. I would recommend removing the documentation as it is now or get it updated.

I'm sorry for the bad carma. I love dart. It awesome for the browser. I wish we could deliver better results for the dart on both client and server story.

PS. If you you want to know specifics about what went wrong I suggest just trying to get it running on windows 10 following the documentation. If someone is willing to work on the documentation I'm willing to help by testing the descriped procedure.


Tomas.

David Stone

unread,
Oct 16, 2015, 4:06:19 AM10/16/15
to tomas eilsoe, Dart Server-side and Cloud Development
Hi Tomas,

Can you email me privately? We might be able to help. 

Best regards
David


--
You received this message because you are subscribed to the Google Groups "Dart Server-side and Cloud Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud+un...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/cloud/.



--
Exit Live Limited
Synergy Centre
ITT
Dublin 24
Republic of Ireland
+353 1960 9622
---
‘Que Serra, Serra, whatever will be, will be, we're going to Wembley, Que Serra, Serra’

Tomasz Kubacki

unread,
Oct 20, 2015, 10:14:22 PM10/20/15
to Dart Server-side and Cloud Development
So the problem was I was not passing port to shelf correctly - I'm now using this code:

   gcloud preview app run --custom-entrypoint \"dart bin/server.dart --port={port}\" app.yaml

I still can't debug though.

Is there any easy way to print out variables (since console output does not show appengine service output) ?

Tristan Caron

unread,
Mar 5, 2016, 8:43:07 AM3/5/16
to Dart Server-side and Cloud Development

Same as tomas eilsoe. I spent days, and it doesn't work...


I got



INFO     2015-10-16 05:06:55,056 devappserver2.py:763] Skipping SDK update check.

INFO     2015-10-16 05:06:55,098 api_server.py:205] Starting API server at: http://localhost:63426

INFO     2015-10-16 05:06:55,106 dispatcher.py:197] Starting module "default" running at: http://localhost:8080

INFO     2015-10-16 05:06:55,112 admin_server.py:116] Starting admin server at: http://localhost:8000

INFO     2015-10-16 05:07:19,370 module.py:786] default: "GET / HTTP/1.1" 503 59

INFO     2015-10-16 05:07:29,509 module.py:786] default: "GET /favicon.ico HTTP/1.1" 503 59


The tutorials aren't up-to-date. It's so frustrating ...

tomas eilsoe

unread,
Mar 5, 2016, 8:46:20 AM3/5/16
to Tristan Caron, Dart Server-side and Cloud Development

It actually works great for me now Tristan. What is the error you get ?


--
You received this message because you are subscribed to the Google Groups "Dart Server-side and Cloud Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud+un...@dartlang.org.

Tristan Caron

unread,
Mar 5, 2016, 8:49:51 AM3/5/16
to Dart Server-side and Cloud Development, efx...@gmail.com
When I run 

dev_appserver.py --custom_entrypoint "dart bin/server.dart --port=8080" app.yaml I get


INFO     2016-03-05 13:44:39,527 application_configuration.py:431] No version specified. Generated version id: 20160305t134439

INFO     2016-03-05 13:44:39,528 devappserver2.py:769] Skipping SDK update check.

INFO     2016-03-05 13:44:39,560 api_server.py:205] Starting API server at: http://localhost:52613

INFO     2016-03-05 13:44:39,567 dispatcher.py:197] Starting module "default" running at: http://localhost:8080

INFO     2016-03-05 13:44:39,572 admin_server.py:116] Starting admin server at: http://localhost:8000

INFO     2016-03-05 13:44:59,350 module.py:787] default: "GET / HTTP/1.1" 503 59

INFO     2016-03-05 13:45:09,517 module.py:787] default: "GET /favicon.ico HTTP/1.1" 503 59


I'm just trying to run the simple hello_world provided in tutorial...

Søren Gjesse

unread,
Mar 7, 2016, 1:52:45 AM3/7/16
to Tristan Caron, Dart Server-side and Cloud Development
Please note that you need to pass the argument "{port}" to bin/server.dart, not "--port=8080" in the helloworld sample. The command line to run is:

  dev_appserver.py --custom_entrypoint "dart bin/server.dart {port}" app.yaml

as is also described on https://dart-lang.github.io/server/google-cloud-platform/app-engine/run.html. dev_appserver.py uses the pattern {port} to insert the port it allocated in the passed command line, and bin/server.dart expects the port to be the first argument, see https://github.com/dart-lang/appengine_samples/blob/master/helloworld/bin/server.dart#L11.

Regards,
Søren

---
Søren Gjesse
Software Engineer, Google Denmark
CVR nr. 28 86 69 84


--

Tristan Caron

unread,
Mar 7, 2016, 2:00:19 AM3/7/16
to Dart Server-side and Cloud Development, efx...@gmail.com
Yes, my bad, I'm using the one you provided. But it doesn't change anything. :'(
Reply all
Reply to author
Forward
0 new messages