t 11:06:04 AM UTC-7, Takashi Matsuo (Google)
wrote:
>
>
> Hi Yao,
>
> Maybe you can use one of our base image:
> gcr.io/google-appengine/php71
> gcr.io/google-appengine/php70
> gcr.io/google-appengine/php56
>
> They have pcntl extension enabled by default.
>
> On Th
inx.request` log:
>>
>> [image: LogUI.png]
>>
>> Be sure to select `app` and `nginx.request` logs as follows:
>>
>>
>> [image: app-nginx.request.png]
>>
>>
>> On Thu, Jun 1, 2017 at 8:56 AM Yao Li <y...@sazze.com >
>> wrote:
>>
> Hi Yao,
>
> Few questions,
>
> Is the 499 error happening on App Engine Flex?
> Can you share the reproducible project (like zip files)?
> Can you share the logs with me? Hopefully can you invite me to your
> project as a viewer so that I can check the logs?
>
>
>
&g
I fixed the project id issue for PsrBatchLogger, but it always create 499
error when make api call.
On Wednesday, May 31, 2017 at 4:55:09 PM UTC-7, Yao Li wrote:
>
> I tried Monolog and it is super fast (stdout in example), but it has
> logging line by line and no severity, time and st
atchLogger->log('info', 'This is a info ...')
I did try to init PsrBatchLogger like:
$batchLogger = new PsrBatchLogger('app', array('clientConfig' =>
array('project_id' => 'my-project-id')));
But it doesn't work.
On Wednesday, May 31, 2017 at 4:55:09 PM UTC-7, Yao Li wrote:
>
> I
(Google)
wrote:
>
> Hi Yao,
>
> On Tue, May 30, 2017 at 9:39 PM Yao Li <y...@sazze.com >
> wrote:
>
>> > I think you can just use other PSR compliant logger, rather than using
>> the PsrBatchLogger on your local machine.
>>
>> Could you g
[deviceId] => 0...C
- [key] => 64
- [userId] => 1602
- )
On Thursday, May 25, 2017 at 3:36:25 PM UTC-7, Yao Li wrote:
>
> I have an app is built on GAE Flex Custom env (GCloud PHP Ngnix docker image
> based), I want to improve the application logging format
age": "Name is missing the logs component. Expected the form
projects/[PROJECT_ID]/logs/[ID]","
" "status": "INVALID_ARGUMENT""
" }"
"}"
do I need change 'app' to 'projects/my_project_id/logs/[ID]', how can I get
ID or I def
If it has to make API request, is there any way to write locally and also
make the format pretty?
On Tuesday, May 30, 2017 at 2:13:48 PM UTC-7, Yao Li wrote:
>
> Does it make API request (Google Logging, will be slow in production) or
> just print to stdout/stderr (should be s
looking at Writing applications logs
>> <https://cloud.google.com/appengine/docs/flexible/php/writing-application-logs#writing_application_logs_1>
>> .
>>
>> - Jun
>>
>>
>> On Thursday, May 25, 2017 at 6:36:25 PM UTC-4, Yao Li wrote:
>>>
>
er? 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, i
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
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
I have an app is built on GAE Flex Custom env (GCloud PHP Ngnix docker image
based), I want to improve the application logging format.
How can I make the application log format better (more readable, with
timestamp, POST/GET method name, status code (200), size (22 B), time (4ms),
UTC-7, Yao Li wrote:
>
> I investigated 403 check before accessing static file but there is no
> problem there.
>
> The only code to check 403 is the before() function which is executed
> before run cron job, but it didn't print out the debug code I added in the
> before() fu
:22.536GET403162 B0 msAppEngine-Google;
(+http://code.google.com/appengine)/Cron/myFunction
On Monday, May 22, 2017 at 3:46:58 PM UTC-7, Yao Li wrote:
>
> Is there a way to config cron job for specific service? (for example, I
> have 3 services, www, default, custom, they use different datab
Is there a way to config cron job for specific service? (for example, I
have 3 services, www, default, custom, they use different databases, how
can I run a cron job only for service custom?)
On Monday, May 8, 2017 at 1:19:44 PM UTC-7, Yao Li wrote:
>
> Yes, I found one (403 check)
place to return 403 in your cron ?
>>
>> On Fri, May 5, 2017 at 10:58 AM Yao Li <y...@sazze.com >
>> wrote:
>>
>>> You are right, I found the code to check
>>> $_SERVER['HTTP_X_APPENGINE_CRON']
>>>
>>>
r cron
> handlers in your code somewhere. Can you do a quick code review on the cron
> handler, and change it to check the $_SERVER value as I mentioned?
>
> Thanks,
>
> On Thu, May 4, 2017 at 1:18 PM Yao Li <y...@sazze.com >
> wrote:
>
>> Yes, it's for auth
M UTC-7, Takashi Matsuo (Google)
wrote:
>
>
> Hi Yao,
>
> I think your handlers are protected only for authorized users, right?
>
>
> https://cloud.google.com/appengine/docs/flexible/nodejs/scheduling-jobs-with-cron-yaml#securing_urls_for_cron
> On App Engine flex, it
gt;
> Hi Yao,
>
> Cron works for me on my Flex app.
>
> Can you show your cron.yaml, and app.yaml?
>
> On Thu, May 4, 2017 at 8:03 AM Yao Li <y...@sazze.com >
> wrote:
>
>> btw, I did add cron job routing when initializing app in flex env, the
>
btw, I did add cron job routing when initializing app in flex env, the cron
routes are defined in app.yaml (handler part) for standard env.
On Thursday, May 4, 2017 at 7:57:49 AM UTC-7, Yao Li wrote:
>
> I add New Relic install script in Dockerfile of app level and it works,
&g
, 2017 at 12:47:45 PM UTC-7, Takashi Matsuo (Google) wrote:
>
>
> Hi Yao,
>
> FYI, we released a new Runtime image
> <https://github.com/GoogleCloudPlatform/php-docker/releases/tag/2017-05-01-10-25>
>
> which should capture the logs on stderr by default.
>
> On Mo
sion=api-flex --no-promote
> --no-stop-previous-version
> ```
>
> You can migrate traffic between versions.
>
> On Mon, May 1, 2017 at 8:46 AM Yao Li <y...@sazze.com >
> wrote:
>
>> How about deploying without specifying service name in app.yaml? It will
&g
How about deploying without specifying service name in app.yaml? It will
replace the current default service, right?
On Friday, April 28, 2017 at 4:51:26 PM UTC-7, Yao Li wrote:
>
> Two questions:
> 1. flex env doesn't support handlers for routing?
> 2. Can I migrate traffic
btw, default service (on standard environment) is using 1st gen cloud sql
instance, monitor one (on flex) is using 2nd gen one.
On Friday, April 28, 2017 at 4:51:26 PM UTC-7, Yao Li wrote:
>
> Two questions:
> 1. flex env doesn't support handlers for routing?
> 2. Can I migrate
Two questions:
1. flex env doesn't support handlers for routing?
2. Can I migrate traffic from default service (on standard environment) to
monitor one (on flex)? Or update monitor to default service?
On Friday, April 28, 2017 at 3:50:41 PM UTC-7, Yao Li wrote:
>
> I found the possible
Matsuo (Google)
wrote:
>
> Hi Yao,
>
> On Fri, Apr 28, 2017 at 9:10 AM Yao Li <y...@sazze.com >
> wrote:
>
>> Hi Takashi,
>>
>> I did get New Relic installed successfully, thanks!
>>
>
> Great :)
>
>
>>
>> The current issue
26, 2017 at 8:33:55 PM UTC-7, Takashi Matsuo (Google)
wrote:
>
>
> I often do:
> ```
> apt-get update && apt-get install -y vim less
> ```
> If you're using runtime:custom, maybe you can install them during
> development phase
>
> On Wed, Apr 26, 2017 at 8:2
gt; Unfortunately we're not using the debian's official apt package.
>
>
> On Wed, Apr 26, 2017 at 2:31 PM Yao Li <y...@sazze.com >
> wrote:
>
>> Hi Takashi,
>>
>> I'm installing New Relic PHP agent based on php-nginx docker image, it
>> does finish all commands i
ic-install as root to complete installation.
+ newrelic-install install
---> 1fef98f9ee82
Removing intermediate container 42cf882e3357
On Wednesday, April 26, 2017 at 11:37:11 AM UTC-7, Yao Li wrote:
>
> Ok, we can talk with Hangout.
>
> On Wednesday, April 26, 2017 at 11:26:36 AM UTC-
lex version.
>
> The VM runs a container named `gaeapp` for your application. Did you do
> `docker ps` in the application container?
>
> I'm happy to explain this process on a video call or something if it does
> make sense to you.
>
> -- Takashi
>
> On Wed, Apr 26, 201
down).
```
sudo docker exec -t -i gaeapp /bin/bash
```
Do I need replace 'gaeapp' to my project id or service name?
On Tuesday, April 25, 2017 at 4:41:01 PM UTC-7, Yao Li wrote:
>
> I cannot find ssh button (as top right corner in screenshot), is it
> because of permission or some oth
> sudo docker exec -t -i gaeapp /bin/bash
> ```
>
> Then you can restart everything in the Docker container by:
> ```
> kill -HUP 1
> ```
>
>
> On Tue, Apr 25, 2017 at 1:11 PM Yao Li <y...@sazze.com >
> wrote:
>
>> Hi Takashi,
>>
>> I installed N
and re-deploy to restart but seems not working.
On Tuesday, April 25, 2017 at 9:47:14 AM UTC-7, Takashi Matsuo (Google)
wrote:
>
>
> Hi Yao,
>
> I asked a PM who is responsible for it (it turned out it's not Justin). I
> will reply you off-thread.
>
> On Tue, Apr 25, 2
(Google)
wrote:
>
> Hi Yao,
>
> Yes, you are right.
>
> On Tue, Apr 25, 2017, 8:39 AM Yao Li <y...@sazze.com > wrote:
>
>> Hi Takashi,
>>
>> This instruction is only about Logging, doesn't include memcache, right?
>>
>>
>> On Mon
Hi Takashi,
This instruction is only about Logging, doesn't include memcache, right?
On Monday, April 24, 2017 at 9:31:54 PM UTC-7, Takashi Matsuo (Google)
wrote:
>
> Hi Yao,
> Alright, I've just sent you the instructions.
>
> Thanks!
>
> On Mon, Apr 24, 2017 at 9:17 PM Y
Yes, I'm interested in the alpha version and new log service.
I tried Redis Lab Memcache, it doesn't support memcache, only memcached?
On Monday, April 24, 2017 at 8:45:36 PM UTC-7, Takashi Matsuo (Google)
wrote:
>
> Adding our PM
>
> On Mon, Apr 24, 2017 at 8:29 PM Yao Li <
scuss> list?
>
> Glad to hear you could connect to Cloud SQL and see the logs!
>
> BTW, we're going to start alpha tester program for the new logging library
> on App Engine Flex PHP.
> Are you interested in testing it out?
>
> Thanks,
>
>
>
> On Mon, Apr 24, 201
ogging console to see
> those logs.
>
> *3. Extension*
>
> Currently you have to use the custom runtime, and yeah the Dockerfile
> for deb-package-builder will guide you which apt packages are need for
> compiling extensions.
>
> Thanks!
>
> -- Takashi
>
>
/GoogleCloudPlatform/php-docker
https://docs.newrelic.com/docs/agents/php-agent/getting-started/introduction-new-relic-php
On Monday, April 24, 2017 at 8:31:40 AM UTC-7, Yao Li wrote:
>
> 1. Cloud SQL
> It doesn't expose mysql unix_socket in the company framework but host, I
> did try to
works?
2. Logging
It doesn't print anything in Logs View even after add [global] in
php-fpm.conf
On Saturday, April 22, 2017 at 7:40:02 AM UTC-7, Takashi Matsuo (Google)
wrote:
>
> Hi Yao,
>
> On Fri, Apr 21, 2017 at 11:29 PM Yao Li <y...@sazze.com >
> wrote:
>
>>
cally use root and the password is bypassed.
>>
>> Re: /dev/stderr
>>
>> I think you can use the constant STDERR like:
>> ```
>> fwrite(STDERR, "message" . PHP_EOL);
>> ```
>>
>>
>>
>>
>> On Fri, Apr 21, 201
any.appspot.com",
referrer: "https://monitor-dot-my-company.appspot.com/Users/signIn;
On Thursday, April 20, 2017 at 4:05:05 PM UTC-7, Takashi Matsuo (Google)
wrote:
>
>
> Hi Yao,
>
> On Thu, Apr 20, 2017 at 2:41 PM Yao Li <y...@sazze.com >
> wrote:
>
>> I
o:
>
> ```
> $ composer require 'ext-memcached:*'
> ```
> To enable the extension on our runtime.
>
> Thanks!
>
> On Thu, Apr 20, 2017 at 11:21 AM Yao Li <y...@sazze.com >
> wrote:
>
>> As the following doc, Memcache is not available at GAE flex environment
As the following doc, Memcache is not available at GAE flex environment.
https://cloud.google.com/appengine/docs/flexible/php/upgrading
On Thursday, April 20, 2017 at 8:56:24 AM UTC-7, Yao Li wrote:
>
> I do have the plan to upgrade to 7.0+, but current system is in 5.6 and I
> have
n.
>
> Speaking of performance, the runtime supports PHP 7.0.x and 7.1.x, and
> they are quite fast. Is migrating to newer PHP an option for you?
>
> Thanks,
>
>
> On Wed, Apr 19, 2017 at 4:06 PM Yao Li <y...@sazze.com >
> wrote:
>
>> I used XCache in GAE
ion=opcache.so
> ```
>
> Please try it out and let us know how it works for you!
>
> Thanks,
>
>
> On Wed, Apr 19, 2017 at 1:40 PM Yao Li <y...@sazze.com >
> wrote:
>
>> BTW, XCache is used in my company PHP framework and it caused failure
>> wi
kes sense. I will make the change soon and let you know
> when it's done!
>
> On Wed, Apr 19, 2017 at 10:10 AM Yao Li <y...@sazze.com >
> wrote:
>
>> I add flag -m to preserve environment variable (composer_auth which has
>> gitlab token to composer ins
(Google)
wrote:
>
> Hi Yao,
>
> On Wed, Apr 19, 2017 at 8:48 AM Yao Li <y...@sazze.com >
> wrote:
>
>> I found an error in the log, it complains "FastCGI sent in stderr: "PHP
>> message: ALERT-SIMULATION - Unable to open logfile: /dev/stderr"
> ```
>>
>> After deploying, I can access the app at
>> https://my-service-dot-my-app.appspot.com/
>>
>> If it returns 500 HTTP error, I suggest that you go to the Logging
>> console at:
>> https://console.cloud.google.com/logs
pp.yaml
>> env: flex
>> runtime: php
>> service: my-service
>> ```
>>
>> After deploying, I can access the app at
>> https://my-service-dot-my-app.appspot.com/
>>
>> If it returns 500 HTTP error, I suggest that you go to the Logging
>> con
I followed setting in the doc:
https://cloud.google.com/appengine/docs/flexible/php/configuring-your-app-with-app-yaml#general
There is a index.php file in my project root folder (for example, my
project name is project_folder, it's app in the doc), as the above doc, I
don't have to change the
e:
>
>> 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 exec
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'
I re-deployed with command gcloud preview app deploy --verbosity, then it
works.
On Tuesday, January 12, 2016 at 6:49:54 AM UTC-8, Anika Jansen van Vuuren
wrote:
>
>
> Good day
>
> I have been having issues deploying a node.js app. When using the
> command gcloud --verbosity debug preview app
56 matches
Mail list logo