yoesoff

All GAE WP Logs

Feb 14th, 2020
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 22.33 KB | None | 0 0
  1. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  2. ╰─➤  24*3
  3. zsh: no matches found: 24*3
  4. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  5. ╰─➤  python                                                                 1
  6. Python 2.7.15+ (default, Oct  7 2019, 17:39:04)
  7. [GCC 7.4.0] on linux2
  8. Type "help", "copyright", "credits" or "license" for more information.
  9. >>> 24*30
  10. 720
  11. >>> 720*12
  12. 8640
  13. >>>
  14. KeyboardInterrupt
  15. >>>
  16. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  17. ╰─➤  gcloud
  18. ERROR: (gcloud) Command name argument expected.
  19. Usage: gcloud [optional flags] <group | command>
  20.   group may be           alpha | app | auth | beta | builds | components |
  21.                          composer | compute | config | container | dataflow |
  22.                          dataproc | datastore | debug | deployment-manager |
  23.                          dns | domains | endpoints | firebase | functions |
  24.                          iam | iot | kms | logging | ml | ml-engine |
  25.                          organizations | projects | pubsub | services | source |
  26.                          spanner | sql | topic
  27.   command may be         docker | feedback | help | info | init | version
  28.  
  29. For detailed information on this command and its flags, run:
  30.   gcloud --help
  31. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  32. ╰─➤  gcloud auth login admin@beanary.tech                                   2
  33. Your browser has been opened to visit:
  34.  
  35.     https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline
  36.  
  37.  
  38. [12227:12227:0215/095157.978153:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process.
  39. Opening in existing browser session.
  40. WARNING: `gcloud auth login` no longer writes application default credentials.
  41. If you need to use ADC, see:
  42.   gcloud auth application-default --help
  43.  
  44. You are now logged in as [admin@beanary.tech].
  45. Your current project is [None].  You can change this setting by running:
  46.   $ gcloud config set project PROJECT_ID
  47. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  48. ╰─➤  gcloud sql instances create wordpress \
  49.     --activation-policy=ALWAYS \
  50.     --tier=db-n1-standard-1 \
  51.     --region=ASIA-SOUTHEAST1
  52. ERROR: (gcloud.sql.instances.create) The required property [project] is not currently set.
  53. You may set it for your current workspace by running:
  54.  
  55.   $ gcloud config set project VALUE
  56.  
  57. or it can be set temporarily by the environment variable [CLOUDSDK_CORE_PROJECT]
  58. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  59. ╰─➤  gcloud init                                                                                                                                                     1
  60. Welcome! This command will take you through the configuration of gcloud.
  61.  
  62. Settings from your current configuration [default] are:
  63. core:
  64.   account: admin@beanary.tech
  65.   disable_usage_reporting: 'True'
  66.  
  67. Pick configuration to use:
  68.  [1] Re-initialize this configuration [default] with new settings
  69.  [2] Create a new configuration
  70. Please enter your numeric choice:  2              
  71.  
  72. Enter configuration name. Names start with a lower case letter and
  73. contain only lower case letters a-z, digits 0-9, and hyphens '-':  beanary-homepage
  74. Your current configuration has been set to: [beanary-homepage]
  75.  
  76. You can skip diagnostics next time by using the following flag:
  77.   gcloud init --skip-diagnostics
  78.  
  79. Network diagnostic detects and fixes local network connection issues.
  80. Checking network connection...done.                                                                                                                                      
  81. Reachability Check passed.
  82. Network diagnostic (1/1 checks) passed.
  83.  
  84. Choose the account you would like to use to perform operations for
  85. this configuration:
  86.  [1] admin@beanary.tech
  87.  [2] admin@obunda.id
  88.  [3] Log in with a new account
  89. Please enter your numeric choice:  1
  90.  
  91. You are logged in as: [admin@beanary.tech].
  92.  
  93. Pick cloud project to use:
  94.  [1] elevated-summer-268302
  95.  [2] Create a new project
  96. Please enter numeric choice or text value (must exactly match list
  97. item):  2
  98.  
  99. Enter a Project ID. Note that a Project ID CANNOT be changed later.
  100. Project IDs must be 6-30 characters (lowercase ASCII, digits, or
  101. hyphens) in length and start with a lowercase letter. beanary-homepage
  102. Your current project has been set to: [beanary-homepage].
  103.  
  104. Not setting default zone/region (this feature makes it easier to use
  105. [gcloud compute] by setting an appropriate default value for the
  106. --zone and --region flag).
  107. See https://cloud.google.com/compute/docs/gcloud-compute section on how to set
  108. default compute region and zone manually. If you would like [gcloud init] to be
  109. able to do this for you the next time you run it, make sure the
  110. Compute Engine API is enabled for your project on the
  111. https://console.developers.google.com/apis page.
  112.  
  113. Created a default .boto configuration file at [/home/yoesoff/.boto]. See this file and
  114. [https://cloud.google.com/storage/docs/gsutil/commands/config] for more
  115. information about configuring Google Cloud Storage.
  116. Your Google Cloud SDK is configured and ready to use!
  117.  
  118. * Commands that require authentication will use admin@beanary.tech by default
  119. * Commands will reference project `beanary-homepage` by default
  120. Run `gcloud help config` to learn how to change individual settings
  121.  
  122. This gcloud configuration is called [beanary-homepage]. You can create additional configurations if you work with multiple accounts and/or projects.
  123. Run `gcloud topic configurations` to learn more.
  124.  
  125. Some things to try next:
  126.  
  127. * Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.
  128. * Run `gcloud topic -h` to learn about advanced features of the SDK like arg files and output formatting
  129. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  130. ╰─➤  gcloud init                            
  131.  
  132. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  133. ╰─➤  gcloud sql instances create wordpress \                                                                                                                         1
  134.     --activation-policy=ALWAYS \
  135.     --tier=db-n1-standard-1 \
  136.     --region=ASIA-SOUTHEAST1
  137. ERROR: (gcloud.sql.instances.create) HTTPError 400: Invalid request: Invalid value for region: ASIA-SOUTHEAST1.
  138. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  139. ╰─➤  gcloud sql instances create wordpress \                                                                                                                         1
  140.     --activation-policy=ALWAYS \
  141.     --tier=db-n1-standard-1 \
  142.     --region=ASIA-SOUTHEAST1
  143. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  144. ╰─➤                                                                                                                                                                130
  145. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  146. ╰─➤  gcloud sql instances create wordpress \                                                                                                                       130
  147.     --activation-policy=ALWAYS \
  148.     --tier=db-n1-standard-1 \
  149.     --region=asia-southeast1
  150. Creating Cloud SQL instance...⠏                                                                                                                                          
  151. Creating Cloud SQL instance...done.                                                                                                                                      
  152. Created [https://www.googleapis.com/sql/v1beta4/projects/beanary-homepage/instances/wordpress].
  153. NAME       DATABASE_VERSION  LOCATION           TIER              ADDRESS        STATUS
  154. wordpress  MYSQL_5_6         asia-southeast1-b  db-n1-standard-1  35.198.201.17  RUNNABLE
  155. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  156. ╰─➤  
  157. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  158. ╰─➤  gcloud sql databases create wordpress --instance wordpress
  159. Creating Cloud SQL database...done.                                                                                                                                      
  160. Created database [wordpress].
  161. instance: wordpress
  162. name: wordpress
  163. project: beanary-homepage
  164. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  165. ╰─➤  gcloud sql users set-password root \
  166.     --host=% \
  167.     --instance wordpress \
  168.     --password=123abc!@#Password
  169. zsh: event not found: @#
  170. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  171. ╰─➤  gcloud sql users set-password root \                                                                                                                            1
  172.     --host=% \
  173.     --instance wordpress \
  174.     --password=123abcassword
  175. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  176. ╰─➤                                                                                                                                                                130
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  186. ╰─➤  gcloud sql users set-password root \                                                                                                                          130
  187.     --host=% \
  188.     --instance wordpress \
  189.     --password=123abcatpassworddotcom
  190. Updating Cloud SQL user...done.                                                                                                                                          
  191. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  192. ╰─➤  cd ~/
  193. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  194. ╰─➤  mkdir ~/beanary
  195. ╭─yoesoff@yoesoff-ThinkPad-X220 ~  
  196. ╰─➤  cd beanary
  197. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary  
  198. ╰─➤  mkdir homepage
  199. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary  
  200. ╰─➤  cd homepage
  201. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  202. ╰─➤  composer require google/cloud-tools
  203. Using version ^0.9.1 for google/cloud-tools
  204. ./composer.json has been created
  205. Loading composer repositories with package information
  206. Updating dependencies (including require-dev)
  207. Package operations: 17 installs, 0 updates, 0 removals
  208.   - Installing symfony/polyfill-ctype (v1.14.0): Downloading (100%)        
  209.   - Installing symfony/polyfill-mbstring (v1.14.0): Downloading (100%)        
  210.   - Installing twig/twig (v2.12.5): Downloading (100%)        
  211.   - Installing symfony/process (v4.4.4): Downloading (100%)        
  212.   - Installing symfony/filesystem (v4.4.4): Downloading (100%)        
  213.   - Installing psr/container (1.0.0): Downloading (100%)        
  214.   - Installing symfony/service-contracts (v2.0.1): Downloading (100%)        
  215.   - Installing symfony/polyfill-php73 (v1.14.0): Downloading (100%)        
  216.   - Installing symfony/console (v4.4.4): Downloading (100%)        
  217.   - Installing symfony/dom-crawler (v5.0.4): Downloading (100%)        
  218.   - Installing symfony/browser-kit (v4.4.4): Downloading (100%)        
  219.   - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)        
  220.   - Installing psr/http-message (1.0.1): Downloading (100%)        
  221.   - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)        
  222.   - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)        
  223.   - Installing guzzlehttp/guzzle (6.5.2): Downloading (100%)        
  224.   - Installing google/cloud-tools (v0.9.1): Downloading (100%)        
  225. symfony/service-contracts suggests installing symfony/service-implementation ()
  226. symfony/console suggests installing symfony/event-dispatcher ()
  227. symfony/console suggests installing symfony/lock ()
  228. symfony/console suggests installing psr/log (For using the console logger)
  229. symfony/dom-crawler suggests installing symfony/css-selector ()
  230. guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
  231. guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware)
  232. guzzlehttp/guzzle suggests installing ext-intl (Required for Internationalized Domain Name (IDN) support)
  233. Writing lock file
  234. Generating autoload files
  235. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  236. ╰─➤  php vendor/bin/wp-gae
  237. Wordpress Helper
  238.  
  239. Usage:
  240.   command [options] [arguments]
  241.  
  242. Options:
  243.   -h, --help            Display this help message
  244.   -q, --quiet           Do not output any message
  245.   -V, --version         Display this application version
  246.       --ansi            Force ANSI output
  247.       --no-ansi         Disable ANSI output
  248.   -n, --no-interaction  Do not ask any interactive question
  249.   -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  250.  
  251. Available commands:
  252.   create  Create a new WordPress site for Google Cloud
  253.   help    Displays help for a command
  254.   list    Lists commands
  255.   update  Update an existing WordPress site for Google Cloud
  256. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  257. ╰─➤  php vendor/bin/wp-gae -q
  258. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  259. ╰─➤  php vendor/bin/wp-gae -V
  260. Wordpress Helper
  261. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  262. ╰─➤  php vendor/bin/wp-gae create
  263. Please enter a directory path for the new project (defaults to my-wordpress-project):beanary-homepage        
  264. We will use the directory: beanary-homepage. If the directory exists, we will overwrite the contents. Do you want to continue? (Y/n)Y
  265. Downloading the WordPress archive...
  266. A directory /home/yoesoff/beanary/homepage/beanary-homepage was created.
  267. Downloaded the WordPress archive.
  268. Re-using a directory /home/yoesoff/beanary/homepage/beanary-homepage.
  269. Downloading the GCS plugin...
  270. Downloaded GCS plugin.
  271. Please select the region of your Cloud SQL instance (defaults to us-central1)
  272.   [0 ] northamerica-northeast1
  273.   [1 ] us-central
  274.   [2 ] us-central1
  275.   [3 ] us-east1
  276.   [4 ] us-east4
  277.   [5 ] us-west1
  278.   [6 ] us-west2
  279.   [7 ] southamerica-east1
  280.   [8 ] europe-north1
  281.   [9 ] europe-west1
  282.   [10] europe-west2
  283.   [11] europe-west3
  284.   [12] europe-west4
  285.   [13] asia-east1
  286.   [14] asia-northeast1
  287.   [15] asia-south1
  288.   [16] asia-southeast1
  289.   [17] australia-southeast1
  290.  > 16
  291. Using db_region asia-southeast1
  292. Please enter project_id (required): beanary_homepage
  293. Please enter db_instance (required): ^C
  294. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  295. ╰─➤  ls                                                                                                                                                            130
  296. beanary-homepage  composer.json  composer.lock  vendor
  297. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  298. ╰─➤  php vendor/bin/wp-gae update ./beanary-homepage
  299. Re-using a directory /home/yoesoff/beanary/homepage/./beanary-homepage.
  300. Please select the region of your Cloud SQL instance (defaults to us-central1)
  301.   [0 ] northamerica-northeast1
  302.   [1 ] us-central
  303.   [2 ] us-central1
  304.   [3 ] us-east1
  305.   [4 ] us-east4
  306.   [5 ] us-west1
  307.   [6 ] us-west2
  308.   [7 ] southamerica-east1
  309.   [8 ] europe-north1
  310.   [9 ] europe-west1
  311.   [10] europe-west2
  312.   [11] europe-west3
  313.   [12] europe-west4
  314.   [13] asia-east1
  315.   [14] asia-northeast1
  316.   [15] asia-south1
  317.   [16] asia-southeast1
  318.   [17] australia-southeast1
  319.  > 16
  320. Using db_region asia-southeast1
  321. Please enter project_id (required): beanary-homepage
  322. Please enter db_instance (required): wordpress
  323. Please enter db_name (required): wordpress
  324. Please enter db_user (defaults to 'root'): 123abcatpassworddotcom
  325. Please enter db_password (required):
  326. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  327. ╰─➤  php vendor/bin/wp-gae update ./beanary-homepage                                                                                                               130
  328. Re-using a directory /home/yoesoff/beanary/homepage/./beanary-homepage.
  329. Please select the region of your Cloud SQL instance (defaults to us-central1)
  330.   [0 ] northamerica-northeast1
  331.   [1 ] us-central
  332.   [2 ] us-central1
  333.   [3 ] us-east1
  334.   [4 ] us-east4
  335.   [5 ] us-west1
  336.   [6 ] us-west2
  337.   [7 ] southamerica-east1
  338.   [8 ] europe-north1
  339.   [9 ] europe-west1
  340.   [10] europe-west2
  341.   [11] europe-west3
  342.   [12] europe-west4
  343.   [13] asia-east1
  344.   [14] asia-northeast1
  345.   [15] asia-south1
  346.   [16] asia-southeast1
  347.   [17] australia-southeast1
  348.  > 16
  349. Using db_region asia-southeast1
  350. Please enter project_id (required): beanary-homepage
  351. Please enter db_instance (required): wordpress
  352. Please enter db_name (required): wordpress
  353. Please enter db_user (defaults to 'root'): root
  354. Please enter db_password (required):
  355. Do you want to use the same db user and password for local run? (Y/n)Y
  356. Copied necessary files with parameters.
  357. Your WordPress project has been updated at ./beanary-homepage
  358. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage  
  359. ╰─➤  cd beanary-homepage
  360. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage  
  361. ╰─➤  gcloud app deploy app.yaml cron.yaml
  362. You are creating an app for project [beanary-homepage].
  363. WARNING: Creating an App Engine application for a project is irreversible and the region
  364. cannot be changed. More information about regions is at
  365. <https://cloud.google.com/appengine/docs/locations>.
  366.  
  367. Please choose the region where you want your App Engine application
  368. located:
  369.  
  370.  [1] europe-west   (supports standard and flexible)
  371.  [2] europe-west2  (supports standard and flexible)
  372.  [3] us-east1      (supports standard and flexible)
  373.  [4] us-east4      (supports standard and flexible)
  374.  [5] asia-northeast1 (supports standard and flexible)
  375.  [6] asia-south1   (supports standard and flexible)
  376.  [7] australia-southeast1 (supports standard and flexible)
  377.  [8] southamerica-east1 (supports standard and flexible)
  378.  [9] northamerica-northeast1 (supports standard and flexible)
  379.  [10] asia-east2    (supports standard and flexible)
  380.  [11] europe-west3  (supports standard and flexible)
  381.  [12] us-west2      (supports standard and flexible)
  382.  [13] europe-west6  (supports standard and flexible)
  383.  [14] us-central    (supports standard and flexible)
  384.  [15] asia-northeast2 (supports standard and flexible)
  385.  [16] cancel
  386. Please enter your numeric choice:  5
  387.  
  388. Creating App Engine application in project [beanary-homepage] and region [asia-northeast1]....done.                                                                      
  389. Services to deploy:
  390.  
  391. descriptor:      [/home/yoesoff/beanary/homepage/beanary-homepage/app.yaml]
  392. source:          [/home/yoesoff/beanary/homepage/beanary-homepage]
  393. target project:  [beanary-homepage]
  394. target service:  [default]
  395. target version:  [20200215t103802]
  396. target url:      [http://beanary-homepage.appspot.com]
  397.  
  398.  
  399. Configurations to update:
  400.  
  401. descriptor:      [/home/yoesoff/beanary/homepage/beanary-homepage/cron.yaml]
  402. type:            [cron jobs]
  403. target project:  [beanary-homepage]
  404.  
  405.  
  406. Do you want to continue (Y/n)?  y
  407.  
  408. Beginning deployment of service [default]...
  409. Created .gcloudignore file. See `gcloud topic gcloudignore` for details.
  410. ╔════════════════════════════════════════════════════════════╗
  411. ╠═ Uploading 1904 files to Google Cloud Storage             ═╣
  412. ╚════════════════════════════════════════════════════════════╝
  413. File upload done.
  414. Updating service [default]...failed.                                                                                                                                    
  415. ERROR: (gcloud.app.deploy) Error Response: [7] Access Not Configured. Cloud Build has not been used in project beanary-homepage before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudbuild.googleapis.com/overview?project=beanary-homepage then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
  416. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage  
  417. ╰─➤  gcloud app deploy app.yaml cron.yaml                                                                                                                            1
  418. Services to deploy:
  419.  
  420. descriptor:      [/home/yoesoff/beanary/homepage/beanary-homepage/app.yaml]
  421. source:          [/home/yoesoff/beanary/homepage/beanary-homepage]
  422. target project:  [beanary-homepage]
  423. target service:  [default]
  424. target version:  [20200215t104748]
  425. target url:      [http://beanary-homepage.appspot.com]
  426.  
  427.  
  428. Configurations to update:
  429.  
  430. descriptor:      [/home/yoesoff/beanary/homepage/beanary-homepage/cron.yaml]
  431. type:            [cron jobs]
  432. target project:  [beanary-homepage]
  433.  
  434.  
  435. Do you want to continue (Y/n)?  Y
  436.  
  437. Beginning deployment of service [default]...
  438. ╔════════════════════════════════════════════════════════════╗
  439. ╠═ Uploading 0 files to Google Cloud Storage                ═╣
  440. ╚════════════════════════════════════════════════════════════╝
  441. File upload done.
  442. Updating service [default]...done.                                                                                                                                      
  443. Setting traffic split for service [default]...done.                                                                                                                      
  444. Deployed service [default] to [http://beanary-homepage.appspot.com]
  445. Updating config [cron]...done.                                                                                                                                          
  446.  
  447. Cron jobs have been updated.
  448.  
  449. Visit the Cloud Platform Console Task Queues page to view your queues and cron jobs.
  450. https://console.cloud.google.com/appengine/taskqueues/cron?project=beanary-homepage
  451.  
  452.  
  453. You can stream logs from the command line by running:
  454.   $ gcloud app logs tail -s default
  455.  
  456. To view your application in the web browser run:
  457.   $ gcloud app browse
  458. ╭─yoesoff@yoesoff-ThinkPad-X220 ~/beanary/homepage/beanary-homepage  
  459. ╰─➤
Advertisement
Add Comment
Please, Sign In to add comment