[google-appengine] Re: How to see ALL files deployed to Google App Engine - Flask app

2018-11-06 Thread Justin Yip
Assuming you are using appengine flex.

When you deploy, you will see a log message: 

...
--
 
REMOTE BUILD OUTPUT 
---
starting build "9929ae8e-3cf8-44b9-af8e-ca439e91b546"
FETCHSOURCE
Fetching storage object: gs://[REDACTED]
Copying gs://[REDACTED]


You should be able to locate the file under the same [REDACTED] path on 
google storage console: https://console.cloud.google.com/storage

Justin

On Tuesday, November 6, 2018 at 11:42:10 AM UTC-8, Katherine Kleim wrote:
>
>
> If I go to the dashboard, I can see only source files and template.
> The problem is I deployed a new version, and ALL my JavaScript files 
> have gone. Pictures (in static/images folder) are visible, but for all .js 
> files in static/js folder have gone.
> I can't figure out why, and a dashboard doesn't show anything.
> Please HELP.
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ffd6aa0f-37d2-496a-b856-c2f5c32cc443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GAE Flex Nodejs deploy failing

2018-11-06 Thread Justin Yip
Hi, 

Since around noon PST, my team has trouble deploying nodejs to appengine 
flex. We get the following message:

ERROR: (gcloud.app.deploy) Error Response: [3] Docker image 
us.gcr.io/leapmind-dev/appengine/yipjustin-wip.20181106t143340:latest was 
either not found, or is not in Docker V2 format.  Please visit 
https://cloud.google.com/container-registry/docs/ui

Our gcloud cli is current:

$ gcloud --version
Google Cloud SDK 224.0.0
app-engine-go
app-engine-python 1.9.79
bq 2.0.36
cloud-datastore-emulator 2.0.2
core 2018.11.02
gsutil 4.34
kubectl 2018.09.17

We are able to deploy the same service yesterday. Seems like this error is 
lately introduced.

We are also possible to deploy our golang service to appengine flex.

There are also reports on stackoverflow 
too: 
https://stackoverflow.com/questions/53180729/gcloud-app-deploy-failed-docker-image-not-found-or-not-in-v2-format



Justin

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/16ce8e74-7fe5-4ee6-8b09-aadaada3b87b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Sudden and ongoing spike in memory and CPU utilization

2018-06-25 Thread Justin Butler
https://issuetracker.google.com/issues/110745398

Mostly wondering if anyone else is seeing a similar unexplained spike in 
resource usage on python standard?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/234d10ae-8555-4565-95d5-86a61bd896dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Cron Job config takes a day to be effective

2018-02-24 Thread Justin Yip
I see. Didn't know that cron update requires a new deployment.

Thanks George.



On Sat, Feb 24, 2018 at 11:12 AM, 'George (Cloud Platform Support)' via
Google App Engine <google-appengine@googlegroups.com> wrote:

> Hello Justin,
>
> How did you update your cron configuration? One can redeploy the whole
> application, or only the cron configuration, for Java, with:
>
>./appengine-java-sdk/bin/appcfg.sh -A your-app-id -V app-version
> update_cron [YOUR_APP_DIR]
>
> For details and other languages, you may read the "Scheduling Tasks With
> Cron for Java" documentation page
> <https://cloud.google.com/appengine/docs/standard/java/config/cron?hl=en_GB&_ga=2.10290229.-1824116711.1512502827>
> .
>
> Usually, any change to the cron messages requires that you re-deploy the
> App Engine application. To avoid this, you could rewrite the App Engine
> application to pull the YAML file from a Cloud Storage bucket, have it
> monitor the file for changes, and update App Engine Cron Service when it
> detects modifications to the YAML file. More details are available on the
> "Reliable Task Scheduling on Google Compute Engine" page
> <https://cloud.google.com/solutions/reliable-task-scheduling-compute-engine#next-steps>
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/mIoNVBc98h4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/e4374230-3961-4159-979b-
> 3be46774a8fc%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/e4374230-3961-4159-979b-3be46774a8fc%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAMyBFLhzzV-SwnZZG%3DnxqrgxDFGHiauBozihBT1Svqj8nTe2ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Cron Job config takes a day to be effective

2018-02-23 Thread Justin Yip
Hello,

I have recently updated my cron config in appengine to reschedule the 
running interval from every 3 hrs to every 6 hour. Appengine console page 
reflects the new changes.

However, this new config is not in effect for a long time before it becomes 
effective. I am still seeing the cron job is triggered every 3 hours for a 
day until its interval is reduced to 6.

I read thru the cron job config page and it doesn't mention anything about 
this latency.

Have any one also experienced similar issues?

Thanks!

Justin

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a6897313-9763-49c2-a357-3894cfce8a83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: GAE / Datastore issues right now?

2018-02-15 Thread Justin Yip
All our writes were timeout since 11:43am PST. (Golang)


On Thursday, February 15, 2018 at 12:29:45 PM UTC-8, Mauricio Lumbreras 
wrote:
>
>
> from 4:45 gmt-3 all projects we have (java) are out of service
> it seems instances are up but there is a disconnection between load 
> balancer and instances, also datastore errors seen on log
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0ea52a12-a90e-4f79-92e2-ba984c0135a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Google App Engine is slow to deploy, hangs on "Updating service [someproject]..."

2018-02-12 Thread Justin Yip
Hello,

My team is not able to deploy anything to appengine since 4pm (PST). The 
following message spins forever:

Updating service [] (this may take several minutes)

Has anyone experienced similar problem?

Justni


On Monday, February 12, 2018 at 4:07:10 PM UTC-8, DeWitt Clinton wrote:
>
> Hi all,
>
> Thanks for being patient, everyone. I waited to reply here until the 
> experiment was fully ramped-up and verified in prod, but all projects 
> should now be eligible to start using the faster in-place version updates.
>
> To perform an in-place update, please pass the --version flag to the 
> deploy command and specify the version you would like to deploy over. 
> Additionally, you’ll likely want to prevent that version from becoming the 
> default, so be sure to include the --no-promote flag. For example:
>
>   $ gcloud app deploy --version  --no-promote 
>
> We recommend you use this flow only for development purposes, and continue 
> to deploy full versions for any production traffic.
>
> Thanks to everyone who tested this out so far, and please let me know if 
> you run into any issues or concerns along the way.
>
> -DeWitt
>
> On Mon, Feb 12, 2018 at 11:55 AM Mike Hardy  > wrote:
>
>> Same boat as Franck and others - this is unusable
>>
>> On Thursday, February 8, 2018 at 12:23:23 PM UTC-8, Franck Diédrich wrote:
>>>
>>> Hello,
>>>
>>> I'm experiencing serious latency too on a flexible env.
>>>
>>> Deployments used to last around 9 minutes (which is quite long) and now 
>>> they time out without explicit reason.
>>>
>>> When will deployement improvement flow be available?
>>>
>>> Le jeudi 29 septembre 2016 21:48:26 UTC+2, Kevin Lau a écrit :


 Is there a faster way to deploy an app? Google App Engine is slow to 
 deploy, hangs on "Updating service [someproject]..." I am using a flexible 
 environment with PHP.

>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/hZMEkmmObDU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/1514f6e9-35dc-46a9-ae0b-383c94529263%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6b5ea96a-2557-4d4a-9979-bd2160088a6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: [Google Cloud Insiders] URGENT: is GAE Standard memcache down????

2017-11-06 Thread Justin Yip
We cannot bring up any "vm: true" for the past couple of hours too.

(Maybe the memcache service is also on "vm: true", which all gets turned 
down :)



On Monday, November 6, 2017 at 1:27:34 PM UTC-8, Moe Adham wrote:
>
> Something pretty catastrophic is going on here, all our services on 
> app-engine got a stop request and we can't bring them back up.
>
> On Monday, November 6, 2017 at 4:11:12 PM UTC-5, PK wrote:
>>
>> Yes it is here: https://issuetracker.google.com/issues/68946028
>>
>> I also see now a message in the Google Cloud Status Console about this.
>>
>> On Nov 6, 2017, at 1:07 PM, Wade Piotrowski  wrote:
>>
>> Yes, Posting shortly. Please file a support case for the most up-to-date 
>> information if you haven't already.
>>
>>
>> On Mon, Nov 6, 2017 at 12:56 PM PK  wrote:
>>
>>> This started returning False 15 minutes ago. My app is down because of 
>>> it.
>>>
>>> from google.appengine.api.capabilities import CapabilitySet
>>> print CapabilitySet('memcache', methods=['set']).is_enabled()
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Cloud Insiders" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-cloud-insiders+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-clo...@googlegroups.com.
>>> Visit this group at 
>>> https://groups.google.com/group/google-cloud-insiders.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-cloud-insiders/C170C4A6-5355-428B-B010-4507B5148F3C%40gae123.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e84c7183-2a92-4ca6-b96f-87d8e56cdc29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: All Managed VMs beta instances were turned down in the past hours.

2017-11-01 Thread Justin Yip
Yannick,

We didn't get any notification either.

Can you point out where in the google cloud console that I can find the 
information about the next maintenance window?

Thanks!

Justin



On Wednesday, November 1, 2017 at 9:25:08 AM UTC-7, Andrei Baragan wrote:
>
> Hello Yannick,
>
> Thanks for your response. We were not notified about this in the Cloud 
> Console.
>
> We are planning to migrate soon but until then can you share the 
> maintenance notification schedule so that we know when the next shutdown 
> is? 
>
> Thanks
>
> On Wednesday, November 1, 2017 at 4:20:25 PM UTC+2, Yannick (Cloud 
> Platform Support) wrote:
>>
>> Hello, this was a planned maintenance window about which affected project 
>> owners were informed of in the form of a MSA email.
>>
>>
>> As you have pointed out the Managed VMs beta environment (App Engine 
>> applications deployed with vm: true in their app.yaml) is deprecated and 
>> will be turned down on December 15, 2017. The App Engine flexible 
>> environment is replacing Managed VMs, which we are no longer updating.
>>
>> During this turndown process, we will keep maintenance windows open, 
>> starting in October and running through the end of the year. This was one 
>> such maintenance window.
>>
>>
>> Notifications leading up to each maintenance window will be in the Cloud 
>> Platform Console <https://console.cloud.google.com/>. For our beta 
>> customers, during this period, your projects will continue to be eligible 
>> for beta pricing in the env: flex environment (announced in November 
>> 2016). After Managed VMs beta is turned down, regular pricing 
>> <https://cloud.google.com/appengine/pricing> will apply.
>>
>>
>> Please visit the upgrade guide 
>> <https://cloud.google.com/appengine/docs/flexible/python/upgrading>, and 
>> learn more about how to move from the vm: true environment to the env: 
>> flex environment.
>>
>> As detailed in the upgrade guide, the flexible environment does not 
>> support deprecated runtimes such as python-compat and java-compat. If 
>> you cannot yet upgrade to a supported runtime on the flexible environment, 
>> you can request to continue using a deprecated "compat" runtime on 
>> env:flex 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>>  
>> t 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> em 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> po 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> ra 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> ri 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> ly 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>
>> . 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>The
>>  
>> compat runtimes will be available on this basis until flexible environment 
>> solutions for memcache and task queues are in public beta 
>> <https://docs.google.com/a/google.com/forms/d/1jD2Wa2fjvCjOSF8IOZdl38kxQHXhFl3wbRZG5jqARKQ/edit>.
>>  
>> After receiving a confirmation email, you must follow the steps in the 
>> upgrade 
>> guide <https://cloud.google.com/appengine/docs/flexible/python/upgrading> 
>> to run your application on the flexible environment before we decommission 
>> Managed VMs on December 15, 2017.
>>
>> The App Engine flexible environment is generally available and offers 
>> features such as multi-zonal deployments, modern network stack, multiple 
>> region availability, and more. For more details, see the documentation 
>> <https://cloud.google.com/appengine/docs/flexible/> and new features to 
>> consider when upgrading 
>> <https://cloud.google.com/appengine/docs/flexible/python/upgrading#new_features_to_consider_when_upgrading>
>> .
>>
>> If you have any questions or concerns specific to one of your projects, 
>> please use this form to contact Google Cloud Support 
>> <https://support.google.com/cloud/contact/gae_managed_vm_turndown>.
>>
>> On Tuesday, October 31, 2017 at 7:42:50 PM UTC-4, Jianliang Zhao wrote:
>>>
>>> Reported an issue: https://issuetracker.google.com/issue

[google-appengine] All Managed VMs beta instances were turned down in the past hours.

2017-10-31 Thread Justin Yip
Hi,

My company has multiple instances running on AppEngine. Since 2:38pm PST, 
we notices that *all* Managed VMs beta instances (*vm: true*) across 
multiple projects were turned down by 
"apphosting-managed-vm-turnd...@system.gserviceaccount.com". 
See screenshot 
<https://www.awesomescreenshot.com/image/2931594/c46d28ed83d64de74b8c6ac23e307fef>
.

On the other hand, instances with env: flex are not affected.

We are able to restart these instances, but we wonder what is happening. We 
are aware that (vm: true) will be deprecated later this year. But we are 
not aware that instances will be turned off today (Oct 31).

I am curious to see if anyone else has experienced the same issue.

Thanks!

Justin


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ae35aec8-70e6-44f9-8d38-cb2014f5e338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Flex VMs timing out on creation

2017-05-31 Thread 'Justin Beckwith' via Google App Engine
Adding a few folks from the App Engine team to take a look :)

On Wed, May 31, 2017 at 8:11 AM, Ben Rometsch <b...@solidstategroup.com>
wrote:

> Now taking over 30 minutes...
>
> Updating service [default]...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> .ERROR: Job failed: execution took longer than
> 30m0s seconds
>
> On Wednesday, 31 May 2017 15:10:24 UTC+1, Ben Rometsch wrote:
>>
>> I'm seeing this again, where a build of my app that was working fine is
>> now timing out after 20 minutes. Most of the time is spent waiting on
>> "Updating service [default]". What sort of debug logs do you need me to
>> provide? This is happening today, 31 May 14:10 UTC.
>>
>> On Friday, 28 April 2017 20:38:49 UTC+1, Nicholas (Google Cloud Support)
>> wrote:
>>>
>>> Based on this description, this seems to have been a transient issue.
>>> If you face this error again and believe it to be an issue with the
>>> platform, I would recommend filing a public issue
>>> <https://issuetracker.google.com/issues/new> including debug logs, time
>>> stamps, and details of what solutions you've tried.
>>>
>>> On Thursday, April 27, 2017 at 12:15:51 PM UTC-4, Ben Rometsch wrote:
>>>>
>>>> 10 minutes later attempting to deploy the same code worked correctly.
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/e6100c7f-4566-4ecf-9448-
> 91de888ab3cf%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/e6100c7f-4566-4ecf-9448-91de888ab3cf%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0b5wTDesMtgL23oXOGfci3160vTG4bgjL5PVcOoowLHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] GAE Flex Node.js health check 500 error

2017-05-26 Thread 'Justin Beckwith' via Google App Engine
Greetings!  Flex doesn't do anything special with those routes.  Can you
hit your /_ah/health endpoint from the browser?  Does that work?

On Fri, May 26, 2017 at 3:16 PM, Yao Li <y...@sazze.com> wrote:

