Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect arguments are passed in docker/gae-run-app.sh #772

Closed
ryosuketc opened this issue Jan 22, 2021 · 1 comment
Closed

Incorrect arguments are passed in docker/gae-run-app.sh #772

ryosuketc opened this issue Jan 22, 2021 · 1 comment

Comments

@ryosuketc
Copy link
Contributor

The arguments given to

tools/gae run app --host ${IP_ADDR} --port ${PORT} --admin_host=${IP_ADDR} --admin_port=${HOST_PORT} --api_host=${IP_ADDR} --api_port=${API_PORT} --skip_sdk_update_check
might be malformed.
https://cloud.google.com/appengine/docs/standard/python/tools/local-devserver-command

Current: --host=${IPADDR} --port=${PORT}
Correct: --host ${IP_ADDR} --port ${PORT}

 % docker/gae-run-app.sh
Device "eth0" does not exist.
Starting Person Finder server
Setting datastore_path to /tmp/8000.datastore
usage: dev_appserver.py [-h] [-A APP_ID] [--host HOST] [--port PORT]
                        [--specified_service_ports SPECIFIED_SERVICE_PORTS]
                        [--admin_host ADMIN_HOST] [--admin_port ADMIN_PORT]
                        [--auth_domain AUTH_DOMAIN] [--storage_path PATH]
                        [--log_level {debug,info,warning,critical,error}]
                        [--max_module_instances MAX_MODULE_INSTANCES]
                        [--use_mtime_file_watcher [USE_MTIME_FILE_WATCHER]]
                        [--threadsafe_override THREADSAFE_OVERRIDE]
                        [--addn_host ADDN_HOST]
                        [--enable_host_checking [ENABLE_HOST_CHECKING]]
                        [--enable_console [ENABLE_CONSOLE]]
                        [--ssl_certificate_path SSL_CERTIFICATE_PATH]
                        [--ssl_certificate_key_path SSL_CERTIFICATE_KEY_PATH]
                        [--php_executable_path PATH]
                        [--php_remote_debugging [PHP_REMOTE_DEBUGGING]]
                        [--php_gae_extension_path PATH]
                        [--php_xdebug_extension_path PATH]
                        [--appidentity_email_address APPIDENTITY_EMAIL_ADDRESS]
                        [--appidentity_private_key_path APPIDENTITY_PRIVATE_KEY_PATH]
                        [--python_startup_script PYTHON_STARTUP_SCRIPT]
                        [--python_startup_args PYTHON_STARTUP_ARGS]
                        [--python27_executable_path PYTHON27_EXECUTABLE_PATH]
                        [--jvm_flag JVM_FLAG] [--go_work_dir GO_WORK_DIR]
                        [--enable_watching_go_path [ENABLE_WATCHING_GO_PATH]]
                        [--go_debugging [GO_DEBUGGING]]
                        [--custom_entrypoint CUSTOM_ENTRYPOINT]
                        [--runtime RUNTIME] [--blobstore_path BLOBSTORE_PATH]
                        [--mysql_host MYSQL_HOST] [--mysql_port MYSQL_PORT]
                        [--mysql_user MYSQL_USER]
                        [--mysql_password MYSQL_PASSWORD]
                        [--mysql_socket MYSQL_SOCKET]
                        [--datastore_path DATASTORE_PATH]
                        [--clear_datastore [CLEAR_DATASTORE]]
                        [--datastore_consistency_policy {consistent,random,time}]
                        [--require_indexes [REQUIRE_INDEXES]]
                        [--auto_id_policy {sequential,scattered}]
                        [--support_datastore_emulator [SUPPORT_DATASTORE_EMULATOR]]
                        [--running_datastore_emulator_host RUNNING_DATASTORE_EMULATOR_HOST]
                        [--datastore_emulator_port DATASTORE_EMULATOR_PORT]
                        [--datastore_emulator_cmd DATASTORE_EMULATOR_CMD]
                        [--logs_path LOGS_PATH]
                        [--show_mail_body [SHOW_MAIL_BODY]]
                        [--enable_sendmail [ENABLE_SENDMAIL]]
                        [--smtp_host SMTP_HOST] [--smtp_port SMTP_PORT]
                        [--smtp_user SMTP_USER]
                        [--smtp_password SMTP_PASSWORD]
                        [--smtp_allow_tls [SMTP_ALLOW_TLS]]
                        [--search_indexes_path SEARCH_INDEXES_PATH]
                        [--clear_search_indexes [CLEAR_SEARCH_INDEXES]]
                        [--enable_task_running [ENABLE_TASK_RUNNING]]
                        [--allow_skipped_files [ALLOW_SKIPPED_FILES]]
                        [--watcher_ignore_re WATCHER_IGNORE_RE]
                        [--api_host API_HOST] [--api_port API_PORT]
                        [--grpc_api_port GRPC_API_PORT]
                        [--automatic_restart [AUTOMATIC_RESTART]]
                        [--dev_appserver_log_level {debug,info,warning,critical,error}]
                        [--skip_sdk_update_check [SKIP_SDK_UPDATE_CHECK]]
                        [--default_gcs_bucket_name DEFAULT_GCS_BUCKET_NAME]
                        [--env_var ENV_VARIABLES]
                        yaml_path [yaml_path ...]
dev_appserver.py: error: argument --host: expected one argument
Person Finder server stopped

I am leaving this as an open issue since I could not simply test the correction just by running docker/gae-run-app.sh. Somehow IP_ADDR could not be obtained finely.

@ryosuketc
Copy link
Contributor Author

Chatted offline with @gimite and this issue is likely to be specific to our environment. Closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant