runtime_config:
document_root: web
How to define document_root 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-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/cbdc1aee-26ec-4a26-947e-11a1799c82f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I found an error in the log, it complains "FastCGI sent in stderr: "PHP message: ALERT-SIMULATION - Unable to open logfile: /dev/stderr".I did create a docker image for my business requirement (use own PHP framework on nginx) based on Google Cloud Platform php-nginx.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/e99236a7-90ae-43f0-b272-4c5c8126edec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/45ee3120-0859-46e9-ae39-3d201c3d85ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/8b96613b-7abd-4809-880b-618071ccce62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/35c96bb4-c1c3-4ce0-9b5b-595e596074fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3768e5a5-ebc4-4239-bf6e-1c7fb2077900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It works like a charm after add memcache extension, thanks!
In the very beginning, I deployed a default service in standard environment (my-company.appspot.com) and then a monitor service in flex environment now (monitor-dot-my-company.appspot.com).1. The default service could access Cloud SQL in standard environment before, but monitor service cannot in flex environment now.I did configure to authorize the app in Google Cloud Platform dashboard, SQL page, Access Control label, does it only work for standard environment? (standard and flex in my case have same ip)
2. php echo and Aura::infoLog (Aura is my company PHP framework) don't print anything out in flex env and they do work in standard one, is there specific log or debug tool in flex environment?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0a83e6c2-2b86-44a8-b436-d94d2d5f6c3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/50d5ef9d-3574-4427-a640-a0ee96117ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1. I use Second Generation Instance for Cloud SQL in flex environment, did enable 'sqladmin' on my project.
The cloud sql instance log shows:
10:12:52.4252017-04-21T17:12:52.425362Z 7115 [Note] Aborted connection 7115 to db: 'f_s' user: 'f-s' host: '66.*.*.210' (Got timeout reading communication packets)
2. Logging
It complains error after put a file named php-fpm.conf in the project root.
[22-Apr-2017 06:07:42] ERROR: [/opt/php/etc/php-fpm-user.conf:1] unknown entry 'error_log' [22-Apr-2017 06:07:42] ERROR: Unable to include /opt/php/etc/php-fpm-user.conf from /opt/php/etc/php-fpm.conf at line 1 [22-Apr-2017 06:07:42] ERROR: failed to load configuration file '/opt/php/etc/php-fpm.conf' [22-Apr-2017 06:07:42] ERROR: FPM initialization failed 2017-04-22 06:07:42,142 INFO spawned: 'php-fpm' with pid 41 2017-04-22 06:07:42,170 INFO exited: php-fpm (exit status 78; not expected) 2017-04-22 06:07:43,171 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
1. I use Second Generation Instance for Cloud SQL in flex environment, did enable 'sqladmin' on my project.The cloud sql instance log shows:
10:12:52.4252017-04-21T17:12:52.425362Z 7115 [Note] Aborted connection 7115 to db: 'f_s' user: 'f-s' host: '66.*.*.210' (Got timeout reading communication packets)
2. LoggingIt complains error after put a file named php-fpm.conf in the project root.[22-Apr-2017 06:07:42] ERROR: [/opt/php/etc/php-fpm-user.conf:1] unknown entry 'error_log' [22-Apr-2017 06:07:42] ERROR: Unable to include /opt/php/etc/php-fpm-user.conf from /opt/php/etc/php-fpm.conf at line 1 [22-Apr-2017 06:07:42] ERROR: failed to load configuration file '/opt/php/etc/php-fpm.conf' [22-Apr-2017 06:07:42] ERROR: FPM initialization failed 2017-04-22 06:07:42,142 INFO spawned: 'php-fpm' with pid 41 2017-04-22 06:07:42,170 INFO exited: php-fpm (exit status 78; not expected) 2017-04-22 06:07:43,171 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/26ad462c-0ac9-403f-b099-0c00f6901f62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ab18ea70-001d-4741-8a09-b66b50268a2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b4e86250-a959-43a0-973b-ddf81e57cbc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm interested in App Engine Flex PHP alpha version and did fill the register form but have not received any response.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0426b851-4600-4cbe-af04-15a572e76951%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adding our PM
Hi Yao,
<blockquote class="gmail_quote" style="margin:0;margin-le
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3ea14799-2abc-4596-8f1d-6c98658850d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Yao,
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;
--
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/msgid/google-appengine/f9d6f2f8-fd8a-4c92-8fb8-47ba7cc6816c%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-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/23a30693-c192-49e1-a05f-79074f0fa1e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<blockquote class="gmail_quote" style
--
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/msgid/google-appengine/02fdbc8d-df2d-4859-be0d-65b2c5fe6f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, Apr 20, 2017 at 2:41 PM Yao Li <y...@sazze.com> wrote:<br
--
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/msgid/google-appengine/1a0e2b5f-fc3f-4c66-8f40-f86f44f57d58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
</
<blockquote class="gmail_quote" style="margin:0;margin-left:
--
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/msgid/google-appengine/6b9378a7-2259-4c2a-b80e-428b6bea0e34%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-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/f7e687a1-1441-4ef6-a688-0b02b6edcbf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$stderr = fopen('php://stderr', 
Hi Takashi,
I did get New Relic installed successfully, thanks!
The current issue is 404 for API request from mobile app or Postman software.I have the default service (f-s.appspot.com) in standard environment and its API service works well, I copied code to monitor service (monitor-dot-f-s.appspot.com) which is deployed to flex env and it doesn't work now.I wonder there are 2 reasons:1. security certificate2. memcache for session handler (used when initialize basic API controller, it can pass the initialization but session doesn't work, actually REST api doesn't need session)API in default service works and reason 1 should not be the problem, how do you think about the 2nd reason or some other reasons?
BTW, I still have not received the alpha version for memcache from the PM as you mentioned, maybe I have to upgrade to PHP 7+ and use memcached.
--
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/msgid/google-appengine/faef8628-7d42-4953-82bf-87bcc2a9d370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
handlers:
- url: /v\d+/.*
script: api/index.php
secure: alwaysHi Yao,
<div dir=
--
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/msgid/google-appengine/b7f15b76-5297-421a-a6c7-80c0f495c539%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
wget -r -l1 -nd -A"linux.tar.gz" https://download.newrelic.com/php_agent/release/gzip -dc newrelic*.tar.gz | tar xf -cd newrelic-php5*rm -f /opt/php56/lib/x86_64-linux-gnu/extensions/no-debug-non-zts-20131226/newrelic.socp ./agent/x64/newrelic-20131226.so /opt/php56/lib/x86_64-linux-gnu/extensions/no-debug-non-zts-20131226/newrelic.socp ./daemon/newrelic-daemon.x64 /usr/bin/newrelic-daemon
sed -i -e 's/"REPLACE_WITH_REAL_KEY"/yourLicenseKey/g' ./scripts/newrelic.ini.templatesed -i -e 's/PHP Application/yourApplicationName/g' ./scripts/newrelic.ini.templatecp ./scripts/newrelic.ini.template /opt/php56/lib/ext.enabled:/opt/php56/lib/conf.d:/app/newrelic.ini/usr/bin/newrelic-daemon start1. I have to install New Relic agent on instance manually with script currently after ssh, is there a way (API, script or something else) to install the following script automatically?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a5c26c39-d147-4e6c-8d35-68d04c88029c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Yao,
Thanks!
</di
--
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/msgid/google-appengine/602b430b-9430-4b82-88f5-8ccfcb249e50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
cron:
- description: check USPS Scanned every 4 hours
url: /Cron/checkUSPSScanned
schedule: every 4 hours
retry_parameters:
min_backoff_seconds: 5
max_doublings: 5
- description: check USPS Scanned every 4 hours (batch 2)
url: /Cron/checkUSPSScannedBatch2
schedule: every 4 hours
retry_parameters:
min_backoff_seconds: 5
max_doublings: 5
- description: check Delivered every 4 hours
url: /Cron/checkDelivered
schedule: every 4 hours
retry_parameters:
min_backoff_seconds: 5
max_doublings: 5
- description: check Delivered every 4 hours (batch 2)
url: /Cron/checkDeliveredBatch2
schedule: every 4 hours
retry_parameters:
min_backoff_seconds: 5
max_doublings:
runtime: custom
env: flex
handlers:
- url: /v\d+/.*
script: api/index.php
secure: always
- url: /.*
script: index.php
secure: always
- url: /Cron/.*
script: index.php
secure: always
login: admin
resources:
cpu: 0.5
memory_gb: 1.0
disk_size_gb: 10
env_variables:
WHITELIST_FUNCTIONS: phpinfo
beta_settings:
cloud_sql_instances: "f-s:us-central1:flex-prod-usc-sql-2"
namespace classes\cron;
class Routes {
public static $default = array(
'~^/Cron/checkUSPSScanned?(\?.*)?$~' => array('\classes\controllers\Cron', 'checkUSPSScanned'),
'~^/Cron/checkUSPSScannedBatch2?(\?.*)?$~' => array('\classes\controllers\Cron', 'checkUSPSScannedBatch2'),
'~^/Cron/checkDelivered?(\?.*)?$~' => array('\classes\controllers\Cron', 'checkDelivered'),
'~^/Cron/checkDeliveredBatch2?(\?.*)?$~' => array('\classes\controllers\Cron', 'checkDeliveredBatch2')
);
}
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d9e346ff-ff89-4b18-8ed4-3f51754e5acd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Yao,
Hi Yao,
Hi Yao,</
--
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/msgid/google-appengine/c3de845f-5b4f-4d72-a161-30ca42e8c5c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public function before() {
if ($_SERVER['HTTP_X_APPENGINE_CRON'] != 'true') {
a\Error::raiseHttp403();
}
}
--
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/msgid/google-appengine/9a9bf163-b439-4f17-9d4f-dc913a594b31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Do you have any other place to return 403 in your cron ?
<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding
--
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/msgid/google-appengine/a13e5b9e-a092-4a8a-affb-6ae2b1276699%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are two extensions for using memcached; `memcache` and `memcached` extensions. Yeah it's confusing, but in short, the `memcache` is an old one, and not actively maintained. On our runtime, we only provide `memcached` extension for PHP 7.0.x and PHP 7.1.x. So if you have a plan to migrate to PHP 7, I recommend that you look into `memcached` extension, instead of `memcache`.Of course you can do:```$ composer require 'ext-memcached:*'```To enable the extension on our runtime.