[google-appengine] Re: (gcloud.app.deploy) Error Response: [13] Error processing user code.

2019-08-06 Thread Thomas Jannaud
Sorry about that
For anyone reading this, I ended up creating an issue on Google's bug 
tracker. Unfortunately I gave the name of my project so it became 
"private" but the answer was that I deleted the service account for the 
app. The best way is to undo it
https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete
 

(find your 21 digits id in your activity log 
https://console.cloud.google.com/home/activity 

 where 
you deleted the service account)
See also https://issuetracker.google.com/issues/119522443#comment11


Le lundi 5 août 2019 14:17:14 UTC-7, Nicolas (Google Cloud Platform 
Support) a écrit :
>
> Hi Thomas,
> This discussion group is oriented more towards general opinions, trends, 
> and issues of general nature touching App Engine. For technical 
> implementation, such as migrating your website, you may be better served in 
> dedicated forums such as Stack Overflow 
> , where 
> experienced programmers are within reach and ready to help.
>
> On Monday, August 5, 2019 at 4:22:37 PM UTC-4, Thomas Jannaud wrote:
>>
>> Hi
>> I am migrating my google app engine python website to gcloud.
>> If it can help, I have migrated one small website (fully static) with 
>> success. Now I am migrating a website that uses datastore.
>>
>> It works ok locally (including connecting to the datastore)
>> The build succeeds but I get an error when it comes to deployment
>>
>> gcloud app deploy   --project myappid --trace-log --verbosity=debug gives:
>>
>> ...
>> Updating service [default]...failed.  
>> 
>> DEBUG: (gcloud.app.deploy) Error Response: [13] Error processing user 
>> code.
>> Traceback (most recent call last):
>>   File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", 
>> line 983, in Execute
>> resources = calliope_command.Run(cli=self, args=args)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 
>> 795, in Run
>> resources = command_instance.Run(args)
>>   File "/usr/local/google-cloud-sdk/lib/surface/app/deploy.py", line 90, 
>> in Run
>> parallel_build=False)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>>  
>> line 641, in RunDeploy
>> ignore_file=args.ignore_file)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py",
>>  
>> line 431, in Deploy
>> extra_config_settings)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py",
>>  
>> line 207, in DeployService
>> poller=done_poller)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py",
>>  
>> line 313, in WaitForOperation
>> sleep_ms=retry_interval)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", 
>> line 264, in WaitFor
>> sleep_ms, _StatusUpdate)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", 
>> line 326, in PollUntilDone
>> sleep_ms=sleep_ms)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py", line 
>> 229, in RetryOnResult
>> if not should_retry(result, state):
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", 
>> line 320, in _IsNotDone
>> return not poller.IsDone(operation)
>>   File 
>> "/usr/local/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py",
>>  
>> line 182, in IsDone
>> encoding.MessageToPyValue(operation.error)))
>> OperationError: Error Response: [13] Error processing user code.
>> ERROR: (gcloud.app.deploy) Error Response: [13] Error processing user 
>> code.
>>
>>  Note: I can send you privately the app id/other info
>>
>> requirements.txt file:
>> Flask==1.1.1
>> gunicorn==19.9.0
>> google-api-python-client==1.7.10
>> google-cloud-ndb==0.0.1
>> google-cloud-storage==1.17.0
>> jinja2==2.10.1
>> PyYAML==5.1.1
>> urlfetch==1.1.2
>> grpcio-gcp==0.2.2
>>
>>
>> app.yaml file:
>> runtime: python37
>> entrypoint: gunicorn -b :$PORT main:app
>>
>> handlers:
>> - url: /static
>>   static_dir: static
>> - url: /robots.txt
>>   static_files: robots.txt
>>   upload: robots.txt
>> - url: .*
>>   script: auto
>>
>>
>> Any idea?
>> Note that I don't want to use flex (my website doesn't have many visits)
>> Thanks in advance for looking into this!
>>
>

-- 
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 

[google-appengine] Re: Failed to load resource: the server responded with a status of 400 - Bad request

2019-08-06 Thread 'Nicolas (Google Cloud Platform Support)' via Google App Engine


Hi Rafael,

Thank you for opening this thread, I personally deployed and successfully 
served  an App Engine Flex custom runtime application following this 
documentation 
 
to the southamerica-east1 region.

I would assume that the issue may be in the way your application is 
handling requests that being said, the GCP Google Groups are more oriented 
towards general opinions, trends, and issues of general nature touching App 
Engine.
I would recommend bringing this issue to a website such as Stack Overflow 
, where 
experienced programmers are within reach and ready to help.

On Monday, August 5, 2019 at 11:58:38 PM UTC-4, Rafael Coimbra wrote:
>
> Hi,
>
>
> During the deployment process of my app no errors occurred, however when I 
> try to access it the server respond with status 400 - Bad request. My app 
> location is southamerica-east1 and it works in a flexible environment with 
> custom runtime.
>
> My guess: southamerica-east1 local does not support a flexible environment 
> with custom runtime. Is it right?
>
> What should I do?
>
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1f5774be-2a62-4334-b8ed-8c40c93507c6%40googlegroups.com.


[google-appengine] Prohibit source code downloading

2019-08-06 Thread Fruit Punch Samurai G
Hello. I have ran into a problem and I really need help. Here's the 
situation:

We have a client who insists on using their own Google account for App 
Engine. However, we don't want them to be able to see or download the 
source code that we uploaded. We are using a flexible environment and are 
using Golang. Is there any way to prevent them from download or viewing the 
code even if they are the ones holding the Google account? Please 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/112b4619-3398-446e-9659-ac044df93a19%40googlegroups.com.