: AccessDeniedException: Systems Manager's instance management role is not configured for account: 227937466084 Feb 14 06:06:17 ip-172-31-29-215 amazon-ssm-agent.amazon-ssm-agent[480765]: #011status code: 400, request id: db3fba3c-a180-4901-b16a-2e5b431005f0 Feb 14 06:09:01 ip-172-31-29-215 CRON[1272878]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi) Feb 14 06:09:19 ip-172-31-29-215 systemd[1]: Starting Clean php session files... Feb 14 06:09:19 ip-172-31-29-215 sessionclean[1272891]: Cannot load Xdebug - it was already loaded Feb 14 06:09:19 ip-172-31-29-215 sessionclean[1272891]: PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20190902/pdo_sqlsrv.so (/usr/lib/php/20190902/pdo_sqlsrv.so: undefined symbol: php_pdo_unregister_driver), /usr/lib/php/20190902/pdo_sqlsrv.so.so (/usr/lib/php/20190902/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Feb 14 06:09:19 ip-172-31-29-215 sessionclean[1272891]: PHP Warning: Module 'gettext' already loaded in Unknown on line 0 Feb 14 06:09:19 ip-172-31-29-215 sessionclean[1272891]: PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 Feb 14 06:09:19 ip-172-31-29-215 sessionclean[1272891]: PHP Warning: Module 'sqlsrv' already loaded in Unknown on line 0 Feb 14 06:09:20 ip-172-31-29-215 systemd[1]: phpsessionclean.service: Succeeded. Feb 14 06:09:20 ip-172-31-29-215 systemd[1]: Finished Clean php session files. Feb 14 06:17:01 ip-172-31-29-215 CRON[1272936]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 14 06:20:01 ip-172-31-29-215 CRON[1272947]: (smmsp) CMD (test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendmail && /usr/share/sendmail/sendmail cron-msp) Feb 14 06:25:01 ip-172-31-29-215 CRON[1272992]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )) Feb 14 06:25:01 ip-172-31-29-215 cracklib: no dictionary update necessary. Feb 14 06:35:09 ip-172-31-29-215 amazon-ssm-agent.amazon-ssm-agent[480765]: 2026-02-14 06:35:09.1711 WARN EC2RoleProvider Failed to connect to Systems Manager with instance profile role credentials. Err: retrieved credentials failed to report to ssm. Error: EC2RoleRequestError: no EC2 instance role found Feb 14 06:35:09 ip-172-31-29-215 amazon-ssm-agent.amazon-ssm-agent[480765]: 2026-02-14 06:35:09.2051 ERROR EC2RoleProvider Failed to connect to Systems Manager with SSM role credentials. error calling RequestManagedInstanceRoleToken: AccessDeniedException: Systems Manager's instance management role is not configured for account: 227937466084 Feb 14 06:35:09 ip-172-31-29-215 amazon-ssm-agent.amazon-ssm-agent[480765]: #011status code: 400, request id: 951ff137-2a36-40d2-9427-779716747a88 Feb 14 06:39:02 ip-172-31-29-215 CRON[1273427]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi) Feb 14 06:39:03 ip-172-31-29-215 systemd[1]: Starting Clean php session files... Feb 14 06:39:03 ip-172-31-29-215 sessionclean[1273442]: Cannot load Xdebug - it was already loaded Feb 14 06:39:03 ip-172-31-29-215 sessionclean[1273442]: PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20190902/pdo_sqlsrv.so (/usr/lib/php/20190902/pdo_sqlsrv.so: undefined symbol: php_pdo_unregister_driver), /usr/lib/php/20190902/pdo_sqlsrv.so.so (/usr/lib/php/20190902/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Feb 14 06:39:03 ip-172-31-29-215 sessionclean[1273442]: PHP Warning: Module 'gettext' already loaded in Unknown on line 0 Feb 14 06:39:03 ip-172-31-29-215 sessionclean[1273442]: PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 Feb 14 06:39:03 ip-172-31-29-215 sessionclean[1273442]: PHP Warning: Module 'sqlsrv' already loaded in Unknown on line 0 Feb 14 06:39:03 ip-172-31-29-215 systemd[1]: phpsessionclean.service: Succeeded. F28 - - [14/Feb/2026:06:55:51 -0600] "GET /.env~ HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:51 -0600] "GET /_profiler/phpinfo HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:52 -0600] "GET /.gitlab-ci.yml HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:52 -0600] "GET /env HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:53 -0600] "GET /env.json HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:53 -0600] "GET /git/.env HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:53 -0600] "GET /gitlab-ci.yml HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:54 -0600] "GET /docker_compose.yml HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:54 -0600] "GET /docker-compose.yml HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:55 -0600] "GET /phpinfo HTTP/1.1" 404 435 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:55 -0600] "GET /phpinfo.php HTTP/1.1" 200 92467 "-" "Go-http-client/1.1" 165.245.188.128 - - [14/Feb/2026:06:55:56 -0600] "GET /sms.py HTTP/1.1" 404 435 "-" "Go-http-client/1.1" ::1 - - [14/Feb/2026:06:55:58 -0600] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f (internal dummy connection)" ::1 - - [14/Feb/2026:06:56:00 -0600] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f (internal dummy connection)" 180.93.230.246 - - [14/Feb/2026:07:00:57 -0600] "GET /.env HTTP/1.1" 404 491 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30" 180.93.230.246 - - [14/Feb/2026:07:00:57 -0600] "POST / HTTP/1.1" 200 3477 "-" "Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30" 165.154.227.13 - - [14/Feb/2026:07:02:08 -0600] "POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1" 400 486 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:09 -0600] "POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh HTTP/1.1" 400 486 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:10 -0600] "POST /hello.world?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1" 404 491 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:11 -0600] "POST /?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1" 200 11228 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:12 -0600] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:12 -0600] "GET /vendor/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:12 -0600] "GET /vendor/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:13 -0600] "GET /vendor/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:13 -0600] "GET /vendor/phpunit/phpunit/LICENSE/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:14 -0600] "GET /vendor/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:14 -0600] "GET /phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:15 -0600] "GET /phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:15 -0600] "GET /phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 490 "-" "libredtail-http" 165.154.227.13 - - [14/Feb/2026:07:02:16 -0600] "const { InvalidArgumentError } = require('./error.js'); // @ts-check class Argument { /** * Initialize a new command argument with the given name and description. * The default is that the argument is required, and you can explicitly * indicate this with <> around the name. Put [] around the name for an optional argument. * * @param {string} name * @param {string} [description] */ constructor(name, description) { this.description = description || ''; this.variadic = false; this.parseArg = undefined; this.defaultValue = undefined; this.defaultValueDescription = undefined; this.argChoices = undefined; switch (name[0]) { case '<': // e.g. this.required = true; this._name = name.slice(1, -1); break; case '[': // e.g. [optional] this.required = false; this._name = name.slice(1, -1); break; default: this.required = true; this._name = name; break; } if (this._name.length > 3 && this._name.slice(-3) === '...') { this.variadic = true; this._name = this._name.slice(0, -3); } } /** * Return argument name. * * @return {string} */ name() { return this._name; }; /** * @api private */ _concatValue(value, previous) { if (previous === this.defaultValue || !Array.isArray(previous)) { return [value]; } return previous.concat(value); } /** * Set the default value, and optionally supply the description to be displayed in the help. * * @param {any} value * @param {string} [description] * @return {Argument} */ default(value, description) { this.defaultValue = value; this.defaultValueDescription = description; return this; }; /** * Set the custom handler for processing CLI command arguments into argument values. * * @param {Function} [fn] * @return {Argument} */ argParser(fn) { this.parseArg = fn; return this; }; /** * Only allow option value to be one of choices. * * @param {string[]} values * @return {Argument} */ choices(values) { this.argChoices = values; this.parseArg = (arg, previous) => { if (!values.includes(arg)) { throw new InvalidArgumentError(`Allowed choices are ${values.join(', ')}.`); } if (this.variadic) { return this._concatValue(arg, previous); } return arg; }; return this; }; /** * Make option-argument required. */ argRequired() { this.required = true; return this; } /** * Make option-argument optional. */ argOptional() { this.required = false; return this; } } /** * Takes an argument and returns its human readable equivalent for help usage. * * @param {Argument} arg * @return {string} * @api private */ function humanReadableArgName(arg) { const nameOutput = arg.name() + (arg.variadic === true ? '...' : ''); return arg.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']'; } exports.Argument = Argument; exports.humanReadableArgName = humanReadableArgName;