tsuru / platforms

Official platforms for the tsuru PaaS.
BSD 3-Clause "New" or "Revised" License
76 stars 70 forks source link

Latest go platform installing go 1.9.3 is not stable #68

Open jnana-rb opened 6 years ago

jnana-rb commented 6 years ago

Latest go platform fails with the error sed: can't read : No such file or directory.

git push tsuru master
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 438 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: HEAD is now at cedbac7... Initail commit
remote: ---- Pulling image to node ----
remote: latest: Pulling from tsuru/go
remote: Digest: sha256:43fd10289d77fcbcd0cdab10377f51b8605fe5734efda3d561d66d32836b5b95
remote: Status: Image is up to date for 192.168.99.4:5000/tsuru/go:latest
remote: /bin/sh: 27: source: not found
remote: go version go1.9.3 linux/amd64
remote: go version go1.9.3 linux/amd64
remote: Installing Go stable...
remote: sed: can't read : No such file or directory
remote: Procfile not found. Using default Procfile
remote: go build -o tsuru-app
remote:
remote: ---- Building image ----
remote:  ---> Sending image to repository (386.57MB)
remote:  ---> Cleaning up
remote: /bin/sh: 27: source: not found
remote: ---- Running build hooks ----
remote:
remote: ---- Deploying application image ----
remote:  ---> Sending image to repository (0.00MB)
remote:  ---> Cleaning up
remote:
remote: ---- Starting 1 new unit [web: 1] ----
remote:  ---> Started unit 8c55272c2a [web]
remote:
remote: ---- Binding and checking 1 new unit ----
remote:  ---> Bound and checked unit 8c55272c2a [web]
remote:
remote: ---- Adding routes to new units ----
remote:  ---> Added route to unit 8c55272c2a [web]
remote:
remote: ---- Setting router healthcheck (Path: /) ----
remote:
remote: OK

Because of this the application build doesn't go through, with the following error

2018-02-13 14:45:38 +0530 [tsuru]: Logs initialization
2018-02-13 14:53:00 +0530 [tsuru][api]: go version go1.9.3 linux/amd64
2018-02-13 14:53:00 +0530 [tsuru][api]: go version go1.9.3 linux/amd64
2018-02-13 14:53:00 +0530 [tsuru][api]: Installing Go stable...
2018-02-13 14:53:02 +0530 [tsuru][api]: sed: can't read : No such file or directory
2018-02-13 14:53:42 +0530 [tsuru][api]: Procfile not found. Using default Procfile
2018-02-13 14:53:42 +0530 [tsuru][api]: go build -o tsuru-app
2018-02-13 14:53:43 +0530 [tsuru][api]: ---- Running build hooks ----

and it is stuck at this stage and error out finally. It is causing the build to fail and thus the following error.

2018-02-13 16:47:16 +0530 [web][8c55272c2ad6]: /bin/sh: 27: source: not found
2018-02-13 16:47:16 +0530 [web][8c55272c2ad6]: /bin/sh: 1: exec: ./tsuru-app: Permission denied
cezarsa commented 6 years ago

This might be related to both #69 and to the bug reported in travis-ci/gimme#126, as soon as it's merged I'll rebuild the platform. Meanwhile, can you try using the tsuru/go:1.1 image for the platform?