>
> I have route for /_ah/health and it worked well (200 status) before, but
> it's 500 from yesterday.
>
> I tried cancel routing for /_ah/health, it should be 404, but it's still
> 500.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/4cbfe05e-d612-45e6-8358-
> 1ec2aa4b9ffb%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/4cbfe05e-d612-45e6-8358-1ec2aa4b9ffb%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q1czApWqQmmqCaXZ1-Y%2BYytaEOZv_oEu%2BjkPR6Lz8b95g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Connecting from app engine instance to compute engine instance directly

2017-05-26 Thread 'Justin Beckwith' via Google App Engine
No no no no :) We don't enable this directly in flex.  May I ask - why are
you trying to connect directly to a single instance?

On Fri, May 26, 2017 at 1:20 PM, AJ Ross <a...@lasersox.net> wrote:

> If you're willing to migrate to Flex, it appears as though you can do it:
>
> https://groups.google.com/d/msg/google-appengine/5RsoKIPWyTQ/pnxyI-anBAAJ
>
> On Wednesday, April 26, 2017 at 8:03:29 PM UTC-7, Bjorn Harvold wrote:
>>
>> Definitely a needed feature!
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/9dc63deb-1bf5-49af-a26f-
> 319a6c86dc80%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/9dc63deb-1bf5-49af-a26f-319a6c86dc80%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3Az49Ts7yOEp8qgkW0AXRcQn6A7YUd3LKzUcfbv2v%3D2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] App Engine dashboard (Google Cloud Platform console) missed a lot of data

2017-05-25 Thread 'Justin Beckwith' via Google App Engine
Weird.  Zachary, any ideas on how we could debug this?

On Thu, May 25, 2017 at 4:01 PM, Yao Li <y...@sazze.com> wrote:

> I have an app built on GAE Flex Custom env (GCloud PHP Ngnix docker image 
> based), but it doesn't show most of data even though I have a lot of traffic.
>
>
> I have attached screenshot about stats in Google Cloud Platform console App 
> Engine dashboard.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/1f91be58-853c-4b3e-9cda-
> 57f5c6f2f52c%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/1f91be58-853c-4b3e-9cda-57f5c6f2f52c%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q07ERJP0V7xe-bsZMpqMzO3yAEefFXBG_NhNeD5_DXY4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Flexible environment and GZip support

2017-05-24 Thread 'Justin Beckwith' via Google App Engine
Greetings Alex!
Which runtime are you using?  We don't have explicit gzip support, it's
something you need to enable in your application.

Thanks!


On Wed, May 24, 2017 at 1:38 AM, Alex Denisov <1101.deb...@gmail.com> wrote:

> Hi there,
>
> We are using flexible environment and currently facing a problem with GZip.
>
> Several months ago when flex environment was in beta, we were able to use
> gzipped content by sending proper Accept-Encoding and User-Agent headers.
> A couple of weeks ago we completely switched to the flexible environment
> ('env: flex' instead of 'vm: true'). And a few days ago I discovered that
> the content is not being gzipped anymore. Also, the documentation for
> the flexible environment does not mention it at all.
>
> The question is: how do I enable the gzip for content? What am I missing?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/d62a70b7-537e-4a53-9953-
> fd90e6a3c593%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/d62a70b7-537e-4a53-9953-fd90e6a3c593%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3Y4y5OAtycPiUkHnvnF-Ha-4wyvxzkO6EigBkYzjmz2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] GAE Endpoints: Mismatch between built and expected exploded directory on gradle deploy

2017-05-15 Thread 'Justin Beckwith' via Google App Engine
Greetings!  I've added a few folks from our Java team who should be able to
help :)

On Sun, May 14, 2017 at 12:50 AM, Jonas Hartmann <
jonas.jh.hartm...@gmail.com> wrote:

> Hey,
>
> I cannot deploy my app engine endpoints java project via app engine gradle
> script in Android Studio anymore:
>
>> Unable to find the webapp directory ../build/exploded-app
>
>
> If I look at the directory tree within my project I can see the exploded
> directory  "../build/exploded-backend" based on the module name "backend".
> I am wondering how this mismatch happened. Do you guys know how or where I
> can change the exploded directory name?
>
> Thanks for the help!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/afc37f30-afdf-4bb4-a540-
> 7fae9e2fa909%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/afc37f30-afdf-4bb4-a540-7fae9e2fa909%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0by3UgojSPnj8sx_jwqwoy3Z_OWkmV578i051C-bxJtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Unable to deploy nodejs application on appengine flexible environment

2017-05-15 Thread 'Justin Beckwith' via Google App Engine
We did see this though, and we're taking a look.  I would suggest opening
up a big at bit.ly/appengine-bug so you can keep track of what we find
though :)

On Mon, May 15, 2017 at 8:05 AM, 'Jordan (Cloud Platform Support)' via
Google App Engine <google-appengine@googlegroups.com> wrote:

> Google Groups is meant for general product discussions and not for
> technical support.
>
> It is recommended to file an Issue Tracker report
> <https://cloud.google.com/support/docs/issue-trackers>for all feature
> requests and issues. For technical support, you may ask questions on Stack
> Exchange <https://cloud.google.com/support/docs/stackexchange> using one
> of the supported Google Cloud tags, as our community support team is active
> there.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/4875fb2c-6a28-488e-8017-
> ef3eb62a38ca%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/4875fb2c-6a28-488e-8017-ef3eb62a38ca%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2uFh2qxVjDFZo4uBrbmbOANqKk6%3DqPP09nCMX2om3L-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Flex environment slow to turn off instances, is this normal?

2017-05-12 Thread 'Justin Beckwith' via Google App Engine
If you're running `gcloud app deploy`, by default we'll deploy the new
version, migrate traffic to it, and shut down the previous version.  If
they get started again via `gcloud app version start`, or if there's some
kind of issue where the shutdown of the previous version fails, it's
possible to end up in this state.

On Fri, May 12, 2017 at 8:21 AM, Rob Curtis <robertbcur...@gmail.com> wrote:

> Hi Justin,
>
> Perhaps it was other versions. I ran that command now and I see 3 version
> that have stopped and 1 is currently serving.
> In future, should I review that list and shutdown any instances that
> aren't part of current version? How often does that happen (that other
> versions stay alive?)
>
> Thanks
> Rob
>
> On Fri, May 12, 2017 at 4:37 PM, 'Justin Beckwith' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> Greetings! I would try making sure every instance belongs to the current
>> version you're serving.  What does the output of `gcloud app versions list`
>> look like?  Do you have multiple versions serving?
>>
>> On Thu, May 11, 2017 at 9:07 PM, Rob Curtis <robertbcur...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> We've been experiencing very high costs on one of our google appengine
>>> flexible environment apps.
>>> To try reduce the costs, I updated the app.yaml to the following:
>>>
>>> runtime: custom
>>>
>>>
>>> env: flex
>>> entrypoint: gunicorn -b :$PORT main:app
>>> resources:
>>>   cpu: 1
>>>   memory_gb: 1.0
>>>
>>> automatic_scaling:
>>>   min_num_instances: 1
>>>   cool_down_period_sec: 60
>>>
>>>
>>>
>>> I realise that the min number of instances is normally 2, and cool down
>>> period is normally 120seconds, but I was trying to establish whether this
>>> would help.
>>> So I ran the application a few times, and 15 mins later I still have 4
>>> instances running (with 0 traffic). Is this expected behaviour and does
>>> having these idle instances drive up cost?
>>>
>>>
>>> Thanks
>>> Rob
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-appengine@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-appengine/87524c06-394b-4f9a-af39-278dec6d44e4%40
>>> googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/87524c06-394b-4f9a-af39-278dec6d44e4%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Justin Beckwith | Google Cloud Platform | @justinbeckwith
>> <http://twitter.com/JustinBeckwith> | http://jbeckwith.com
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/google-appengine/P64MYySfoDc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/google-appengine/CADd%3D1Q0dJ5r%3DS2m0vxHtMys2B9Ss-WvpY1
>> HkUkQa-v1_9-%2B%3DRQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0dJ5r%3DS2m0vxHtMys2B9Ss-WvpY1HkUkQa-v1_9-%2B%3DRQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on th

Re: [google-appengine] Flex environment slow to turn off instances, is this normal?

2017-05-12 Thread 'Justin Beckwith' via Google App Engine
Greetings! I would try making sure every instance belongs to the current
version you're serving.  What does the output of `gcloud app versions list`
look like?  Do you have multiple versions serving?

On Thu, May 11, 2017 at 9:07 PM, Rob Curtis <robertbcur...@gmail.com> wrote:

> Hi,
>
> We've been experiencing very high costs on one of our google appengine
> flexible environment apps.
> To try reduce the costs, I updated the app.yaml to the following:
>
> runtime: custom
>
>
> env: flex
> entrypoint: gunicorn -b :$PORT main:app
> resources:
>   cpu: 1
>   memory_gb: 1.0
>
> automatic_scaling:
>   min_num_instances: 1
>   cool_down_period_sec: 60
>
>
>
> I realise that the min number of instances is normally 2, and cool down
> period is normally 120seconds, but I was trying to establish whether this
> would help.
> So I ran the application a few times, and 15 mins later I still have 4
> instances running (with 0 traffic). Is this expected behaviour and does
> having these idle instances drive up cost?
>
>
> Thanks
> Rob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/87524c06-394b-4f9a-af39-
> 278dec6d44e4%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/87524c06-394b-4f9a-af39-278dec6d44e4%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0dJ5r%3DS2m0vxHtMys2B9Ss-WvpY1HkUkQa-v1_9-%2B%3DRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] app.yaml resources suggestions for static hosting

2017-05-11 Thread 'Justin Beckwith' via Google App Engine
Are you *only* doing static hosting?  Or is there a dynamic aspect as well?

On Thu, May 11, 2017 at 2:58 PM, <ja...@thebabyboxco.com> wrote:

> I'm using nodejs flex environment and express.static middleware for
> hosting a static site, a mix of html, javascript, css and images that has
> about 30 rps
>
> It seems the defaults on flex environment isn't powerful enough to serve
> static files in under 100ms. I've fixed this problem by increasing the cpu
> count and ram of the base instance to:
>
> resources:
> cpu: 2
> memory_gb: 7.6
> disk_size_gb: 10
>
> and have a minimum instance count of
>
> automatic_scaling:
> min_num_instances: 4
> max_num_instances: 20
>
> can anyone recommend the proper sizing for resource instances and proper
> automatic scaling for this workload?
>
> Thanks!
> Jason
>
> NOTICE
> *This e-mail message is confidential, is intended only for the named
> recipient(s) above, and may contain information that is privileged,
> attorney work product or exempt from disclosure under applicable law.  If
> you have received this message in error, or are not a named recipient(s),
> you are hereby notified that any dissemination, distribution or copying of
> this e-mail is strictly prohibited.  If you have received this message in
> error, please immediately notify the sender by return e-mail and delete
> this e-mail message from your computer.  Thank you.*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/ff2bcca2-5b3b-487c-8119-
> 2063497557ef%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/ff2bcca2-5b3b-487c-8119-2063497557ef%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2zYA1PcmOZqAiY%3Dn5xZ6fXOJSmcXAUhMUZWQt4O8n9rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Is logging to console fully supported for app engine flexible?

2017-05-10 Thread 'Justin Beckwith' via Google App Engine
You should be able to use the logging library in google-cloud-java
<https://github.com/GoogleCloudPlatform/google-cloud-java>, and get
structured output.  I've added a few folks from the Java team who can share
more!

On Wed, May 10, 2017 at 5:46 PM, E EE <voice.e...@gmail.com> wrote:

> Docs are for standard, not always clear which is which. So Flexible has no
> logger unless I implement one using the API of whichever log framework I
> choose (other than stdout).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/a5150666-a9cb-4747-adab-
> e4b59defe49e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/a5150666-a9cb-4747-adab-e4b59defe49e%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q1rB%3DS7bOWOH0u9Q%2Bq7hC-MySUMdU_vjRWSPaXL0Upekg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Golang Flexible Environment HTTPS only for custom domain

2017-05-04 Thread 'Justin Beckwith' via Google App Engine
Apologies for not being more specific.  You don't need to listen on 443 or
any of that stuff - you just need to look for requests that have http in
the x-forwarded-proto header, and then redirect them to an https url.

For example - here's how this works for Node.js.
https://github.com/JustinBeckwith/yes-https

Chris - is there a similar lib for Go out there?

On Wed, May 3, 2017 at 8:38 PM, <sitmuhammed...@gmail.com> wrote:

> Well, that's indeed possible but currently when I use *http.ListenAndServeTLS
> *to serve with https, after the deployment it raises `server encountered
> a temporary error and could not complete your request.`  error on browser
> and logs say statusDetails: "failed_to_pick_backend".   When I use
> *http.ListenAndServe, *it does not give any error when going into the
> website with http or https which is the problem that I had in the first
> place, http does not directs to https. I don't really know what can I do
> other than try these. Any ideas?
>
> On Wednesday, May 3, 2017 at 11:07:48 AM UTC-5, Justin Beckwith wrote:
>>
>> Greetings!
>> Unfortunately, Flex does not respect the handlers section in your
>> app.yaml.  If you want to enable automatic https redirection today, you
>> need to handle this inside of your application code.
>>
>> There may be libs that do this for you (Chris?) like there are in other
>> languages.
>>
>> We know this isn't ideal, and we're actively trying to figure out how to
>> make it easier.
>>
>> Thanks!
>>
>> On Wed, May 3, 2017 at 8:24 AM, <sitmuha...@gmail.com> wrote:
>>
>>> I have deployed my application without hassle just by running gcloud
>>> app deploy command on GCP. Which takes the flexible environment as
>>> default. Yesterday I made the necessary customizations to have a custom
>>> domain for this app with ssl. Currently it works when I go to any of the
>>> following, http://example.com, https://example.com but I also want to
>>> force people to use https. Currently the http requests work as they are, I
>>> want them to be directed to https. I want to direct any user to
>>> https://example.com when they try to go to the website with http or
>>> without anything at all like example.com. How can this be achieved?
>>>
>>> Here's my app.yaml:
>>>
>>>
>>> api_version: go1
>>> env: flex
>>> runtime: go
>>>
>>>
>>> I already tried to use handlers and secure attributes but it seems they
>>> are not valid for flexible environment.
>>>
>>> Thanks.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-appengine/420b5131-163d-4f00-8f55-5780231dfcb0%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/420b5131-163d-4f00-8f55-5780231dfcb0%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Justin Beckwith | Google Cloud Platform | @justinbeckwith
>> <http://twitter.com/JustinBeckwith> | http://jbeckwith.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/d76d1134-87ee-4222-ab37-
> 414e90abab97%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/d76d1134-87ee-4222-ab37-414e90abab97%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3nJMXDJG9ieLZ99Ox7s-mYSjLXS%2BQxZ9dx27Umqnq%3DUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Golang Flexible Environment HTTPS only for custom domain

2017-05-03 Thread 'Justin Beckwith' via Google App Engine
Greetings!
Unfortunately, Flex does not respect the handlers section in your
app.yaml.  If you want to enable automatic https redirection today, you
need to handle this inside of your application code.

There may be libs that do this for you (Chris?) like there are in other
languages.

We know this isn't ideal, and we're actively trying to figure out how to
make it easier.

Thanks!

On Wed, May 3, 2017 at 8:24 AM, <sitmuhammed...@gmail.com> wrote:

