I have installed Mender on my own server, I create an image from a raspbian one and manage to accept device on server.
However if I try to Decommission device it returns me following error
There was a problem decommissioning the device: cannot DELETE /api/management/v2/devauth/devices/5ca6332f6a029b000101d59e (500)… [Request ID: 7aab2882]
Is there something wrong with permissions?
Best regards
root@VPS-CHECKPT-RASP:/usr/local/bin/mender-server-1.7/production# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
87fa5e48e757 mendersoftware/api-gateway:1.6.0 "/entrypoint.sh" 11 minutes ago Up About a minute 0.0.0.0:443->443/tcp menderproduction_mender-api-gateway_1
1e7dd5a0b058 mendersoftware/inventory:1.5.0 "/usr/bin/inventory …" 11 minutes ago Up About a minute 8080/tcp menderproduction_mender-inventory_1
602543fa3eb1 mendersoftware/deployments:1.6.0 "/entrypoint.sh --co…" 11 minutes ago Restarting (4) 18 seconds ago menderproduction_mender-deployments_1
909fafbf014a mendersoftware/deviceauth:1.7.0 "/usr/bin/deviceauth…" 11 minutes ago Up About a minute 8080/tcp menderproduction_mender-device-auth_1
63c942151f61 mendersoftware/useradm:1.7.0 "/usr/bin/useradm --…" 11 minutes ago Up About a minute 8080/tcp menderproduction_mender-useradm_1
f6cdebded239 mendersoftware/mender-conductor:1.2.0 "/srv/start_conducto…" 11 minutes ago Up 4 minutes 8080/tcp menderproduction_mender-conductor_1
a1f6aa69492e openresty/openresty:1.13.6.2-0-alpine "/usr/local/openrest…" 11 minutes ago Up About a minute 0.0.0.0:9000->9000/tcp menderproduction_storage-proxy_1
d3e4fe5f6016 mendersoftware/gui:1.7.0 "/entrypoint.sh" 11 minutes ago Up 4 minutes 80/tcp menderproduction_mender-gui_1
4dfe597fed3a minio/minio:RELEASE.2018-09-25T21-34-43Z "/usr/bin/docker-ent…" 11 minutes ago Up About a minute (healthy) 9000/tcp menderproduction_minio_1
b5b224d67bfe redis:3.2.11-alpine "/redis/entrypoint.sh" 11 minutes ago Up 4 minutes 6379/tcp menderproduction_mender-redis_1
76b8d661c1be mendersoftware/elasticsearch:2.4 "/docker-entrypoint.…" 11 minutes ago Up 4 minutes 9200/tcp, 9300/tcp menderproduction_mender-elasticsearch_1
68035912c932 mongo:3.4 "docker-entrypoint.s…" 11 minutes ago Up About a minute 27017/tcp menderproduction_mender-mongo_1
Error log from docker logs command
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
time="2019-04-09T07:16:30Z" level=info msg="Deployments Service, version unknown starting up" file=main.go func=main.cmdServer line=103
time="2019-04-09T07:16:31Z" level=info msg="automigrate is ON, will apply migrations" file=migrations.go func=migrations.Migrate line=48
time="2019-04-09T07:16:31Z" level=info msg="migrating deployment_service" file=migrations.go func=migrations.MigrateSingle line=70
time="2019-04-09T07:16:31Z" level=info msg="migration to version 1.2.1 skipped" db="deployment_service" file="migrator_simple.go" func="migrate.(*SimpleMigrator).Apply" line=125
time="2019-04-09T07:16:31Z" level=info msg="DB migrated to version 1.2.1" db="deployment_service" file="migrator_simple.go" func="migrate.(*SimpleMigrator).Apply" line=140
time="2019-04-09T07:16:31Z" level=info msg="Deployments Service, version unknown starting up" file=main.go func=main.cmdServer line=123
InvalidAccessKeyId: The access key ID you provided does not exist in our records.
status code: 403, request id: 1593BD14B331CAD8, host id:
In order to user Update Modules available on 2.0 I switch back from 1.7 to 2.0.
I have a couple of problem with that:
Accept device returns me an error There was a problem updating the device authorization status: cannot PUT /api/management/v2/devauth/devices/5caf32b95f919b00018f0c70/auth/5caf32b95f919b00018f0c71/status (500)... [Request ID: 0574f6c9]
I think it is related also to Decommission issue
elasticsearch docker continuosly restart ./run ps
`
Name Command State Ports
menderproduction_mender-api-gateway_1 /entrypoint.sh Up 0.0.0.0:443->443/tcp
menderproduction_mender-conductor_1 /srv/start_conductor.sh Up 8080/tcp, 8090/tcp
menderproduction_mender-deployments_1 /entrypoint.sh --config /e … Up 8080/tcp
menderproduction_mender-device-auth_1 /usr/bin/deviceauth --conf … Up 8080/tcp
menderproduction_mender-elasticsearch_1 /docker-entrypoint.sh elas … Restarting
menderproduction_mender-gui_1 /entrypoint.sh Up 80/tcp
menderproduction_mender-inventory_1 /usr/bin/inventory --confi … Up 8080/tcp
menderproduction_mender-mongo_1 docker-entrypoint.sh mongod Up 27017/tcp
menderproduction_mender-redis_1 /redis/entrypoint.sh Up 6379/tcp
menderproduction_mender-useradm_1 /usr/bin/useradm --config … Up 8080/tcp
menderproduction_minio_1 /usr/bin/docker-entrypoint … Up (healthy) 9000/tcp
menderproduction_storage-proxy_1 /usr/local/openresty/bin/o … Up 0.0.0.0:9000->9000/tcp
`
My installation is a brand new one.
So containers come from ./run pull command.
If it is possible to retrieve more logs from containers in order to debug this issue I’ll e glad to retrieve them and post to this conversation.
Looks like your elasticsearch dies because of lack of memory and conductor doesn’t start because of unavailable elasticsearch. It tries to allocate 2Gb of RAM (from provided elasticsearch log: jvm_args: -Xms2g -Xmx2g) but you have only 0.96Gb available (MemTotal: 1015716 kB).
You need to change Xms and Xmx JVM params to for instance 512Mb or increase RAM on your server.