Today, I decided was a good time to upgrade my production server from 1.7 to 2.0.0
Everything went smooth, except for the deployments container not starting.
The logs show:
mender-deployments_1 | time=“2019-05-25T09:57:32Z” level=info msg=“DB migrated to version 1.2.1” db=deployment_service file=migrator_simple.go func=“migrate.(*SimpleMigrator).Apply” line=140
mender-deployments_1 | RequestError: send request failed
mender-deployments_1 | caused by: Put https://[domain]:9000/mender-artifact-storage: dial tcp 172.24.0.7:9000: connect: connection refused
mender-deployments_1 | time=“2019-05-25T09:58:33Z” level=info msg=“Deployments Service, version unknown starting up”
mender-deployments_1 | time=“2019-05-25T09:58:33Z” level=info msg=“automigrate is ON, will apply migrations” file=migrations.go func=migrations.Migrate line=48
mender-deployments_1 | time=“2019-05-25T09:58:33Z” level=info msg=“migrating deployment_service” file=migrations.go func=migrations.MigrateSingle line=70
mender-deployments_1 | time=“2019-05-25T09:58:33Z” level=info msg=“migration to version 1.2.1 skipped” db=deployment_service file=migrator_simple.go func=“migrate.(*SimpleMigrator).Apply” line=125
mender-deployments_1 | time=“2019-05-25T09:58:33Z” level=info msg=“DB migrated to version 1.2.1” db=deployment_service file=migrator_simple.go func=“migrate.(*SimpleMigrator).Apply” line=140
mender-deployments_1 | RequestError: send request failed
mender-deployments_1 | caused by: Put https://[domain]:9000/mender-artifact-storage: dial tcp 172.24.0.7:9000: connect: connection refused
The ip address 172.24.0.7 points to the storage-proxy.
Storage proxy should write access logs to stdout, so, if you don’t see any logs there it means it’s something wrong with network connection and dial tcp 172.24.0.7:9000: connect: connection refused log message says the same. Do you have firewalls configured?
Further I would check from host system if storage proxy replays:
$ telnet 127.0.0.1 9000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
And it sounds weird to me that you don’t have any log entries in storage proxy logs because when nginx starts it should write at least those messages about DOWNLOAD_SPEED and MAX_CONNECTIONS.