> I have deployed my application without hassle just by running gcloud app
> deploy command on GCP. Which takes the flexible environment as default.
> Yesterday I made the necessary customizations to have a custom domain for
> this app with ssl. Currently it works when I go to any of the following,
> http://example.com, https://example.com but I also want to force people
> to use https. Currently the http requests work as they are, I want them to
> be directed to https. I want to direct any user to https://example.com when
> they try to go to the website with http or without anything at all like
> example.com. How can this be achieved?
>
> Here's my app.yaml:
>
>
> api_version: go1
> env: flex
> runtime: go
>
>
> I already tried to use handlers and secure attributes but it seems they
> are not valid for flexible environment.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/420b5131-163d-4f00-8f55-
> 5780231dfcb0%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/420b5131-163d-4f00-8f55-5780231dfcb0%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q1MuRTfE33inSi%2BJABpL8UX9H28tZ%2BVRtZ17K83wQ6AKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Codeigniter session using database not working in Google App Engine Flexible Environment

2017-05-03 Thread 'Justin Beckwith' via Google App Engine
+ a few folks

On Wed, May 3, 2017 at 2:51 AM, Dhandapani Sattanathan <
dhandapani.sattanat...@ssomens.com> wrote:

> I m migration my CRM application developed in CodeIgniter Framework from
> GAE SE to Google App Engine flexible environment.
>
> UserService not available in GAE FE.So I used Integrating Google Sign-In
> into your web app
> <https://developers.google.com/identity/sign-in/web/sign-in>.
>
> I need session so I used the below.I am using CI_VERSION', '3.0.0
>
>
> application/config/config.php
> $config['sess_driver'] = 'database';
> $config['sess_cookie_name'] = 'ci_session';
> $config['sess_expiration'] = 7200;
> $config['sess_save_path'] = 'ci_sessions';
> $config['sess_match_ip'] = TRUE;
> $config['sess_time_to_update'] = 300;
> $config['sess_regenerate_destroy'] = FALSE;
>
> Using the below query I created the ci_sessions table in second generation
> cloud SQL.
>
>
> CREATE TABLE IF NOT EXISTS `ci_sessions` (
> `id` varchar(40) NOT NULL,
> `ip_address` varchar(45) NOT NULL,
> `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
> `data` blob NOT NULL,
> PRIMARY KEY (id),
> KEY `ci_sessions_timestamp` (`timestamp`)
> );
>
>
> I can get session userstamp in ctrl_Index.php
>
>
> application/controllers/Ctrl_Index.php
>  defined('BASEPATH') OR exit('No direct script access allowed');
>
> class Ctrl_Index extends CI_Controller {
>
> public function index()
> {
> $userstamp=base64_decode($_GET['UserStamp']);
> $this->session->set_userdata('UserStamp', $userstamp);
> echo $this->session->userdata('UserStamp'); // here session id came.
> $this->load->view('Vw_Menu'); // Redirect to vw_menu page.
>
> }
> }
>
> ?>
>
>
> application/views/Vw_Menu.php
>  ?>
> 
> 
> https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/</a>
> jquery.min.js">
> 
> $(document).ready(function(){
> var CONFIG_ENTRY_controller_url="<?php echo base_url(); ?>" +
> '/index.php/Ctrl_Menu/' ;
> $.ajax({
> type: "POST",
> url':CONFIG_ENTRY_controller_url+"getSessionUserstamp",
> success: function(data){
> $(".preloader").hide();
> var userstamp=(data);
> alert(userstamp)
>
> });
>
> });
> 
> CI SESSION IN GAE FE
> 
> 
> 
> 
>
> 
> 
>
>
> From Ctrl_index.php redirect to vw_menu.php session got empty.Also
> ci_sessions tables ip_address saved as empty.
>
>
> My sample script can see here [1]
> <https://docs.google.com/spreadsheets/d/1hZ2ZUlz3LSm7sxJP6LCRtKBVHkgzQ6J2Nj3xwvsipXc/edit#gid=0>,
> Download Codeigniter here [2]
> <https://github.com/bcit-ci/CodeIgniter/releases/tag/3.0.0> replace my
> sample script.
>
>
> Will ci-sessions using database work in GAE FE?.Is there any other
> alternative to using ci-session in GAE FE?
>
>
> Maybe I missed configuring in GAE FE to work ci_session?
>
>
> Please help me.
>
>
> Thanks in advance
>
>
> SN
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/5220d656-7264-4d89-9841-
> 075f6e1576fc%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/5220d656-7264-4d89-9841-075f6e1576fc%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q34EMfbzuePGw2n-csY2X_QTT2oNvTTgGasL4_H_ur5-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Is the gcloud command suppose to be runnable on a managed VM?

2017-05-02 Thread 'Justin Beckwith' via Google App Engine
How are you trying to authenticate?  Are you using a service account to log
in, or trying to rely on the App Engine service account credentials?

On Mon, May 1, 2017 at 7:20 PM, Ben Wu <benwu9...@gmail.com> wrote:

> All gcloud commands fail with "Insufficient Permission" errors when I run
> them in a managed VM.  It seems since that gcloud command manages VM, it
> shouldn't be runnable from within the VM, but yet the command is installed
> on the VM, so I guess it's suppose to be runnable.  I can't find any
> document saying gcloud is not runnable on managed VM.  Thank you for
> shedding light on this.
>
> For example:
>
> /home/sharedFolder$ gcloud compute instances list --verbosity=debug
> DEBUG: Running gcloud.compute.instances.list with
> Namespace(_deepest_parser=ArgumentParser(prog='gcloud.compute.ins
> tances.list', usage=None, description='List Google Compute Engine virtual
> machine instances.', version=None, format
> ter_class=, conflict_handler='error',
> add_help=False), _specified_args={'verbosity'
> : '--verbosity'}, account=None, authority_selector=None,
> authorization_token_file=None, calliope_command= udsdk.calliope.backend.Command object at 0x7f00498ae250>,
> command_path=['gcloud', 'compute', 'instances', 'list'],
> configuration=None, credential_file_override=None, document=None,
> filter=None, flatten=None, format=None, h=None, h
> elp=None, http_timeout=None, limit=None, log_http=None, names=[],
> page_size=None, project=None, quiet=None, regexp=
> None, sort_by=None, trace_email=None, trace_log=None, trace_token=None,
> uri=False, user_output_enabled=None, verbos
> ity='debug', version=None, zones=[]).
> INFO: Display format "
>   table(
> name,
> zone.basename(),
> machineType.machine_type().basename(),
> scheduling.preemptible.yesno(yes=true, no=''),
> networkInterfaces[].networkIP.notnull().list():label=
> INTERNAL_IP,
> networkInterfaces[].accessConfigs[0].natIP.notnull().list()
>  :label=EXTERNAL_IP,
> status
>   )
> ".
> DEBUG: (gcloud.compute.instances.list) Some requests did not succeed:
>  - Insufficient Permission
> Traceback (most recent call last):
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py",
> line 737, in Execute
> resources = args.calliope_command.Run(cli=self, args=args)
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py",
> line 760, in Run
> display_info=self.ai.display_info).Display()
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/display.py",
> line 427, in Display
> self._printer.Print(self._resources)
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/
> resource/resource_printer_base.py", line 251, in Print
> for resource in resources:
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/util/peek_iterable.py",
> line 198, in next
> item = self._NextItem()
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/util/peek_iterable.py",
> line 174, in _NextItem
> return self._iterable.next()
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/base_classes.py",
> line 305, in Run
> utils.RaiseToolException(errors)
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/utils.py",
> line 116, in RaiseToolException
> RaiseException(problems, calliope_exceptions.ToolException,
> error_message)
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/utils.py",
> line 128, in RaiseException
> errors))
> ToolException: Some requests did not succeed:
>  - Insufficient Permission
> ERROR: (gcloud.compute.instances.list) Some requests did not succeed:
>  - Insufficient Permission
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/e61568ee-2f1a-4838-8fab-
> 6a46a1d3e70b%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/e61568ee-2f1a-4838-8fab-6a46a1d3e70b%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google C

Re: [google-appengine] Re: Using Cloud SQL database with Laravel

2017-04-28 Thread 'Justin Beckwith' via Google App Engine
+ a few PHP folks

On Fri, Apr 28, 2017 at 11:14 AM, Adeel Ahmad <adeelahmadadl1...@gmail.com>
wrote:

> Hello Justin,
>
> Thank you for the reply.
>
> I have updated my app.yaml file according to the guideline you linked.
>
> runtime: php
> env: flex
>
> runtime_config:
>   document_root: public
>
> # required on some platforms so ".env" is not skipped
> skip_files: false
>
> env_variables:
>   # The values here will override those in ".env". This is useful for
>   # production-specific configuration. However, feel free to set these
>   # values in ".env" instead if you prefer.
>   APP_LOG: errorlog
>   STORAGE_DIR: /tmp
>   MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:z
> oho-portal;dbname=zoho_portal
>   MYSQL_USER: adeel
>   MYSQL_PASSWORD: 118097
>
> beta_settings:
> cloud_sql_instances: zoho-portal-159018:us-central1:zoho-portal
>
> However, I'm still getting the same error. Could there be anything else
> that I'm missing out?
>
>
> On Friday, April 28, 2017 at 6:13:59 PM UTC+5, Adeel Ahmad wrote:
>>
>> I have set up my Laravel 5.3 project on GAE using gcloud. My app.yaml
>> file looks like this:
>>
>> runtime: php
>> env: flex
>>
>> runtime_config:
>>   document_root: public
>>
>> # required on some platforms so ".env" is not skipped
>> skip_files: false
>>
>> env_variables:
>>   # The values here will override those in ".env". This is useful for
>>   # production-specific configuration. However, feel free to set these
>>   # values in ".env" instead if you prefer.
>>   APP_LOG: errorlog
>>   STORAGE_DIR: /tmp
>>   MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:z
>> oho-portal;dbname=zoho_portal
>>   MYSQL_USER: USER
>>   MYSQL_PASSWORD: PASS
>>
>> However, when I query my database using eloquent I receive this error:
>>
>> SQLSTATE[HY000] [2002] Connection refused
>>
>>
>> I followed this guideline: https://cloud.google.com/sql/d
>> ocs/mysql/connect-app-engine?hl=en_US&_ga=1.259065737.206108
>> 4871.1491404918
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/fcef0e94-16d5-4512-b627-
> 7108fbd2a093%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/fcef0e94-16d5-4512-b627-7108fbd2a093%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3Puss4juvp%2BMK9FYQtHATgdq4YfJnZANBLO%2BnGBXQtug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Using Cloud SQL database with Laravel

2017-04-28 Thread 'Justin Beckwith' via Google App Engine
Greetings!  You probably should be following this guide:
https://cloud.google.com/appengine/docs/flexible/php/using-cloud-sql

Specifically, looks like you're missing this piece:

# Use the connection name obtained when configuring your Cloud SQL instance.
beta_settings:
cloud_sql_instances: "CONNECTION_NAME"


Good luck!

On Thu, Apr 27, 2017 at 9:41 PM, Adeel Ahmad <adeelahmadadl1...@gmail.com>
wrote:

> I have set up my Laravel 5.3 project on GAE using gcloud. My app.yaml file
> looks like this:
>
> runtime: php
> env: flex
>
> runtime_config:
>   document_root: public
>
> # required on some platforms so ".env" is not skipped
> skip_files: false
>
> env_variables:
>   # The values here will override those in ".env". This is useful for
>   # production-specific configuration. However, feel free to set these
>   # values in ".env" instead if you prefer.
>   APP_LOG: errorlog
>   STORAGE_DIR: /tmp
>   MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:z
> oho-portal;dbname=zoho_portal
>   MYSQL_USER: USER
>   MYSQL_PASSWORD: PASS
>
> However, when I query my database using eloquent I receive this error:
>
> SQLSTATE[HY000] [2002] Connection refused
>
>
> I followed this guideline: https://cloud.google.com/sql/
> docs/mysql/connect-app-engine?hl=en_US&_ga=1.259065737.
> 2061084871.1491404918
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/3b1065c1-e6e5-4247-9db2-
> d5f3cf2e77a9%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/3b1065c1-e6e5-4247-9db2-d5f3cf2e77a9%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2nNtCBv08L62CYG2UBxpOP-3YfuRVmUXZ3uwp-H%3DWF6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: gcloud vs. goapp for GO appengine

2017-04-25 Thread 'Justin Beckwith' via Google App Engine
Great feedback!  To a few points:

I've been very happy with the java tool chain where it integrate perfectly
> into existing JVM build tools via plugins for mvn and gradle. I'm not sure
> what gcloud tool brings to the table.


I should have mentioned this - those aren't going anywhere.  All of the
Maven/Gradle/IntelliJ/Eclipse/VS stuff will continue to be distributed on
it's own.

I prefer the goapp approach


Interesting.  Is this just about the single tool philosophy, or is there a
specific thing goapp does better than gcloud?

Thanks!



On Tue, Apr 25, 2017 at 10:41 AM, Wilson MacGyver <wmacgy...@gmail.com>
wrote:

> I'm concerned about the one tool fits all approach. It'd be one thing of
> the "single tool" gcloud is just a thin wrapper to automatically download
> and configure each component as needed. What I'm afraid of is unnecessary
> dependency. Ie, the latest go GAE sdk is being hold up by the latest
> gccloud release.
>
> There are some of us that only use GAE, and has no interest using the rest
> GC service such as GKE, GCE, etc. I've been very happy with the java tool
> chain where it integrate perfectly into existing JVM build tools via
> plugins for mvn and gradle. I'm not sure what gcloud tool brings to the
> table.
>
> If there are very few of us that only uses GAE. or that google doesn't
> really want us to only use GAE, I understand. But forcing me to use gcloud
> instead of say a gradle/mvn plugin feels like just more moving parts to me.
>
> with go, I'm a bit more desperate. I prefer the goapp approach, but given
> that go version on GAE is so behind that if gocloud is the 'only way' to
> make 1.8 happen faster, then I'll learn to deal with it.
>
>
> for me, up till now Google cloud's strength has been a much more unix like
> experience. You use gsutil if you want to deal with cloud storage, goapp
> for GAE-go, etc etc. I'm a bit surprised to see google moving toward the
> aws where you use aws-cli for everything.
>
> Just my 2 cents
>
>
> On Tue, Apr 25, 2017 at 12:45 PM, 'Justin Beckwith' via Google App Engine
> <google-appengine@googlegroups.com> wrote:
>
>> Hey folks,
>> Apologies for the confusion.  Here's what's happening.
>>
>> *We are trying to move towards a single Cloud SDK install.*  At the same
>> time, we're trying not to break the existing App Engine SDK downloads.  We
>> are headed towards a future (not far away) where everything gets wrapped up
>> into https://cloud.google.com/sdk/.  Instead of having separate SDKs for
>> Go/Python/Java/PHP <https://goto.google.com/Python/Java/PHP>, we want
>> one toolchain.
>>
>> *We are moving towards tooling consistency.*  The goal is to make
>> `gcloud app deploy` work for each language supported by App Engine.  With
>> the exception of Java, we're mostly there.  You should be able to use
>> `gcloud app deploy` and `dev_appserver.py .` instead of `goapp update ` or
>> `goapp serve`.
>>
>> I'm interested in getting some feedback on this approach. Do you feel
>> like `gcloud app deploy` and `dev_appserver.py .` are enough?  Or are there
>> other reasons you want to keep using `goapp`?
>>
>> Is this just a matter of unclear documentation?
>>
>> Thanks!
>>
>>
>> On Tue, Apr 25, 2017 at 1:21 AM, Michael Amie <michael.a...@gmail.com>
>> wrote:
>>
>>> Tim,
>>>
>>> You are not insane. I have noticed this as well w/ respect to the
>>> missing executable bit set on at least one of the goapps (and if I recall
>>> correctly, when I looked into this a month or so ago), several other
>>> scripts / binaries weren't set to executable as well, post-installation.
>>>
>>> As you mention, I got the impression the stand-along "go SDK" was being
>>> phased out / deprecated and this was getting rolled into the cloud SDK as a
>>> module / component for it.
>>>
>>> It seems like they didn't test the new installer or something before
>>> rolling it out, and based on the combo of 1. The broken install and 2. The
>>> doublespeak of the documentation, I'd wager there is some sort of
>>> miscommunication or something between teams / departments going on right
>>> now about what's going on during this transition.
>>>
>>> I'd love to see Google actually get all their documentation updated /
>>> synced with the One True New Way and it would be good if they tried running
>>> this new installer on a few Mac OS versions to see if it actually works.
>>>
>>> Thanks,
>>> Michael
>>>
>>> On Saturday, April 8, 2017 at 8:57:29 AM UTC-7, Tim

Re: [google-appengine] Re: gcloud vs. goapp for GO appengine

2017-04-25 Thread 'Justin Beckwith' via Google App Engine
oups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/abb82812-08a4-4bec-af3c-
> 4bf7bac25e58%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/abb82812-08a4-4bec-af3c-4bf7bac25e58%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q02VhgPRjUxAa_doUhL4qxeRxwF12Q1sKZffOAt5g4DhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Temporary storage of data bigger than 1 Mega

2017-04-24 Thread 'Justin Beckwith' via Google App Engine
While I'm sure there are other options you should explore first, one idea
is to look at using App Engine Flexible.  The instances in flex tend to
last longer [o(days)], and the data could be cached on the instance.

Depending on the APIs and services you're using, a change like this could
be pretty extreme, so you may want to read up on the differences here:
https://cloud.google.com/appengine/docs/the-appengine-environments



On Mon, Apr 24, 2017 at 8:25 AM, Shachar Grembek <shachar.grem...@gmail.com>
wrote:

> Hi,
>
> I have a resource file that its size is 1.6 Mega (A Machine learning
> model). The data is required and needs to be loaded for every API call I
> receive, but loading the file to memory takes around 8 seconds. So I would
> like to find a way to have the data available in a more efficient manner. I
> considered to store the data in Memcache, but Memcache objects are limited
> to 1M. I would really appreciate, if someone can help me find a way to
> store it in a manner so it can be loaded it in 1 second or less.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/eae5b849-f1db-43f5-af88-
> 424a6b04890b%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/eae5b849-f1db-43f5-af88-424a6b04890b%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3m_DhRL_zH3GB1xZOnTi_TPW37NRnEgyW770tR9-OaCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] App Engine Flex overwriting public folder permissions on deploy

2017-04-24 Thread 'Justin Beckwith' via Google App Engine
Greetings!  Adding a few folks from the PHP team who will be able to help :)

On Sun, Apr 23, 2017 at 7:19 PM, Donatas Petrauskas <pexus@gmail.com>
wrote:

> I'm deploying a PHP app on the App Engine Flexible environment. I have a
> command in my post-deploy-cmd scripts in my composer.json file to set
> permissions for the public/app folder (chmod -R 755 public\/app).
> However, when I deploy my app, the entire public folder's permissions get
> overwritten with 550.
>
> I can see in the logs that the following command runs right after my
> deployment commands  + chmod -R 550 /app/public
>
> How can I run my command after that or stop that command from running at
> all? Any workarounds?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/c74a167c-7aad-4971-9278-
> 42d79eaaa4b4%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/c74a167c-7aad-4971-9278-42d79eaaa4b4%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q11ZD9Uhy-b31KdmfmYMT-2VX65KgX5dqnS4P3-aA1_uQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Deployment fails

2017-04-17 Thread 'Justin Beckwith' via Google App Engine
Greetings!  Would you mind filing a bug with these details over at
bit.ly/appengine-bug?

On Sun, Apr 16, 2017 at 3:27 AM, Roy Lee <royyh...@gmail.com> wrote:

> Hello,
>
> I'm trying to deploy to App Engine Flex env (NodeJS), but I'm constantly
> getting the following error.
>
> *ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()*
>
> I attached the --verbosity debug output.txt file, and the screenshot of
> activity update.
>
> Please help!
>
> Thank you,
> Roy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/dd53d3f9-dc0c-4ac9-8b95-
> e5aa2105c844%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/dd53d3f9-dc0c-4ac9-8b95-e5aa2105c844%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0P%2B%2BFxY-Km8NQNyLQFOVv4yGCb_j5y5NqGQWMTTA83cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Shared memcache not working on Nodejs

2017-04-17 Thread 'Justin Beckwith' via Google App Engine
Yes, it should work great from custom runtimes.

On Mon, Apr 17, 2017 at 1:07 PM, Geoffrey Arnold <geoffrey.arn...@gmail.com>
wrote:

> Hey Justin, thanks for the pointer! Very exciting.
>
> Is the memcache Alpha available for custom runtimes in the flexible
> environment?
>
> On Mon, Apr 17, 2017 at 12:30 PM, 'Justin Beckwith' via Google App Engine
> <google-appengine@googlegroups.com> wrote:
>
>> Greetings folks,
>> Apologies for the confusion here.  The memcache support for App Engine
>> flexible is currently in alpha:
>> https://cloud.google.com/appengine/docs/flexible/nodejs/
>> upgrading#memcache_service
>>
>> You can fill out the form to get access, or take a look at the memcache
>> support in redislabs:
>> https://cloud.google.com/appengine/docs/flexible/nodejs/
>> using-redislabs-memcache
>>
>> Let us know if you have any questions!
>>
>>
>>
>> On Mon, Apr 17, 2017 at 1:56 AM, Srikanth Kakani <k...@photon.life> wrote:
>>
>>> Hi,
>>>
>>> I am trying out Shared memcache for my project (low volume right now). I
>>> am not able to connect to it with the following error:
>>>
>>> Error when trying to fetch from memcache Error: socket timed out waiting
>>> on response. at timeoutHandler 
>>> (/app/node_modules/memjs/lib/memjs/server.js:206:18)
>>> at Socket. (/app/node_modules/memjs/lib/memjs/server.js:225:9)
>>> at Socket.g (events.js:292:16) at emitNone (events.js:91:20) at Socket.emit
>>> (events.js:185:7) at Socket._onTimeout (net.js:342:8) at ontimeout
>>> (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout
>>> (timers.js:207:5
>>>
>>>  MemJS: Server  failed after (2) retries with error -
>>> socket timed out waiting on response.
>>>
>>>
>>> Code I am connecting to memcached is from the documentation:
>>> https://cloud.google.com/appengine/docs/flexi
>>> ble/nodejs/using-redislabs-memcache
>>>
>>>
>>> // Environment variables are defined in app.yaml.
>>> let MEMCACHE_URL = process.env.MEMCACHE_URL || '127.0.0.1:11211';
>>>
>>> if (process.env.USE_GAE_MEMCACHE) {
>>>   MEMCACHE_URL = 
>>> `${process.env.GAE_MEMCACHE_HOST}:${process.env.GAE_MEMCACHE_PORT}`;
>>> }
>>>
>>> const mc = memjs.Client.create(MEMCACHE_URL);
>>>
>>>
>>> The memcache url I get is memcache:11211
>>>
>>> Any help would be appreciated.
>>>
>>> Thanks and Regards,
>>> Srikanth
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-appengine@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-appengine/03ed9267-a924-4ebe-8ff9-0682609da341%40
>>> googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/03ed9267-a924-4ebe-8ff9-0682609da341%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Justin Beckwith | Google Cloud Platform | @justinbeckwith
>> <http://twitter.com/JustinBeckwith> | http://jbeckwith.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/google-appengine/CADd%3D1Q2233SC6hL4zavtitcLDGAFLboc2OOW
>> hjZXDFF7XJd8KA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2233SC6hL4zavtitcLDGAFLboc2OOWhjZXDFF7XJd8KA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine"

Re: [google-appengine] App Engine Flexible Runtime PHP (5.6) deployed failure: Failed to execute git clone --no-checkout 'gitAtgitlab.com:xxxx/framework-php.git'

2017-04-17 Thread 'Justin Beckwith' via Google App Engine
Apologies for the trouble.  Adding a few folks from the PHP team.

On Mon, Apr 17, 2017 at 11:00 AM, Yao Li <y...@sazze.com> wrote:

> App Engine Flexible Runtime PHP (5.6) deployed failure:
>
> Failed to execute git clone --no-checkout 'gitAtgitlab.com:/
> framework-php.git'
> Cloning into '/app/vendor//framework'...
> error: cannot run ssh: No such file or directory
> fatal: unable to fork
>
> The command '/bin/sh -c /composer.sh' returned a non-zero code: 1
> ERROR
> ERROR: build step "gcr.io/cloud-builders/docker@sha256:83b9c7..e6fa2"
> failed: exit status 1
>
> It works to pull the above private repo in gitlab at app engine standard
> environment, but flex environment.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/462aad89-62b9-431a-8450-
> debfa056da8d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/462aad89-62b9-431a-8450-debfa056da8d%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2M7sa9YZDV5B8koyt-90PSaAOuVMOo4FV9WT3mht-tDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Shared memcache not working on Nodejs

2017-04-17 Thread 'Justin Beckwith' via Google App Engine
Greetings folks,
Apologies for the confusion here.  The memcache support for App Engine
flexible is currently in alpha:
https://cloud.google.com/appengine/docs/flexible/nodejs/upgrading#memcache_service

You can fill out the form to get access, or take a look at the memcache
support in redislabs:
https://cloud.google.com/appengine/docs/flexible/nodejs/using-redislabs-memcache

Let us know if you have any questions!



On Mon, Apr 17, 2017 at 1:56 AM, Srikanth Kakani <k...@photon.life> wrote:

> Hi,
>
> I am trying out Shared memcache for my project (low volume right now). I
> am not able to connect to it with the following error:
>
> Error when trying to fetch from memcache Error: socket timed out waiting
> on response. at timeoutHandler 
> (/app/node_modules/memjs/lib/memjs/server.js:206:18)
> at Socket. (/app/node_modules/memjs/lib/memjs/server.js:225:9)
> at Socket.g (events.js:292:16) at emitNone (events.js:91:20) at Socket.emit
> (events.js:185:7) at Socket._onTimeout (net.js:342:8) at ontimeout
> (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout
> (timers.js:207:5
>
>  MemJS: Server  failed after (2) retries with error -
> socket timed out waiting on response.
>
>
> Code I am connecting to memcached is from the documentation:
> https://cloud.google.com/appengine/docs/flexible/nodejs/using-
> redislabs-memcache
>
>
> // Environment variables are defined in app.yaml.
> let MEMCACHE_URL = process.env.MEMCACHE_URL || '127.0.0.1:11211';
>
> if (process.env.USE_GAE_MEMCACHE) {
>   MEMCACHE_URL = 
> `${process.env.GAE_MEMCACHE_HOST}:${process.env.GAE_MEMCACHE_PORT}`;
> }
>
> const mc = memjs.Client.create(MEMCACHE_URL);
>
>
> The memcache url I get is memcache:11211
>
> Any help would be appreciated.
>
> Thanks and Regards,
> Srikanth
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/03ed9267-a924-4ebe-8ff9-
> 0682609da341%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/03ed9267-a924-4ebe-8ff9-0682609da341%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2233SC6hL4zavtitcLDGAFLboc2OOWhjZXDFF7XJd8KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Request logs and flex

2017-04-15 Thread 'Justin Beckwith' via Google App Engine
Greetings folks!
With the non-compat runtimes in the flexible environment, we rely on client
logging libraries to make request correlation work.

https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-logging

Amir / Rajeev / Les should be able to help point you in the right direction
from here :)

On Fri, Apr 14, 2017 at 9:15 PM, Vinay Chitlangia <chitlan...@gmail.com>
wrote:

> Hi,
> Once we moved to non-compat flex, the logs emitted as part of the request
> are coming out in stdout stream instead of with part of the request (all
> logs
> with a particular request, used to come together in the request logs of
> compat runtime).
>
> Attached is the screenshot of the logs. The various WARNING logs are those
> written as part of the request (which is the first line).
> Notice that the logs are not bundled together with the request.
>
> The dockerfile we are using is:
>
> FROM gcr.io/google-appengine/jetty9
>
> RUN apt-get -q update && \
>
> apt-get -y -q --no-install-recommends -t jessie-backports install
> openjdk-8-jdk && \
>
> apt-get clean && \
>
> rm /var/lib/apt/lists/*_*
>
> ADD backend.war $JETTY_BASE/webapps/root.war
>
> WORKDIR $JETTY_BASE
>
> RUN java -jar $JETTY_HOME/start.jar --approve-all-licenses \
>
>  --add-to-startd=jmx,stats,hawtio,requestlog \
>
>  && chown -R jetty:jetty $JETTY_BASE
>
>
> And finally the app.yaml looks like:
>
> runtime: custom
>
> env: flex
>
>
> handlers:
>
> - url: /.*
>
>   script: this field is required, but ignored
>
>   secure: always
>
>
> resources:
>
>   cpu: 2
>
>   memory_gb: 10
>
> automatic_scaling:
>
>   min_num_instances: 1
>
>   max_num_instances: 10
>
>   cool_down_period_sec: 120
>
>   cpu_utilization:
>
> target_utilization: 0.5
>
>
> env_variables:
>
>   USE_GAE_MEMCACHE: 1
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/9a919731-3f0a-4432-94c1-
> 833c2024dbd6%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/9a919731-3f0a-4432-94c1-833c2024dbd6%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q3ce_osQg%3DHgoKf-gL8WvyoOE6fCmv7djsT8%3D0NBrQn9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Error - deploying a custom tinywebdb using Google App Engine Launcher --- Windows 7

2017-04-12 Thread 'Justin Beckwith' via Google App Engine
+1 to moving towards the Cloud SDK.  If you're interested in a
launcher-like UI on top of the Cloud SDK, feel free to this
totally-unsupported-not-an-offical-google-product-side-project I put
together:

https://github.com/JustinBeckwith/trebuchet

Thanks!



On Wed, Apr 12, 2017 at 7:09 AM, 'Nicholas (Google Cloud Support)' via
Google App Engine <google-appengine@googlegroups.com> wrote:

> It seems like the SDK being used does not have currently supported SSL
> certificates bundled with it.  If you have an older version of the
> stand-alone SDK, the bundled certs may be outdated.  If you have the newest
> version of the standalone SDK, the certs may still not have been updated.
> Having just tested the original App Engine SDK for Python
> <https://cloud.google.com/appengine/docs/standard/python/download> myself
> (version 1.9.52) however, I can confirm that I was able to deploy my test
> application successfully without SSL handshake errors.
>
> If you also have the newest version and still get this error when using
> the CLI *appcfg.py update *, I would recommend filing a
> new issue on the Issue Tracker.  If you have an earlier version and want to
> continue using the stand-alone App Engine SDK, I'd recommend downloading
> the newest version which is currently *1.9.52*.
>
> If you're not particularly attached to the stand-alone SDK, I strongly
> recommend switching to the Cloud SDK <https://cloud.google.com/sdk/> as
> this is where much of Google's energy is spent
> <https://stackoverflow.com/questions/38982261/has-the-google-app-engine-launcher-for-mac-osx-been-deprecated#comment65351303_38982261>
> for deployment tools.  It is a much more robust tool set and includes
> commands for almost all Google Cloud products so quite versatile.
>
> On Wednesday, April 12, 2017 at 9:07:26 AM UTC-4, John Woods wrote:
>>
>>
>> HI,
>>
>> I'm trying to deploy a custom tinywebdb using Google App Engine Launcher,
>> and I get the error message shown below.  Can anyone tell me how to resolve
>> this error.  Thanks.  John
>>
>>
>>  File "C:\Program Files (x86)\Google\google_appengine\
>> lib\httplib2\httplib2\__init__.py", line 1037, in connect
>> raise SSLHandshakeError(e)
>> httplib2.SSLHandshakeError: [Errno 1] _ssl.c:499: error:14090086:SSL
>> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>> 2017-04-06 13:17:09 (Process exited with code 1)
>>
>> You can close this window now.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/b45c0f26-aeb2-4805-92b4-
> d00d1041c164%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/b45c0f26-aeb2-4805-92b4-d00d1041c164%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0A9nf_3t%3De%3DGKQin5JDCKKGMqaYNML6yb-kp9z05A1Sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Installing a linux package for app engine instance, how to?

2017-01-20 Thread 'Justin Beckwith' via Google App Engine
We should be able to get your custom domain set up for you on env:flex.
Lorne (cc'd) should be able to help us out here :)

On Thu, Jan 19, 2017 at 4:44 PM, Pub Lift <*@publift.com> wrote:

> ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/home/
> adcruz/Documents/Publift/dashboard/app.yaml]
> No URLMap entries found in application configuration
>
>
>
> And I do not want to use
> env: flex
>
> either for the time being because it doesn't seem to want to use our
> custom domain
>
> On Friday, January 20, 2017 at 11:40:38 AM UTC+11, Justin Beckwith wrote:
>>
>> Could you delete the line that says "vm: true" and try again?
>>
>>
>>
>> On Tuesday, January 17, 2017 at 2:38:05 PM UTC-8, Pub Lift wrote:
>>>
>>> Hello!
>>>
>>> I'm having a bit of an issue with my app. I'm using nodejs and it
>>> interacts with gnuplot, but I'm not sure how to install the gnuplot package
>>> after deploying the app.
>>>
>>> Am I doing this right?
>>> Dockerfile
>>> FROM gcr.io/google_appengine/nodejs
>>>
>>>
>>> RUN apt-get -qq update && apt-get -qq -y install gnuplot
>>>
>>> app.yaml
>>> runtime: custom
>>> env: flex
>>> vm: true
>>>
>>> # Temporary setting to keep gcloud from uploading node_modules
>>> skip_files:
>>>  - ^node_modules$
>>>
>>>
>>> manual_scaling:
>>>   instances: 1
>>>
>>> When I run
>>> gcloud app deploy
>>>
>>> , the console just stays stuck on
>>> Building and pushing image for service [default]
>>>
>>> Can anyone tell me what I'm possibly doing wrong? Thanks!
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/gQhFggScNPM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/861b893c-8b55-4270-a6fd-
> 9e800dbbca52%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/861b893c-8b55-4270-a6fd-9e800dbbca52%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q2hqu4%2BrZ7H0T_jOp2fgOHjDQksKH%2BGF0UhsYSOK7ZXvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Installing a linux package for app engine instance, how to?

2017-01-19 Thread 'Justin Beckwith' via Google App Engine
Could you delete the line that says "vm: true" and try again? 



On Tuesday, January 17, 2017 at 2:38:05 PM UTC-8, Pub Lift wrote:
>
> Hello!
>
> I'm having a bit of an issue with my app. I'm using nodejs and it 
> interacts with gnuplot, but I'm not sure how to install the gnuplot package 
> after deploying the app. 
>
> Am I doing this right?
> Dockerfile
> FROM gcr.io/google_appengine/nodejs
>
>
> RUN apt-get -qq update && apt-get -qq -y install gnuplot
>
> app.yaml
> runtime: custom
> env: flex
> vm: true
>
> # Temporary setting to keep gcloud from uploading node_modules
> skip_files:
>  - ^node_modules$
>
>
> manual_scaling:
>   instances: 1
>
> When I run 
> gcloud app deploy
>
> , the console just stays stuck on 
> Building and pushing image for service [default]
>
> Can anyone tell me what I'm possibly doing wrong? Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4b5abd0f-8ddb-47b1-80c5-470cc786263e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Is Google App Engine Launcher being deprecated? Why??

2017-01-10 Thread 'Justin Beckwith' via Google App Engine
Greetings folks,
And thanks for all of the feedback. We apologize for any confusion we may 
have caused after switching the links on the App Engine SDK downloads page. 
 Our long term goal is to have all of the App Engine tooling available from 
the Cloud SDK.  As we transition over, there are a few tools that didn't 
make the initial trip - the App Engine Launcher is one of them.  We want to 
minimize pain for people while switching over, so we're definitely going to 
take a second look at including this (or a similar tool) in the box.  I'll 
take this back to the team, and we'll figure out how to move this forward.

In the meantime, please do let us know if you have any other concerns.  

Thanks!



On Wednesday, December 28, 2016 at 7:43:23 AM UTC-8, Joshua Smith wrote:
>
> Yes, obviously I know all that, because I said I’m writing scripts for 
> every project. So instead of having a nice GUI that does it all for me, I 
> have to create and maintain a dozen scripts. This is progress?
>
> With these operations, you could make your own custom user interface for 
> managing your projects, applications and services.
>
>
> Wait. What?
>
> Does google actually believe that instead of providing an easy-to-use 
> interface for setting up and managing applications and services, 
> enterprises want to build their OWN GUIs to do this?
>
> Do you guys ever actually *talk* to your customers?
>
>
>
> On Dec 26, 2016, at 5:06 PM, 'Nicholas (Google Cloud Support)' via Google 
> App Engine  wrote:
>
> Thanks for the feedback.
>
> Regarding the switch to different projects, one can use the global flag 
> *--project=my_project_id*  
> for a given command to be performed with a specific context. 
>  Alternatively, one could use *gcloud config set project my_project_id 
> * to achieve a 
> longer term effect.  This will remain in effect until changed.
>
> The default behavior to promote a new deployment can be changed per 
> deployment using the *--no-promote 
> * flag.  If you 
> wish deployments *not* to be promoted by default, you can use *gcloud 
> config set app/promote_by_default false 
> *.  This will 
> remain the new default behavior unless changed or using the *--promote* 
> flag when deploying.
>
> Depending on the needs of your company, you may want to consider the App 
> Engine Admin API 
> . 
>  These APIs allow you to create applications, create/list/delete service 
> versions, etc. programmatically.  With these operations, you could make 
> your own custom user interface for managing your projects, applications and 
> services.
>
> On Wednesday, December 21, 2016 at 3:36:57 PM UTC-5, Joshua Smith wrote:
>>
>> Having used both, the GUI is much better in two cases:
>>
>> 1. When you have a lot of projects, it’s nice to have the GUI to just 
>> click and update, vs having to root around finding the right script to run.
>>
>> 2. I could train a non-programmer to push an update to a web app using 
>> the GUI. Not so using the command line.
>>
>> Also, the whole setup for the command line is really focused on the idea 
>> that you’ll have only one project, which is pretty silly. So you end up 
>> having to write simple scripts as wrappers around the command line stuff, 
>> just to pass project names.
>>
>> And one other issue with the command line that was really just a 
>> violation of the principle of least surprise: deploying should NOT route 
>> all traffic to the version you just pushed. That’s insane. Whoever thought 
>> that was a good default clearly has no experience developing real 
>> applications. Not a big deal to work around because I have to write the 
>> aforementioned wrapper scripts anyway, but… seriously?
>>
>> -Joshua
>>
>> On Dec 21, 2016, at 2:39 PM, 'Nicholas (Google Cloud Support)' via Google 
>> App Engine  wrote:
>>
>> I am not aware of any plans to create a GUI for the Cloud SDK.
>>
>>- Are there particular features of the launcher that are unavailable 
>>or difficult to use with gcloud command line tool?
>>- Are there any particular pain points to the *gcloud* command line 
>>tool?
>>
>>
>> On Wednesday, December 21, 2016 at 1:31:10 PM UTC-5, George Bittmann 
>> wrote:
>>>
>>> The App Engine Launcher was largely how I was able to sell my team on 
>>> using App Engine.
>>>
>>> Nicholas do you know if there are plans to create a GUI product for App 
>>> Engine using the new Cloud SDK?
>>>
>>> Knowing one way or the other will be helpful.
>>>
>>>
>>>
>>>
>>> On Monday, December 19, 2016 at 4:54:41 PM UTC-5, Nicholas (Google Cloud 
>>> Support) wrote:

 Thank you for voicing your concerns.

 I can confirm 

[google-appengine] Try the App Engine Flexible preview

2016-09-22 Thread 'Justin Beckwith' via Google App Engine
Greetings folks!

The App Engine Flexible <https://cloud.google.com/appengine/docs/flexible/>
team has been hard at work on our latest release.  We’re looking for
developers who are interested in using our new preview environment, and
providing feedback.  This release has a few great features, including:


   -

   Multi-zonal support.  Instances are created across multiple zones in a
   region
   
<https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups>,
   protecting your application in the event of zone issues.
   -

   A modern networking stack.  The new networking flow includes support for
   HTTP streaming, and can improve throughput by as much as 4x. Tail latency
   has also significantly been reduced.
   -

   Custom machine types.  You can now customize the size of your machine
   using GCE Custom Machine Types
   <https://cloud.google.com/custom-machine-types/>.  This lets you add
   more memory, disk, or CPU to suit your application’s needs.


This release is the first step towards App Engine Flexible going GA.  This
release is still in alpha, so bear in mind that there's no SLA, and we may
make breaking changes.  We’d love to have you try it out, and help shape
the future of App Engine Flexible.

To sign up, simply fill out this form, and we’ll be in touch:

<https://docs.google.com/forms/d/e/1FAIpQLSf1qWEzTfyNAttB9gu7j37q984Jufsr68xQ2ZgrRLJZikcxdQ/viewform>


Thanks!


-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADd%3D1Q0E7WmL5g_ZPBut%2BzXjXVT1nWepf5f7sqxXDuiXqdufSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Numpy 3rd party import broken ?

2014-10-14 Thread Justin


Getting this error this morning, never seen before:


---


'module' object has no attribute 'core'
Traceback (most recent call last):
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 1511, in __call__
rv = self.handle_exception(request, response, e)
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 1505, in __call__
rv = self.router.dispatch(request, response)
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 1253, in default_dispatcher
return route.handler_adapter(request, response)
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 1077, in __call__
return handler.dispatch()
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 547, in dispatch
return self.handle_exception(e, self.app.debug)
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.3/webapp2.py,
 line 545, in dispatch
return method(*args, **kwargs)
  File 
/base/data/home/apps/s~sr-yc-trading-1415/1.379355005224802528/controllers/__init__.py,
 line 103, in wrapped_fn
fn(self, *args, **kwargs)
  File 
/base/data/home/apps/s~sr-yc-trading-1415/1.379355005224802528/controllers/__init__.py,
 line 65, in wrapped_fn
fn(self, *args, **kwargs)
  File 
/base/data/home/apps/s~sr-yc-trading-1415/1.379355005224802528/controllers/__init__.py,
 line 43, in wrapped_fn
resp=fn(self, *args, **kwargs)
  File 
/base/data/home/apps/s~sr-yc-trading-1415/1.379355005224802528/controllers/site/marks.py,
 line 572, in get
gradient_training_error: self.format_gradient(stats.gradient(errors))})
  File 
/base/data/home/apps/s~sr-yc-trading-1415/1.379355005224802528/lib/stats_helpers.py,
 line 13, in gradient
import numpy as np
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/numpy-1.6.1/numpy/__init__.py,
 line 137, in module
import add_newdocs
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/numpy-1.6.1/numpy/add_newdocs.py,
 line 9, in module
from numpy.lib import add_newdoc
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/numpy-1.6.1/numpy/lib/__init__.py,
 line 5, in module
from index_tricks import *
  File 
/base/data/home/runtimes/python27/python27_lib/versions/third_party/numpy-1.6.1/numpy/lib/index_tricks.py,
 line 11, in module
import numpy.core.numeric as _nx
AttributeError: 'module' object has no attribute 'core'

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Getting API config update failed, deadline exceeded errors

2014-10-13 Thread Justin Tipton
Wow, thanks, I've been banging my head against the wall for an hour trying 
to fix this. Disable, reenable fixed it for me too.

On Thursday, October 9, 2014 5:39:39 PM UTC-5, Pok wrote:

 I disabled, then re-enabled the application from the settings, seems to 
 fix the issue.  That was really odd.


 On Thursday, October 9, 2014 5:27:24 PM UTC-4, Pok wrote:

 I just starting getting these error messages in the admin log API config 
 update failed, deadline exceeded.  I can't get my instance to start up 
 now.  The most recent requests in my logs show Process terminated because 
 the request deadline was exceeded. (Error code 123).  I haven't made any 
 drastic changes to the code, and it works fine on the dev server, so I have 
 no idea.  I even try deploying a blank project to the app engine server, 
 and it still won't come online.  



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: UserService isLoggedIn always returns false when using LocalUserServiceTestConfig in JUnit test

2014-05-18 Thread Ales Justin
Perhaps try using the same approach as we use in in TCK:
* 
https://github.com/GoogleCloudPlatform/appengine-tck/blob/master/tests/appengine-tck-users/src/test/java/com/google/appengine/tck/users/UserTest.java#L46

On Thursday, May 15, 2014 12:41:02 PM UTC+2, Patrik M wrote:


 UserService isLoggedIn always returns false when using 
 LocalUserServiceTestConfig, even if I set it to true using  

 setEnvIsLoggedIn(true). 

 Declaration
 private LocalServiceTestHelper userHelper = new LocalServiceTestHelper(new 
 LocalUserServiceTestConfig());


 and in setup

  HashMapString, Object envAttr = new HashMapString, Object();
 envAttr.put(com.google.appengine.api.users.UserService.user_id_key, 1
 );
 userHelper.setEnvAttributes(envAttr).setEnvAuthDomain(example.com).
 setEnvEmail(te...@example.com javascript:).setEnvIsAdmin(false).
 setEnvIsLoggedIn(true);


  UserService userService = UserServiceFactory.getUserService();

 userService.isUserLoggedIn()


 This always returns false when running JUnit-test


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] cannot import name CredentialsNDBProperty

2014-05-09 Thread Justin Marshall


I am trying to import a csv file to my app engine instance data store. I am 
using ferris as my framework.

For some reason it keeps telling me that it cannot import 
CredentialsNDBProperty. I am new to appengine, but i don't see where I am 
calling that class from my bulkloader file. 

here is my commandline response and below that my bulkloader.yaml file


01:55 PM Uploading data records.

[INFO] Logging to bulkloader-log-20140505.135529

[INFO] Throttling transfers:

[INFO] Bandwidth: 25 bytes/second

[INFO] HTTP connections: 8/second

[INFO] Entities inserted/fetched/modified: 20/second

[INFO] Batch Size: 10

Please enter login credentials for localhost:8080

Email: justinmarshal...@gmail.com

Password for justinmarshal...@gmail.com: 

Error parsing yaml file:

cannot import name CredentialsNDBProperty

  in bulkloader.yaml, line 14, column 1




# If you have module(s) with your model classes, add them here. Also

# change the kind properties to model_class.

python_preamble:

- import: base64

- import: re

- import: google.appengine.ext.bulkload.transform

- import: google.appengine.ext.bulkload.bulkloader_wizard

- import: google.appengine.ext.db

- import: google.appengine.api.datastore

- import: google.appengine.api.users

- import: ferris.BasicModel


transformers:

- kind: Trainer

  connector: csv

  property_map:

  - property: __key__

external_name: key

export_transform: transform.key_id_or_name_as_string


  - property: firstName

external_name: firstName


  - property: lastName

external_name: lastName


  - property: bio

external_name: bio


  - property: schoolName

external_name: schoolName


  - property: email

external_name: email

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: any way to access ModulesService.getInstanceHostname ?

2014-02-06 Thread Ales Justin


 There is ModulesService::getCurrentInstanceId, if that helps.

 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: In-container testing: Arquillian or Remote API?

2014-01-06 Thread Ales Justin


 What are the pros and cons of Arquillian here?


Pros: 

I would say you are far more flexible.
See all the funky stuff we're doing in GAE TCK:
* https://github.com/GoogleCloudPlatform/appengine-tck

Cons: 

It's sometimes hard to get all the versions of all the components right.
But you can always simply copy what's working in GAE TCK, and you should be 
fine.

-Ales
 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: HELP ME IN GOOGLE APP ENGINE !!!

2013-11-08 Thread Ales Justin
You don't use enough of UPPER CASE in your app or in your HELP ME. ;-)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Indexes stuck building

2013-10-21 Thread Justin Ellison
First time GAE user, but I'm trying to deploy a simple open source app and 
my indexes stay stuck in building.  Any guidance appreciated.

application: je-stashboard

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: Bad news for GAE/Java from Google I/O

2013-05-31 Thread Ales Justin
Hearing all this things about JEE on GAE being slow, etc,
I've been saying this 2y back at JavaOne:
* http://parleys.com/play/5148922a0364bc17fc56c653/chapter8/about

But apart from this workarounds,
we've actually produced a lot more, an alternative to direct GAE:
* http://www.jboss.org/capedwarf

Where for all Doubting Thomas's we have this:
* https://github.com/GoogleCloudPlatform/appengine-tck
(in case you missed it at I/O ;-)

-Ales

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Attention Java MapReduce users

2013-05-01 Thread Ales Justin
Any chance of providing this library in Maven Central?

-Ales

On May 1, 2013, at 10:32 PM, Tom Kaitchuck tkaitch...@google.com wrote:

 If you are using the experimental Java MapReduce library for App Engine, you 
 are strongly encouraged to update to the latest version of the library in the 
 public svn: https://code.google.com/p/appengine-mapreduce/source/checkout
 
 
 Background:
 We are rolling out a fix to a long standing interaction bug between the 
 experimental MapReduce library and the experimental Files API that, in 
 certain circumstances, results in dropped data. Specifically this bug can 
 cause some records emitted by the Map to be excluded from the input to Reduce.
 
 The bugfix involves patches to both the Files API and Java MapReduce. 
 Unfortunately older versions of the Java MapReduce library running against 
 the patched Files API will drop Map output under more common circumstances. 
 The Files API fix will roll out on its own (no action required by you), but 
 in order to avoid dropped data you must update to the latest version of the 
 Java MapReduce library.
 
 We apologize for the trouble. Rest assured we are working aggressively to 
 move MapReduce into a fully supported state.
 
 
 Tom Kaitchuck on behalf of the Google App Engine Team
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine Pipeline API group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to app-engine-pipeline-api+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Anyone else have all their backends taken down @ 6pm EST today and NOT brought back up ?

2013-04-20 Thread Justin Grayston
I have a couple of apps that have background threads running. On one app on 
Thursday I had the exact same thing. Forcing a start would make it run for a 
bit but would and with that too long to shut down log message. Then the backend 
would not auto start again. The other app has run faultlessly. Remember they 
can shut down a backend whenever they need to. 

My hunch is they had to shutdown a data center and move apps off. It has worked 
fine since.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Lucene Problem

2013-02-20 Thread Ales Justin
Imo, Lucene tries to load some class that is not on the white list, hence 
fails.

On Wednesday, February 13, 2013 11:28:57 PM UTC+1, cxc...@ualr.edu wrote:


1. 
I aplied Lucene 4.0 in my code. It could run very well in local 
machine. However, it has error when I deploy it to my application. The 
error is shown as below.



2013-02-13 12:09:12.866 /search.jsp 500 41ms 0kb Mozilla/5.0 (Windows 
NT 6.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 
Safari/537.17

144.167.117.190 - - [13/Feb/2013:12:09:12 -0800] POST /search.jsp 
 HTTP/1.1 500 0 http://1.oysteridentityexplorer.appspot.com/; Mozilla/5.0 
 (Windows NT 6.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 
 Safari/537.17 1.oysteridentityexplorer.appspot.com ms=41 cpu_ms=64 
 instance=00c61b117c12d037cb94f94773f83c9d4c33ceba 
 https://appengine.google.com/instances?app_id=s~oysteridentityexplorerversion_id=1.365283211222382867key=00c61b117c12d037cb94f94773f83c9d4c33ceba#00c61b117c12d037cb94f94773f83c9d4c33ceba

2. W2013-02-13 12:09:12.864

/search.jsp
java.lang.NoClassDefFoundError: Could not initialize class 
 org.apache.lucene.util.RamUsageEstimator
   at 
 org.apache.lucene.codecs.BlockTreeTermsReader$FieldReader$SegmentTermsEnum.getFrame(BlockTreeTermsReader.java:1396)
   at 
 org.apache.lucene.codecs.BlockTreeTermsReader$FieldReader$SegmentTermsEnum.pushFrame(BlockTreeTermsReader.java:1430)
   at 
 org.apache.lucene.codecs.BlockTreeTermsReader$FieldReader$SegmentTermsEnum.seekExact(BlockTreeTermsReader.java:1643)
   at org.apache.lucene.index.TermContext.build(TermContext.java:95)
   at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:167)
   at 
 org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:647)
   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:292)
   at edu.ualr.oysterweb.SearchIdentity.search(SearchIdentity.java:55)
   at org.apache.jsp.search_jsp._jspService(search_jsp.java:68)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at 
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
   at 
 com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
   at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
   at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
   at 
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)
   at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:326)
   at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
   at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
   at 
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
   at 
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)
   at 
 com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:447)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:454)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:461)
   at com.google.tracing.TraceContext.runInContext(TraceContext.java:703)
   at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:338)
   at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:330)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:458)
   at 
 

[google-appengine] Re: Anyone interested in Java AppEngine Example Code?

2013-01-19 Thread Ales Justin
I for one am definitely interested in such examples.
It will help us flush out any issues we have with out CapeDwarf env.

btw: is @InvalidMail's code already public?

-Ales

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/W23uG4a9U6IJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] GAE development server lost settings

2013-01-17 Thread Justin P
Hi

I'm just starting out with Eclipse GAE Java but thought I'd try adding GWT 
to my test project then decided it was a step too far at the moment and 
decided to remove it.  However, when I try to 'Run As'  'Web Application' 
on my test project it now gives the following in the Eclipse console pane. 
Any ideas please how I can reset appropriate settings?
 

 terminated test [Web Application] C:\Program 
 Files\Java\jdk1.6.0_37\bin\javaw.exe (17 Jan 2013 12:02:14)

 

  

Usage: dev-appserver [options] app directory


 Options:

  --help, -h Show this help message and exit.

  --server=SERVERThe server to use to determine the latest

   -s SERVER   SDK version.

  --address=ADDRESS  The address of the interface on the local 
 machine

   -a ADDRESS  to bind to (or 0.0.0.0 for all interfaces).

  --port=PORTThe port number to bind to on the local 
 machine.

   -p PORT

  --sdk_root=DIR Overrides where the SDK is located.

  --disable_update_check Disable the check for newer SDK versions.

  --generated_dir=DIRSet the directory where generated files are 
 created.

  --jvm_flag=FLAGPass FLAG as a JVM argument. May be repeated to

   supply multiple flags.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/w_oMi7QRztsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Testing of Google app engine

2013-01-03 Thread Ales Justin
I've implemented GAE Arquillian (http://arquillian.org/) container:
* https://github.com/alesj/arquillian-container-gae
* 
https://repository.jboss.org/nexus/index.html#nexus-search;quick~arquillian-gae

We use it heavily in our CapeDwarf project to run tests in different 
containers - AS7 and GAE.

On Wednesday, January 2, 2013 6:01:47 AM UTC+1, Nishant Nawarkhede wrote:

 Hello Everyone,

 I have developed an application in google app engine, i want to write test 
 script to do automatic testing of forms like ,
 Which tool can be used for testing ? Any example ?


 https://lh4.googleusercontent.com/-4hO4Dr4ebi4/UOO-1hMKOyI/AAc/tcJIvxkr4LM/s1600/screenshot.png


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/9g0m8TrlPwUJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Google app engine and lock-in

2012-12-06 Thread Ales Justin
 I am using python.
 I assume Cape Dwarf is for the java version of the app engine, isn't it?

Yes, Java only.

Unfortunately there is still too much stuff to do on Java side,
to be thinking about Python support atm.

Which doesn't mean community / users cannot contribute this. ;-)

-Ales

 On Wed, Dec 5, 2012 at 2:52 AM, Francois MASUREL masu...@mably.com wrote:
 Great news !
 
 Does any hosting solution based on CapeDwarf exist or is planned ?
 
 François
 
 
 
 On Wed, Dec 5, 2012 at 11:41 AM, Ales Justin ales.jus...@gmail.com wrote:
 As promised, and a bit of pr ...
 * http://in.relation.to/Bloggers/FirstCapeDwarfRelease
 
 -Ales
 
 On Nov 23, 2012, at 11:54 PM, Ales Justin ales.jus...@gmail.com wrote:
 
 Sounds interesting... Any idea about the costs ?
 
 Deployment and setup wise there are no costs, as it's all open source,
 hence you can build and maintain it yourself. Not that I suggest that -- we 
 make our $ out of support. :-)
 
 But obviously if you need any serious environment, you'll need some hardware.
 
 But a note of warning, this is a new project, hence not yet around at all - 
 just about to do initial release,
 and we definitely welcome community participation.
 
 Otoh, we take big pride in testing things, and we do try to think scalable 
 all the time.
 Things are implemented to run in a cluster / cloud, while we admit there are 
 some design issues we need to re-evaluate.
 
 I'll push some announcement blog on Monday,
 with more detailed instructions and binaries on how to use things.
 
 I suggest you give it a spin and let us know.
 
 -Ales
 
 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:
 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/capedwarf
 
 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.
 
 -Ales
 
 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:
 I am aware of AppScale
 http://appscale.cs.ucsb.edu/
 
 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
 http://www.youtube.com/watch?v=ebnh3D79xUs
 
 Regards,
 E
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/vA0Fwjx-qN8J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Google app engine and lock-in

2012-12-06 Thread Ales Justin
 Is there a grid that shows the GAE components supported/partially 
 supported/non-supported by Cape Dwarf?

The API matrix is on the main project site:
* http://www.jboss.org/capedwarf

 I see that there is a Channel API sub-tree that says 'Initial @Category 
 support. without much meat behind it.

That's the msg from last commit in that sub-tree. :-)

There is initial support; we have chat demo/example app working.
I suggest you ping us on our forum for more detailed questions / help.

-Ales

 On Thu, Dec 6, 2012 at 10:30 AM, Randy Shoup rsh...@google.com wrote:
 From the App Engine side, we're excited to see these several open source 
 implementations of the App Engine APIs.  Keep up the great work.  Can't wait 
 to see what's next.
 
 Take care,
 -- Randy
 
 Randy Shoup
 Director, Google App Engine 
 
 
 On Wednesday, December 5, 2012 2:41:49 AM UTC-8, Ales Justin wrote:
 As promised, and a bit of pr ...
 * http://in.relation.to/Bloggers/FirstCapeDwarfRelease
 
 -Ales
 
 On Nov 23, 2012, at 11:54 PM, Ales Justin ales@gmail.com wrote:
 
 Sounds interesting... Any idea about the costs ?
 
 Deployment and setup wise there are no costs, as it's all open source,
 hence you can build and maintain it yourself. Not that I suggest that -- we 
 make our $ out of support. :-)
 
 But obviously if you need any serious environment, you'll need some hardware.
 
 But a note of warning, this is a new project, hence not yet around at all - 
 just about to do initial release,
 and we definitely welcome community participation.
 
 Otoh, we take big pride in testing things, and we do try to think scalable 
 all the time.
 Things are implemented to run in a cluster / cloud, while we admit there are 
 some design issues we need to re-evaluate.
 
 I'll push some announcement blog on Monday,
 with more detailed instructions and binaries on how to use things.
 
 I suggest you give it a spin and let us know.
 
 -Ales
 
 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:
 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/capedwarf
 
 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.
 
 -Ales
 
 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:
 I am aware of AppScale
 http://appscale.cs.ucsb.edu/
 
 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
 http://www.youtube.com/watch?v=ebnh3D79xUs
 
 Regards,
 E
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/vA0Fwjx-qN8J.
 To post to this group, send email to google-a...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengi...@googlegroups.com.
 
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/DOZ7H7Q8WYgJ.
 
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 
 -- 
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough. M. 
 Andretti
 
 
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Google app engine and lock-in

2012-12-05 Thread Ales Justin
As promised, and a bit of pr ...
* http://in.relation.to/Bloggers/FirstCapeDwarfRelease

-Ales

On Nov 23, 2012, at 11:54 PM, Ales Justin ales.jus...@gmail.com wrote:

 Sounds interesting... Any idea about the costs ?
 
 Deployment and setup wise there are no costs, as it's all open source,
 hence you can build and maintain it yourself. Not that I suggest that -- we 
 make our $ out of support. :-)
 
 But obviously if you need any serious environment, you'll need some hardware.
 
 But a note of warning, this is a new project, hence not yet around at all - 
 just about to do initial release,
 and we definitely welcome community participation.
 
 Otoh, we take big pride in testing things, and we do try to think scalable 
 all the time.
 Things are implemented to run in a cluster / cloud, while we admit there are 
 some design issues we need to re-evaluate.
 
 I'll push some announcement blog on Monday,
 with more detailed instructions and binaries on how to use things.
 
 I suggest you give it a spin and let us know.
 
 -Ales
 
 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:
 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/capedwarf
 
 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.
 
 -Ales
 
 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:
 I am aware of AppScale
 http://appscale.cs.ucsb.edu/
 
 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
 http://www.youtube.com/watch?v=ebnh3D79xUs
 
 Regards,
 E
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/vA0Fwjx-qN8J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Google app engine and lock-in

2012-11-23 Thread Ales Justin
 Sounds interesting... Any idea about the costs ?

Deployment and setup wise there are no costs, as it's all open source,
hence you can build and maintain it yourself. Not that I suggest that -- we 
make our $ out of support. :-)

But obviously if you need any serious environment, you'll need some hardware.

But a note of warning, this is a new project, hence not yet around at all - 
just about to do initial release,
and we definitely welcome community participation.

Otoh, we take big pride in testing things, and we do try to think scalable all 
the time.
Things are implemented to run in a cluster / cloud, while we admit there are 
some design issues we need to re-evaluate.

I'll push some announcement blog on Monday,
with more detailed instructions and binaries on how to use things.

I suggest you give it a spin and let us know.

-Ales

 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:
 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/capedwarf
 
 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.
 
 -Ales
 
 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:
 I am aware of AppScale
 http://appscale.cs.ucsb.edu/
 
 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
 http://www.youtube.com/watch?v=ebnh3D79xUs
 
 Regards,
 E
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/vA0Fwjx-qN8J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Google app engine and lock-in

2012-11-22 Thread Ales Justin
Wrt lock-in, at JBoss/RedHat we're working on this new project:
* http://www.jboss.org/capedwarf

I'm just about to do initial Beta1 release in the next few days.
Perhaps give it a spin and let us know any feedback.

-Ales

On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:

 I am aware of AppScale
 http://appscale.cs.ucsb.edu/

 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few others)
 http://www.youtube.com/watch?v=ebnh3D79xUs

 Regards,
 E


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/AQZs6PJYmbsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] App Upload issue

2012-04-24 Thread Justin Barber
I have made an update to my application and can't seem to deploy it.
The deployer shows that it exited with process 0. When i go to the
site thought its the old pages. I have tried a dozen times with the
same results. How can i force it to update?

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: ApplicationError: 108 when trying to open a blob as a file?

2012-04-03 Thread Justin LeFebvre
I'm still seeing this. Has anyone else seen this issue? I would love
to get an answer on this. Thanks.

On Feb 15, 3:10 pm, Justin LeFebvre jus...@cloudlock.com wrote:
 I'm trying to write a generated csv file line by line to the
 blobstore, using the task queue, which will be eventually uploaded to
 google docs and recently saw the following error. I am using the
 python API.

 File /base/data/home/apps/cloudlock11/5-2-11.356657273301426337/gapps/
 export.py, line 391, in write_lines
     with files.open(blob_name, 'a') as csv_output:
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 427, in open
     exclusive_lock=exclusive_lock)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 260, in __init__
     self._open()
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 384, in _open
     self._make_rpc_call_with_retry('Open', request, response)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 388, in _make_rpc_call_with_retry
     _make_call(method, request, response)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 236, in _make_call
     _raise_app_error(e)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 204, in _raise_app_error
     raise Error(str(e))
 Error: ApplicationError: 108

 I have never seen this before and interestingly enough it happened
 after already writing 44400 rows to the blob. I was wondering what
 this error means. Also, When the task goes to retry, I get this error.

  File /base/data/home/apps/cloudlock11/5-2-11.356657273301426337/
 gapps/export.py, line 391, in write_lines
     with files.open(blob_name, 'a') as csv_output:
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 427, in open
     exclusive_lock=exclusive_lock)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 260, in __init__
     self._open()
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 384, in _open
     self._make_rpc_call_with_retry('Open', request, response)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 388, in _make_rpc_call_with_retry
     _make_call(method, request, response)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 236, in _make_call
     _raise_app_error(e)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/files/file.py, line 203, in _raise_app_error
     raise ExclusiveLockFailedError()
 ExclusiveLockFailedError

 Can anyone help me with this?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Playing with pull queues rest api

2012-03-16 Thread Justin Grayston
Have you tried s~appname (hard) instead of encoding. You might have
tried that but we recently got stumped by that. The docs made no ref
to it. We added the hard prefix and everything worked a treat.



On Mar 12, 5:28 am, tarun2000 tarunpondiche...@gmail.com wrote:
 I want to run the python example for pull queues over rest.  I keep
 getting a 403 when it tries to access the pull queue.  My app is HRD.
 I replaced the client id / secret with my own, and the authentication
 part succeeds.  (appname is the name of my app, queuename is the name
 of my queue in the actual script output)

 $ gtaskqueue --project_name=s~appname getqueue
 --request-start--
 GEThttps://www.googleapis.com/discovery/v1/apis/taskqueue/v1beta1/rest
 Authorization: [some valid string]
 user-agent: google-api-python-client/1.0

 --request-end--
 --request-start--
 GEThttps://www.googleapis.com/taskqueue/v1beta1/projects/s%7Eappname/tas...
 Authorization: [some valid string]
 content-length: 0
 accept-encoding: gzip, deflate
 accept: application/json
 user-agent: google-api-python-client/1.0

 --request-end--
 Error Processing request: HttpError 403 when 
 requestinghttps://www.googleapis.com/taskqueue/v1beta1/projects/s%7Eappname/tas...
 returned you are not allowed to make this api call

 In my config for the app:
   queue
     nameworker/name
     modepull/mode
     acl
       user-emailqu...@domain.com/user-email
     /acl
   /queue

 Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Python — App Engine — AttributeError: 'list' object has no attribut 'has_key'

2012-02-01 Thread Justin Papez
Hey all,

Been having quite a problem with this AttributeError: 'list' object
has no attribut 'has_key'. My question is quite long and already on
stackoverflow so I am pasting a link (http://stackoverflow.com/
questions/9089060/python-app-engine-attributeerror-list-object-has-no-
attribut-has-key) instead of retyping everything all over again.
Thanks in advance for help/suggestions/answers!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Python — App Engine — AttributeError: 'list' object has no attribut 'has_key'

2012-02-01 Thread Justin Papez
The link above for some reason is not working. Here is a working link
http://stackoverflow.com/questions/9089060/attributeerror-list-object-has-no-attribut-has-key-in-app-engine

On Jan 31, 4:24 pm, Justin Papez gaega...@gmail.com wrote:
 Hey all,

 Been having quite a problem with this AttributeError: 'list' object
 has no attribut 'has_key'. My question is quite long and already on
 stackoverflow so I am pasting a link (http://stackoverflow.com/
 questions/9089060/python-app-engine-attributeerror-list-object-has-no-
 attribut-has-key) instead of retyping everything all over again.
 Thanks in advance for help/suggestions/answers!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Bulkloader, high replication datastore and python runtime

2011-12-09 Thread Justin
Having problems with the bulkloader and different python runtimes.

The bulkloader [uploading data] works fine with the python25 runtime
and the old master/slave database.

The bulkloader seems to work fine with the python25 runtime and the
new high replication datastore, despite the comment here:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Setting_Up_remote_api

This document applies to apps that use the master/slave datastore. If
your app uses the High Replication datastore, it is possible to copy
data from the app, but Google does not currently support this use
case

The bulkloader fails with python27 and the high replication datastore.

Could someone confirm to me which of these use cases should work and
which should not ? And also if there is a workaround for the
python27 / high replication datastore case.

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] upload_data authentication problem

2011-12-08 Thread Justin
Hi,

I'm moving to the python27 runtime [sdk 1.6.0] and am having a problem
uploading data; it seems like my email address is being ignored and
the authentication step missed out, resulting in an authentication
error:

 justin@justin-ThinkPad-X220:~/work/just_football$ python appengine/
appcfg.py upload_data --kind=League --log_file=tmp/bulkloader-log --
url=http://just-football.appspot.com/remote_api --application=s~just-
football --config_file=bulkloader.yaml --filename=tmp/leagues.csv --
email=justin.worr...@gmail.com --db_filename=tmp/bulkloader-
progress.sql3
Uploading data records.
[INFO] Logging to tmp/bulkloader-log
[INFO] Throttling transfers:
[INFO] Bandwidth: 25 bytes/second
[INFO] HTTP connections: 8/second
[INFO] Entities inserted/fetched/modified: 20/second
[INFO] Batch Size: 10
[INFO] Opening database: tmp/bulkloader-progress.sql3
[INFO] Connecting to just-football.appspot.com/remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File /home/justin/packages/google_appengine_1.6.0/google/appengine/
tools/bulkloader.py, line 3433, in Run
self.request_manager.Authenticate()
  File /home/justin/packages/google_appengine_1.6.0/google/appengine/
tools/bulkloader.py, line 1319, in Authenticate
remote_api_stub.MaybeInvokeAuthentication()
  File /home/justin/packages/google_appengine_1.6.0/google/appengine/
ext/remote_api/remote_api_stub.py, line 660, in
MaybeInvokeAuthentication
datastore_stub._server.Send(datastore_stub._path, payload=None)
  File /home/justin/packages/google_appengine_1.6.0/google/appengine/
tools/appengine_rpc.py, line 365, in Send
f = self.opener.open(req)
  File /usr/lib/python2.7/urllib2.py, line 400, in open
response = meth(req, response)
  File /usr/lib/python2.7/urllib2.py, line 513, in http_response
'http', request, response, code, msg, hdrs)
  File /usr/lib/python2.7/urllib2.py, line 438, in error
return self._call_chain(*args)
  File /usr/lib/python2.7/urllib2.py, line 372, in _call_chain
result = func(*args)
  File /usr/lib/python2.7/urllib2.py, line 521, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
[INFO] Authentication Failed
justin@justin-ThinkPad-X220:~/work/just_football$

Any ideas ?

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: what about Backend Usage in upcoming GAE pricing scheme ?

2011-09-06 Thread Justin Haugh
Hi Prashant, 

The current Backend prices (and free quota) will be unchanged in the new 
pricing scheme.  I'll see if we can update that doc to make this clearer.

Cheers,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/MC3bclEmSTkJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Re: what about Backend Usage in upcoming GAE pricing scheme ?

2011-09-06 Thread Justin Haugh
Hi Prashant, 

The current Backend prices (and free quota) will be unchanged in the new 
pricing scheme.  I'll see if we can update that doc to make this clearer.

Cheers,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/MC3bclEmSTkJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Channel API between front and backend instances

2011-07-28 Thread Justin Haugh
Not at the moment, but we're working on a fix for this, so that a channel 
created by a frontend can be used by a backend, and vice-versa.  I can't 
provide an exact release date at this point, but it likely will be in one of 
the next few releases.

Until then, the suggested method of handling this is to have either your 
frontend or backend be responsible for Channel communication, and use 
another mechanism for communication between FE and BE, such as urlfetch, 
memcache, the datastore, or the task queue.

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/zt_wogoz6YYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Impossible to update backend

2011-07-28 Thread Justin Haugh
I reached out to Eduardo about this last week.  The problems he was having 
were temporary and went away on their own.  The most likely cause of these 
issues was an upgrade that was applied to production around that time. 
 Backend instances need to be shut down temporarily when these upgrades 
occur, which explains the disappearing instances.  The problem of failed 
deployment was likely a due to a temporary instability in one of the 
bigtables that App Engine uses.  We monitor those types of problems and they 
are usually resolved after a brief period of failed (or slow) deployments.

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/nyN4x2RHN8sJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Backend confusion

2011-07-28 Thread Justin Haugh
What's your application ID?  Your should certainly see something in the 
logs.  Also, you might want to double-check that you're using appcfg 
backends update (verify with appcfg backends list) and looking at the logs 
specifically for your backend (using the Version/Backend dropdown).

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/9_knaoVqA7QJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: LifecycleManager javadoc

2011-06-07 Thread Justin Haugh
On Sunday, June 5, 2011 2:32:57 AM UTC-7, radzish wrote:

 Hi,

 Backends Overview page:

 http://code.google.com/appengine/docs/java/backends/overview.html

 Briefly explains how to use LifecycleManager. Therefore, reference to its 
 javadoc


 http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/LifecycleManager.html

 does not work for me: 404 error code.


Thanks for the bug report, we're fixing it.

 

 Where I can explanation to LifecycleManager and what else it can be used 
 for ?

 My specific questions:

 1. does com.google.appengine.api.LifecycleManager.beginShutdown(long 
 deadline) method called from within backend makes backend to shut down. Is 
 that guaranteed


That method is only used internally and for testing.  A backend instance 
can't shut itself down just yet.  In the future, we plan to offer a way for 
a Backend instance to request shutdown.
 

 2. does LifecycleManager works for regular dynamic non-backend instance? 
 Especially I would like to know if I can use ShutdownHook to flush some 
 instance data to the datastore.


No.  The shutdown process is currently only available for Backends.

- Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/U2FJWFA2OFpJMVFK.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Bypassing urlfetch SSL certificate validation

2011-06-04 Thread Justin
Get the following when trying to download from a site with a bad
certificate

  File /home/jhw/packages/google_appengine-1.5.0/google/appengine/api/
urlfetch.py, line 367, in _get_fetch_result
raise SSLCertificateError(str(err))
google.appengine.api.urlfetch_errors.SSLCertificateError:
ApplicationError: 6 (1, '_ssl.c:491: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed')

Is there anyway to bypass this / force urlfetch to do an 'insecure'
connection ?

Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Backend process start through taskqueue.add

2011-06-02 Thread Justin Haugh
Hey Mark,

Backends support in dev_appserver is currently experimental, and while most 
things work, Task Queues are something that's fairly broken at the moment. 
 When you run with --backends, the dev_appserver divides itself into 
multiple processes, and all tasks are currently run by Remote API Server, 
which is why you see None.None.  We'll be fixing this in an upcoming release 
so that they run on the proper process (backend1.0 in this case).  In the 
meantime, I'd suggest developing this directly in production, or develop 
using urlfetch, then switch to tasks when you deploy to production.

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/TGZPalI0eFYzMjhK.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Backend don't shutdown

2011-05-24 Thread Justin Haugh
Hey Timofey, what's your app_id and backend name?  I'll take a look at the 
logs and see if I can verify this.

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Problem with GetFileContent()

2011-05-20 Thread Justin@Cloudlock
I am trying to download the contents of a file from a google doc to
the blobstore using the app engine python api v3. To do this, I wanted
to grab the contents of the file, store them in memory, and then write
the contents directly to the blobstore using the files api. This works
perfectly fine for users on the same domain. However, when I try to
call GetFileContent using a client with a user who is authenticated
via 2-legged-oauth on a document owned by someone on another domain I
have problems. I have verified that the user has sharing privileges
(fails for both reading and writing) and yet the server is still
responding with a 401: Unauthorized error. Any reason why this would
be?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] MultiThreaded Setting cuts required instances by 1/4th for my app

2011-05-17 Thread Justin Haugh
Hey Jeff,

It will be closer to 45, though right now it is less than that and fixed; 
this is due to a staged rollout of the feature.  The concurrent request 
limit for Backends is dynamic, and App Engine will continue to push requests 
to an instance as long as cpu usage is below the instance class limit.  This 
is how things will work for frontends as well, so as long as you're I/O 
bound, you will be able to serve a very large number of requests in 
parallel.

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Question about dynamic backends

2011-05-13 Thread Justin Haugh
Good question.  Here's how this works.  For the moment, let's only consider 
resident backends:

1) Backends are charged for uptime by the minute.
2) Whenever a backend instance goes down, the system will continue to bill 
for an extra 15 minutes.
3) If a backend comes back up within the 15 minute period after it last shut 
down, it gets partial credit for the time it would have been charged for.

For example, let's say a backend instance starts up and runs for 30 minutes, 
and then stops.  The total charge is 45 minutes.

Taking another step, let's say a backend instance starts up and runs for 30 
minutes, stops, and then comes back up 10 minutes later and runs for an 
hour.  The total charge is as follows:

- 30 minutes for the first uptime interval
- 10 minutes of additional time
- 60 minutes for the second uptime interval
- 15 minutes of additional time

Total time elapsed: 115 minutes
Total time billied: 115 minutes

Thus, you could describe this system as blended intervals, where we never 
double-charge for uptime, and smooth across periods of downtime that last 
less than 15 minutes.  So the 15-minute charge for startup is a simplified 
way of explaining things.  You can think of it that way, but you're never 
double-counted for uptime.

Dynamic backends work the same way, except that we use active intervals 
rather than uptime intervals.  If your dynamic backend is handling a 
request, it is considered active.

As an example, let's say your dynamic backend was handling requests for 30 
minutes, then was idle for 10 minutes, then handled requests for another 60 
minutes.  The charge would work out exactly as the example above, except 
that your backend would likely be evicted after about ~2-5 minutes of idle 
time.  So the timeline looks like:

- startup 
- active for 30 minutes
- idle for 3 minutes
- shutdown
- down for 7 minutes
- startup
- active for 60 minutes
- idle for 3 minutes
- shutdown

Since the period of downtime was less than 15 minutes, the total charge is 
as if the backend was active for 100 minutes, with an extra 15 minutes 
appended at the end.

The upshot of all this is that the system encourages you to keep your 
backend instances up and active for long periods, rather than starting and 
stopping them regularly.  If you're doing that, then you probably don't need 
to use a backend. 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Problem enabling billing / increasing number of queues

2011-05-10 Thread Justin
Hi,

I have a brand new app [no usage yet] with 15 queues. When I deploy, I
get the Invalid queue configuration. Must be fewer than or equal to
10 entries message. No problem, let's enable billing. Been through
the billing procedure, got the confirmation email. Now I'm looking at
the 'Billing Settings' page on the dashboard; however once the
'updating billing' period has passed, I'm still set at 'Billing Free'
rather than 'Billing Enabled'; and consequently still can't deploy my
app due to the 10 queue limit. How do I get out of this loop ? Do I
need some traffic/hits before billing is enabled ?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Using Pillow for image processing

2011-04-28 Thread Justin Harris
Hi,
   I was wondering if anyone has had luck using Pillow (
http://pypi.python.org/pypi/Pillow) instead of PIL for the dev image API.  I 
am trying to automate installing PIL on a 64 bit machine, and PIL misses 
jpeg and zip (png) support that Pillow actually picks up.  The issue I am 
seeing now is that with Pillow the following imports work:

import PIL
from PIL import Image
import _imaging

but these do not:
import Image
from PIL import _imaging

Taking a look at images_stub.py (around line 32) this combination of imports 
will still throw an ImportError, and indeed the dev server says that PIL is 
unavailable.

However, I could not figure out where _imaging was being used anywhere in 
the codebase, and after commenting out those two imports, I was able to use 
the dev imaging API without a problem.  Why are those imports needed?  Also, 
is this just a crazy setup that I have, or have other people run into this 
when trying to install PIL on a 64 bit machine?  This is a Fedora box, btw.

Thanks in advance,
 - Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] When to use ancestor keys for updates

2011-04-24 Thread justin
So I have a very similar problem described on this page
http://code.google.com/appengine/articles/paging.html

Basically I'm going to have multiple comment boxes and need to
figure out what's the best way to add new suggestions. I am planning
on receiving a good amount of comments during some points in time,
(anywhere from 1 to 20 for each box per second).

I will need to be able to query the comments based on what time they
were added at. So I don't believe sharding a comment box would work
for this.  I also would like to filter out results based on usernames.

http://code.google.com/appengine/docs/python/datastore/queries.html#Introduction_to_Indexes
says I can build indexes so the results are pre-ordered.
http://code.google.com/appengine/docs/java/config/indexconfig.html#Using_Automatic_Index_Configuration
says that I can configure this to automatically happen.

I'm using JPA currently and am wondering if the WHERE clause will work
for this.

So, is configuring my index values the best way to go?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: When to use ancestor keys for updates

2011-04-24 Thread justin
On second thought, is there a way to dynamically create a table name
using jpa? So, instead of having to do something like class
SuggestionBox1 extends SuggestionBox { ... }, SuggestionBox2 extends
SuggestionBox{...} and having to redeploy the app...

On Apr 23, 11:57 pm, justin thekeyboard...@gmail.com wrote:
 So I have a very similar problem described on this 
 pagehttp://code.google.com/appengine/articles/paging.html

 Basically I'm going to have multiple comment boxes and need to
 figure out what's the best way to add new suggestions. I am planning
 on receiving a good amount of comments during some points in time,
 (anywhere from 1 to 20 for each box per second).

 I will need to be able to query the comments based on what time they
 were added at. So I don't believe sharding a comment box would work
 for this.  I also would like to filter out results based on usernames.

 http://code.google.com/appengine/docs/python/datastore/queries.html#I...
 says I can build indexes so the results are 
 pre-ordered.http://code.google.com/appengine/docs/java/config/indexconfig.html#Us...
 says that I can configure this to automatically happen.

 I'm using JPA currently and am wondering if the WHERE clause will work
 for this.

 So, is configuring my index values the best way to go?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] get_current_user() returns None in blobstore upload handler

2011-04-15 Thread Justin Waugh
I ran into an issue recently when I first tried to use the blobstore,
in that when the blobstore internally redirects to the upload handler
it may not be specified as requiring login, unless it is admin login.

I guess I have 3 questions:

1.  Why is that restriction in place?  I would certainly like to
require a user login for my upload handler

2.  Why does get_current_user() return None in the upload handler if
the user has previously logged in?  If I post to the same handler
without going through the blobstore first, the get_current_user()
returns the user.

3.  What would the best practice then be for validating that the user
is authorized for a blobstore upload handler?

Thanks for the help!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] XMPP Service

2011-04-07 Thread Justin
I'm interested in using the XMPP Service for app to app
communication.  The main application will not be built on Google App
Engine.  Can the XMPP Service be used on its own without using the
rest of App Engine?

How many users can the XMPP Service support?

Basically I'm looking for a hosted XMPP Service that can scale to
support 100,000s to millions of users.  I'm assuming that the Google
XMPP services can support this as they are supporting massive scale
for GoogleTalk ,etc.  Is this support / scale available for third
party applications?

thanks,
-J

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] dev_appserver.py datastore in Python SDK 1.4.3

2011-04-07 Thread Justin
Hi,

I have an app which uses the traditional [non-sql] datastore. I've
just migrated from 1.4.2 to 1.4.3 and noticed the following info
message on dev_appserver.py startup

rdbms_sqlite.py:58] Connecting to SQLite database '' with file '/tmp/
dev_appserver.rdbms'

rdbms_sqlite.py seems to be a new file in package google.appengine.api

Has the default datastore behaviour changed somehow ? Can't see
anything in 1.4.3 release notes

Thanks!




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] JPA relationship column name?

2011-03-28 Thread justin
If i have a class such as this:

class Person {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Key id;
}

and had a 1-N unmanaged relation ship:
class Car {
Person person;
}

Is there a way to preform a jpql query to get all cars owned by a
certain person? That is without adding another string in Car holding a
key value for a Person?

I'm trying to de-normalise my data manually instead of relying on jpa
to use lazy joins. I still need the person and car objects to be in
the same entity group so I can use transactions.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Python AppEngine down

2011-03-22 Thread Justin
Hi,

My Python app has been down since approx 06:52 UTC; app can't seem to find 
the AppEngine runtime libraries; is this a general outage ?

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Python AppEngine down

2011-03-22 Thread Justin
Hi,

My Python app has been unavailable since approx 06:52 UTC today; looks like 
the app can't find the AppEngine runtime libraries; is this a general outage 
?

Thanks,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Python AppEngine down

2011-03-22 Thread Justin
Apologies, my error; left a trailing bracket in an import library :-(

On Mar 22, 7:02 am, Justin justin.worr...@gmail.com wrote:
 Hi,

 My Python app has been unavailable since approx 06:52 UTC today; looks like
 the app can't find the AppEngine runtime libraries; is this a general outage
 ?

 Thanks,

 Justin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [appengine-java] Possibility for race condition on datastore?

2011-03-05 Thread Justin
Thanks for the input. Transactions is exactly what I was looking for.
I coding a small game where people can attack each other and decrease
their hp. If players ended up quering for the players hp and different
datastores contain different values, well that's not a good thing
haha.  I'm planning on using the memcache to store the players hp, but
when the value is removed from the cache I got to get the newest value
back into the memcache.

On Thu, Mar 3, 2011 at 11:28 AM, Ikai Lan (Google) ika...@google.com wrote:
 Yes. The only way to correctly do this is with transactions and sharded
 counters.
 The better question, however, is this: what are you doing? Perhaps there is
 an alternative solution.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine


 On Thu, Mar 3, 2011 at 10:57 AM, justin thekeyboard...@gmail.com wrote:

 I need to write code so that a user has a counter. This counter can be
 read, increase, and decrease. This counter is mission critical so I
 will use the high replication datastore.

 So lets say I create a counter entity which has a user entity as the
 ancestor. I increase the counter value and store the value. Almost
 simultaneously I get another request to read the counter. I get the
 entity from the datastore , using the correct ancestor chain, and I
 read the value. Is it possible that these two values will be
 different? If so, is there anyway way to prevent this from happening?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Possibility for race condition on datastore?

2011-03-03 Thread justin
I need to write code so that a user has a counter. This counter can be
read, increase, and decrease. This counter is mission critical so I
will use the high replication datastore.

So lets say I create a counter entity which has a user entity as the
ancestor. I increase the counter value and store the value. Almost
simultaneously I get another request to read the counter. I get the
entity from the datastore , using the correct ancestor chain, and I
read the value. Is it possible that these two values will be
different? If so, is there anyway way to prevent this from happening?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Re: Tasks and rate- throttled urls

2011-02-16 Thread Justin
Hi Nick,

I have; doesn't seem to work [all tasks are still executed in a
burst]; even if I set bucket size to 1

Is it possible this is a dev_appserver.py issue ? [I haven't tried it
on the production servers yet]

Also it might be worth updating the docs to make it clear you can use
floats in the queue.yaml rate field [it wasn't clear to me you could
use '0.1/s']

Thanks,

Justin

On Feb 15, 11:45 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Justin,

 Have you tried 0.1/s as a rate?

 -Nick



 On Wed, Feb 16, 2011 at 10:40 AM, Justin justin.worr...@gmail.com wrote:
  I have generated some tasks which call the same URL with different
  parameters. Unfortunately the URL is rate throttled - I can only make
  one call every 10 secs - so I want to configure queue.yaml to make one
  call every 10 secs.

  I started by setting the rate parameter at 6/m, but all the tasks were
  executed immediately. On closer reading of the queue.yaml docs, I can
  see there's nothing to stop app engine executing 6 tasks per minute in
  a single burst (rather than every 10 secs).

  The best I can do at the minute is to use a rate of 1/m, so a task is
  executed every 60 secs; anything more than 1/m triggers the URL
  throttle.

  Is there some combination of queue.yaml params that can get the
  interval down to 10 secs ?

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Nick Johnson, Developer Programs Engineer, App Engine
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Tasks and rate- throttled urls

2011-02-16 Thread Justin
Ok thanks - does it say this in the docs somewhere ? or are you
looking through the source ?

On Feb 16, 1:27 pm, Greg Darke da...@google.com wrote:
 Hi Justin,

 Currently dev_appserver.py does not respect the rate or bucket size
 (Only the eta).

 On 16 February 2011 21:15, Justin justin.worr...@gmail.com wrote:



  Hi Nick,

  I have; doesn't seem to work [all tasks are still executed in a
  burst]; even if I set bucket size to 1

  Is it possible this is a dev_appserver.py issue ? [I haven't tried it
  on the production servers yet]

  Also it might be worth updating the docs to make it clear you can use
  floats in the queue.yaml rate field [it wasn't clear to me you could
  use '0.1/s']

  Thanks,

  Justin

  On Feb 15, 11:45 pm, Nick Johnson (Google) nick.john...@google.com
  wrote:
  Hi Justin,

  Have you tried 0.1/s as a rate?

  -Nick

  On Wed, Feb 16, 2011 at 10:40 AM, Justin justin.worr...@gmail.com wrote:
   I have generated some tasks which call the same URL with different
   parameters. Unfortunately the URL is rate throttled - I can only make
   one call every 10 secs - so I want to configure queue.yaml to make one
   call every 10 secs.

   I started by setting the rate parameter at 6/m, but all the tasks were
   executed immediately. On closer reading of the queue.yaml docs, I can
   see there's nothing to stop app engine executing 6 tasks per minute in
   a single burst (rather than every 10 secs).

   The best I can do at the minute is to use a rate of 1/m, so a task is
   executed every 60 secs; anything more than 1/m triggers the URL
   throttle.

   Is there some combination of queue.yaml params that can get the
   interval down to 10 secs ?

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

  --
  Nick Johnson, Developer Programs Engineer, App Engine
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
  368047

  --
  You received this message because you are subscribed to the Google Groups 
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

 --
 Greg Darke

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Tasks and rate- throttled urls

2011-02-15 Thread Justin
I have generated some tasks which call the same URL with different
parameters. Unfortunately the URL is rate throttled - I can only make
one call every 10 secs - so I want to configure queue.yaml to make one
call every 10 secs.

I started by setting the rate parameter at 6/m, but all the tasks were
executed immediately. On closer reading of the queue.yaml docs, I can
see there's nothing to stop app engine executing 6 tasks per minute in
a single burst (rather than every 10 secs).

The best I can do at the minute is to use a rate of 1/m, so a task is
executed every 60 secs; anything more than 1/m triggers the URL
throttle.

Is there some combination of queue.yaml params that can get the
interval down to 10 secs ?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Does task scheduling work on dev_appserver ?

2011-02-10 Thread Justin
queue.yaml looks as follows:

queue:
- name: quotes
  rate: 6/m
  bucket_size: 1

The tasks all get executed, but seemingly 'as soon as possible' rather
than my desired one-per-10-seconds. Have I mis-configured something,
or does scheduling only work in production ?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Bulkloading empty db.ListProperty fields

2010-12-30 Thread Justin
I have a csv sheet I need to bulkload into AppEngine.

One of the fields is a list of integers of the form (eg) 1,2,3; the
list can be empty.

I'm using the following import_transform function (where fn=int):

def parse_array(fn):
def wrapper(value):
return [fn(seg) for seg in re.split(\\,, value) if not
seg=='']
return wrapper

This barfs on bulkloading -

 BadValueError: May not use the empty list as a property value; property 
 myarray is [].

OK, try again -

def parse_array(fn):
def wrapper(value):
if value == '' or value is None or value == []:
return None
return [fn(seg) for seg in re.split(\\,, value)]
return wrapper

This bulkloads fine; but if I try to load an entity with an empty list
field I get the following -

 BadValueError: Property myarray must be a list

Can anyone suggest how empty db.ListProperty fields should be
initialised from bulkloader ?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Forcing bulkloader to create missing properties as None

2010-12-16 Thread Justin
How can I force the [csv] bulkloader to create entities with 'None'
property values if the relevent bulk data field is empty, as opposed
to assuming the entity model property is missing ?

I've tried

- using 'import_transform: transform.none_if_empty(str)' in
bulkloader.yaml
- using 'db.StringProperty(default=None)' in the model definition

Neither of which seems to work; what I find is

- empty fields appear as blanks in the dev_appserver datastore viewer
[if I put a model to the datastore with an explicity 'None' field via
the interactive console, it appears as 'None']
- I can't query the empty fields using Query.filter(field = , None)
[the filter just gets ignored]

Thank you.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Storing properties dict as db.Model field

2010-12-16 Thread Justin
What's the approved way of doing this ?

I don't want the overhead of creating a separate db model.

I don't see a db.DictProperty [equivalent of db.ListProperty].

Right now I use a db.TextProperty, and serialise/deserialise the dict
with yaml.

I'm guessing this isn't the 'approved' way of doing things.

Thank you,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



  1   2   >