Which version of Drone are you using? I ask because that error message does not coming from the Drone codebase (maybe it is coming from the Docker daemon?). Also can you confirm this is your full yaml file? If not, please post the full configuration.
That is a very old distribution that is no longer supported (I believe 0.4 and we are now on 0.8). Did you find a link to that on our websites (if so I need to remove). The current 0.8 documentation is not compatible with version 0.4 which is likely why you are getting errors.
Unfortunately that article is very outdated and Digital Ocean does not keep those articles up-to-date (we have no control over it). I recommend installing using the official docs at https://docs.drone.io
Please also see the official docs for how to create the .drone.yml, because the yaml document you posted above is invalid (the yaml changed from 0.4 to 0.8). For example, there is no script attribute.
The drone docs aren’t very clear to me. I am suppose to create the docker-compose.yaml file and fill it, set the necessary variables and then what? I tried running docker-compose up but I get:
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
I actually solved that. But running it gives me: INFO: 2018/08/20 19:30:08 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp xxxxxxxx:9000: i/o timeout"; Reconnecting to {xxxxxxxx:9000 <nil>}
This is my config:
actually solved that. But running it gives me: INFO: 2018/08/20 19:30:08 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp xxxxxxxx:9000: i/o timeout"; Reconnecting to {xxxxxxxx:9000 <nil>}
This is my config:
You should not change the server address when you configure the agent. The default value in the documentation works as-is, and does not need to be modified.
this indicates the DRONE_SECRET you are passing to the server and agent do not match. This is a shared secret, and the values must match exactly. Please see the following code if you continue to experience issues:
Oh… lol. I just noticed a small typo
It doesn’t throw any errors anymore. How would I go about making the app work on the port 8080, do I change the DRONE_SERVER=drone-server:9000 line?
EDIT: Nope…
port 8080 is for http requests and port 9000 is for grpc requests. While it is possible (under some circumstances) to combine the two, drone does not support this.