質問編集履歴

4

質問更新

2019/01/21 07:07

投稿

raccoondog
raccoondog

スコア77

test CHANGED
File without changes
test CHANGED
@@ -513,3 +513,59 @@
513
513
  dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$
514
514
 
515
515
  ```
516
+
517
+
518
+
519
+ ※※2019/1/21 ■app.goを編集し再実行
520
+
521
+ ```ここに言語を入力
522
+
523
+ dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$ gcloud app deploy app.yaml
524
+
525
+ Services to deploy:
526
+
527
+
528
+
529
+ descriptor: [/home/dwhtest01/cron/app.yaml]
530
+
531
+ source: [/home/dwhtest01/cron]
532
+
533
+ target project: [fluid-emissary-216806]
534
+
535
+ target service: [default]
536
+
537
+ target version: [20190121t160337]
538
+
539
+ target url: [https://fluid-emissary-216806.appspot.com]
540
+
541
+
542
+
543
+
544
+
545
+ Do you want to continue (Y/n)? y
546
+
547
+
548
+
549
+ Beginning deployment of service [default]...
550
+
551
+ ??????????????????????????????????????????????????????????????
552
+
553
+ ?? Uploading 1 file to Google Cloud Storage ??
554
+
555
+ ??????????????????????????????????????????????????????????????
556
+
557
+ File upload done.
558
+
559
+ Updating service [default]...failed.
560
+
561
+ ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
562
+
563
+ /work_dir/app.go:110:22: it declared and not used
564
+
565
+ 2019/01/20 23:03:57 go-app-builder: build timing: 108×compile (24.657s total), 0×link (0s total)
566
+
567
+ 2019/01/20 23:03:57 go-app-builder: failed running compile: exit status 2
568
+
569
+
570
+
571
+ ```

3

状況更新

2019/01/21 07:07

投稿

raccoondog
raccoondog

スコア77

test CHANGED
File without changes
test CHANGED
File without changes

2

状況更新

2019/01/15 03:02

投稿

raccoondog
raccoondog

スコア77

test CHANGED
File without changes
test CHANGED
@@ -439,3 +439,77 @@
439
439
  dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$
440
440
 
441
441
  ```
442
+
443
+
444
+
445
+ ※2019/1/11 ■Go用Google API拡張モジュールインストール後にリトライ、再びエラー発生
446
+
447
+
448
+
449
+ ```
450
+
451
+ $ go get -u github.com/googleapis/gax-go
452
+
453
+ $ go get -u google.golang.org/api/bigquery/v2
454
+
455
+ $ go get -u gopkg.in/yaml.v2
456
+
457
+ $ go get -u go.opencensus.io/trace
458
+
459
+ $ go get -u fmt
460
+
461
+ $ go get -u google.golang.org/api/iterator
462
+
463
+
464
+
465
+ dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$ gcloud app deploy app.yaml
466
+
467
+ Services to deploy:
468
+
469
+
470
+
471
+ descriptor: [/home/dwhtest01/cron/app.yaml]
472
+
473
+ source: [/home/dwhtest01/cron]
474
+
475
+ target project: [fluid-emissary-216806]
476
+
477
+ target service: [default]
478
+
479
+ target version: [20190111t105305]
480
+
481
+ target url: [https://fluid-emissary-216806.appspot.com]
482
+
483
+
484
+
485
+
486
+
487
+ Do you want to continue (Y/n)? y
488
+
489
+
490
+
491
+ Beginning deployment of service [default]...
492
+
493
+ ??????????????????????????????????????????????????????????????
494
+
495
+ ?? Uploading 1 file to Google Cloud Storage ??
496
+
497
+ ??????????????????????????????????????????????????????????????
498
+
499
+ File upload done.
500
+
501
+ Updating service [default]...failed.
502
+
503
+ ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
504
+
505
+ /work_dir/app.go:50:17: undefined: os
506
+
507
+ 2019/01/10 17:53:23 go-app-builder: build timing: 108×compile (24.98s total), 0×link (0s total)
508
+
509
+ 2019/01/10 17:53:23 go-app-builder: failed running compile: exit status 2
510
+
511
+
512
+
513
+ dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$
514
+
515
+ ```

1

状況更新

2019/01/11 02:18

投稿

raccoondog
raccoondog

スコア77

test CHANGED
File without changes
test CHANGED
@@ -403,3 +403,39 @@
403
403
  dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$
404
404
 
405
405
  ```
406
+
407
+
408
+
409
+ ※2019/01/10
410
+
411
+ ```
412
+
413
+ dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$ gcloud app deploy app.yaml
414
+
415
+ ERROR: (gcloud.app.deploy) Staging command [/google/google-cloud-sdk/platform/google_appengine/go-app-stager /home/dwhtest01/cron/app.yaml /home/dwhtest01/cron /tmp/tmpd9Qyvc/tmpN8ZvfG] failed with return code [1].
416
+
417
+
418
+
419
+ ------------------------------------ STDOUT ------------------------------------
420
+
421
+ ------------------------------------ STDERR ------------------------------------
422
+
423
+ 2019/01/10 08:46:45 staging for go1.9
424
+
425
+ 2019/01/10 08:46:45 Staging Standard app: failed analyzing /home/dwhtest01/cron: cannot find package "google.golang.org/api/iterator" in any of:
426
+
427
+ ($GOROOT not set)
428
+
429
+ /home/dwhtest01/gopath/src/google.golang.org/api/iterator (from $GOPATH)
430
+
431
+ /google/gopath/src/google.golang.org/api/iterator
432
+
433
+ GOPATH: /home/dwhtest01/gopath:/google/gopath
434
+
435
+ --------------------------------------------------------------------------------
436
+
437
+
438
+
439
+ dwhtest01@cloudshell:~/cron (fluid-emissary-216806)$
440
+
441
+ ```