Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

V2: Error 400 when doing update #117

Closed cdupont closed 3 years ago

cdupont commented 3 years ago

I got this error while doing an update: image

mojtaba-esk commented 3 years ago

Any logs from wazigate-edge ?

cdupont commented 3 years ago

It seems that the containers disappeared:

$ docker ps
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS                   PORTS                                        NAMES
afd0f64fdbe8        waziup/wazigate-edge:latest        "sh start.sh"            6 minutes ago       Up 6 minutes (healthy)   0.0.0.0:80->80/tcp, 0.0.0.0:1883->1883/tcp   wazigate-edge
76f850180a7d        waziup/wazigate-mongo:V1.1-Beta1   "/bin/sh -c 'mkdir -…"   2 hours ago         Up 3 hours (healthy)     0.0.0.0:27017->27017/tcp                     wazigate-mongo
238b8cbd4382        waziup/wazigate-system:dev         "./wazigate-system"      4 days ago          Up 3 hours (healthy)                                                  waziup.wazigate-system
cdupont commented 3 years ago

logs from wazigate-edge:

[WWW  ] Serving from "wazigate-dashboard"
[DB   ] Dialing MongoDB at "wazigate-mongo:27017"...
[ERR  ] open log/5fbd49ac420de800069d0cd7.txt: no such file or directory
[     ] Local device ID is "0242ac120003ccde".
[Up   ] Read 1 from "/root/conf/clouds.json":
[Up   ] Cloud "default": cdupont2@//api.waziup.io/api/v2
[MQTT ] MQTT Server at ":1883".
[HTTP ] HTTP Server at ":80". Use "http://".
[WS   ] MQTT via WebSocket Server at ":80". Use "ws://".
[APP  ] Proxy `/var/run/docker.sock` GET "networks/wazigate"
[ERR  ] Auth error: signature is invalid
[HTTP ] 10.42.0.1:52438 401 GET "/sys/uptime" s:0
[HTTP ] 10.42.0.1:52438 200 POST "/auth/token" s:45
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[HTTP ] 10.42.0.1:52438 200 GET "/clouds" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "containers/wazigate-edge/json"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-lora/json"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-system/json"
[HTTP ] 10.42.0.1:52438 200 GET "/apps" s:0
[MQTT ] "dashboard_18701a2b" Connected Protocol 0x4
[HTTP ] 10.42.0.1:52438 200 GET "/device/id" s:0
[MQTT ] "dashboard_18701a2b" Subscribed "devices" qos:0
[HTTP ] 10.42.0.1:52444 200 GET "/devices" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "containers/wazigate-edge/json"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-lora/json"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-system/json"
[MQTT ] "dashboard_18701a2b" Unsubscribed "devices"
[HTTP ] 10.42.0.1:52438 200 GET "/apps" s:0
[APP  ] >> "waziup.wazigate-lora" GET /undefined
[APP  ] << 404 404 Not Found (19 B)
[HTTP ] 10.42.0.1:52438 404 GET "/apps/waziup.wazigate-lora/undefined" s:0
[Exec  ]: Host Command [ cd ../ && CNTS=$(sudo docker-compose ps -q) && for cId in $CNTS; do cImage=$(sudo docker ps --format '{{.Image}}' -f id=${cId}); echo $cImage; done; ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/wazigate-lora/json"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/wazigate-system:dev/json"
[MQTT ] "chirpstack-network-serve" Connected Protocol 0x4
[MQTT ] "chirpstack-network-serve" Subscribed "gateway/+/event/+" qos:0
[MQTT ] "chirpstack-application-s" Connected Protocol 0x4
[MQTT ] "chirpstack-application-s" Subscribed "gateway/0000000000000000/command/#" qos:0
[MQTT ] "chirpstack-application-s" Connected Protocol 0x4
[MQTT ] "chirpstack-application-s" Subscribed "application/+/device/+/tx" qos:0
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/wazigate-edge:latest/json"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/wazigate-mongo:V1.1-Beta1/json"
[APP  ] Proxy `/var/run/docker.sock` GET "images/waziup/wazigate-system:dev/json"
[HTTP ] 10.42.0.1:52446 200 GET "/update/waziup.wazigate-system" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "images/waziup/wazigate-lora/json"
[HTTP ] 10.42.0.1:52438 200 GET "/update/wazigate-edge" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/chirpstack-network-server:3.8.0/json"
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "images/waziup/chirpstack-network-server:3.8.0/json"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/chirpstack-application-server:3.9.0/json"
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/stats" s:50 r:false q:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "images/waziup/chirpstack-application-server:3.9.0/json"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/waziup/chirpstack-gateway-bridge:3.7.1/json"
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "images/waziup/chirpstack-gateway-bridge:3.7.1/json"
[APP  ] Proxy `/var/run/docker.sock` GET "distribution/postgres:9.6-alpine/json"
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[APP  ] Proxy `/var/run/docker.sock` GET "images/postgres:9.6-alpine/json"
[HTTP ] 10.42.0.1:52444 200 GET "/update/waziup.wazigate-lora" s:0
[WWW  ] (127.0.0.1:45650) 200 GET "/"
[HTTP ] 10.42.0.1:52438 200 POST "/auth/retoken" s:2
[HTTP ] 10.42.0.1:52444 200 GET "/sys/uptime" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/stats" s:48 r:false q:0
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/up" s:102 r:false q:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/up" s:100 r:false q:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/up" s:100 r:false q:0
[MQTT ] "chirpstack-application-s" Message "application/55/device/aa555a002601143f/rx" s:395 r:false q:0
[MQTT ] "chirpstack-network-serve" Message "gateway/0000000000000000/command/down" s:95 r:false q:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/ack" s:31 r:false q:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[WWW  ] (127.0.0.1:45662) 200 GET "/"
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[MQTT ] "chirpstack-application-s" Message "gateway/0000000000000000/event/stats" s:56 r:false q:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[WWW  ] (127.0.0.1:45676) 200 GET "/"
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 10.42.0.1:52438 200 GET "/sys/uptime" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[Exec  ]: Host Command [ timeout 3 curl -Is https://hub.docker.com/ | head -n 1 | awk '{print $2}' ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-lora/json"
[Exec  ]: Host Command [ cd "../apps/waziup/wazigate-lora" && IMG=$(docker-compose images -q) && docker-compose rm -fs && docker rmi -f $IMG; rm ./package.json; ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 172.18.0.6:56376 200 GET "/devices?meta=lorawan" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[MQTT ] "chirpstack-network-serve" Unsubscribed "gateway/+/event/+"
[MQTT ] "chirpstack-application-s" Err EOF
[MQTT ] "chirpstack-network-serve" Err EOF
[MQTT ] "chirpstack-application-s" Err EOF
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/sys/uptime" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[APP  ] DELETE App: waziup.wazigate-lora
    Going to remove waziup.wazigate-lora.forwarders, waziup.wazigate-lora, waziup.wazigate-lora.chirpstack-network-server, waziup.wazigate-lora.chirpstack-application-server, waziup.wazigate-lora.chirpstack-gateway-bridge, redis, postgresql
Deleted: sha256:231a138977e8ce0487cc7af540806beaeb18200641509bdf76a955a48bb49572
Deleted: sha256:09f3c478d140044322da441d685ddae633d56a6294df3056a0eba007c8e67419
Deleted: sha256:c45b93d5b834d4d7951538c315dbded0280072b190acbe35536124e2be4f02d7
Deleted: sha256:a7b85f6d9a59427c5dd848883d8a11d6bf00fc1e1f802a09881d8a8460ebbb02
Deleted: sha256:30d5de2e79e9d2f75f83b0b6255719f420aec25aeccfd4307db7affc3020b595
Deleted: sha256:9bc14a0b33840cd0b40285fd2d80148106ede2ab6beaa38c90d44edccedc96eb
Deleted: sha256:ec9cb0f99026abf7568aebde524f02ea36a3a09ef72ea835d3fd23efbead94b2
Deleted: sha256:7545f0287fd17366cc625406c6a85f924f508bec2006bdb7de7bbc6efed5d86a
Deleted: sha256:0a22fd2bddcf52f4a199f2906f49e2ab46bca3028216e1ba38063caeedd59de2
Deleted: sha256:98217e63e2cc31fec502220b40fb6b38a54600b55c58fde7f2a809d2337111e8
Deleted: sha256:266c4e7dd59efdff0c593a478b5b096dc826392fb6973f59bfa5872c8b12f88c
Untagged: waziup/chirpstack-gateway-bridge:3.7.1
Untagged: waziup/chirpstack-gateway-bridge@sha256:11113b9d4b1e8a8977235ddbabcec06fc96e68642751b04c8f3e89373e7c14bb
Deleted: sha256:94a3d0b1d11e73a7e9382633db26d3310ad3fbfec5ea6fc07cea54add6ded0f9
Deleted: sha256:dc2fe022644741f73b3fcfdb1d192444c9ede888610a8a51486d0b799d68b71f
Untagged: waziup/wazigate-lora-forwarders:latest
Untagged: waziup/wazigate-lora-forwarders@sha256:e812aac7bf9e43539a31d9d8fd5fffa63dd2db45f8e727ec607b75b0a3337055
Deleted: sha256:09dca96e078ba54da6e7524ec3e7a130831d3ee67e4668703b9e1fbdc76d40ec
Deleted: sha256:f6b9d071ca1ed31cf1e2955cce98a75f90f87268167096be0595094d3d362943
Deleted: sha256:bf5085d4cd165f8ff15021cd34989b9bd6b7500574f6166a2ff3763e958274f0
Deleted: sha256:b2f27c73fec099eb7ff66bb79e274af967a27aa662df5d2f3243e66149441b75
Deleted: sha256:9f4d825f6b60f24a5667c984e5068b6a6f4929ac6805297e2f929654555135b6
Deleted: sha256:6084f968c170de783045cf33fef4b7a90249474ca53973aa96ee6c90b2eeee31
Deleted: sha256:d2d7ace4dc176595de4cde6288a7209329036fea07bfa93762f82372b36755cb
Deleted: sha256:94beb74f6973f4078c05bb73940fbbf55003cf87c07026f7aa8cecc641922ccf
Deleted: sha256:76dca7e3ced149eb0c39adebb73a0802c1fa27366362730b72bf6e722772419a
Deleted: sha256:1c7d70bab52584609e6e7851c14f8c8217411413410d6b9a648e780e39b37ad9
Untagged: postgres:9.6-alpine
Untagged: postgres@sha256:bf8b7232f66a48cda8e3e549679fddd04d91bdbab4d728180e3dddd05a881d3d
Deleted: sha256:64969ad89255630ecd8302a86d3682899e4a62a17af13c7458cb08a946391ebc
Deleted: sha256:82c4e23b8ed0b664531d39388cf2182aecf04e11036fcd301607cfe865040640
Deleted: sha256:d01af79576fa10b56e5b28b337585a304e3097e7fd0d2aff44b956372c880917
Deleted: sha256:af09bfb6a16f87ff6aafc8d97593376121c862c1f1eb3636517508ab4edbc3f0
Deleted: sha256:1f3f0a7fe5c49d6de380506554fff6cb4bac9e829fb71c355443b4a0e8c56932
Deleted: sha256:a1e3543576fdee9b2aad2325010b733adcbc86a17d5194ce0d44080ba6f66cd7
Deleted: sha256:735ef1169ae59e53a35ce6a0ec9548de17bc71c2448e7f5e46795a4b99d1c5b7
Deleted: sha256:9f46809af8547392e120648a81a28e764d576c225eb2306a8e7fa02f4c607706
Deleted: sha256:f2152ea483284192af0aa41640a338d0427fd6019fb4841bf19ebf47c7971475
Untagged: waziup/chirpstack-application-server:3.9.0
Untagged: waziup/chirpstack-application-server@sha256:592641bee18c2fb322bce505f1796b6c22599f27c6c322c5de4fea8729712340
Deleted: sha256:c67ffdacd50425c551f8595b14ee529364babd0b0877cffd538fd429b12106ef
Deleted: sha256:67156fe620e139180e0757e57280f1cd06bc77ff11567764c0f0a6a3445374d5
Deleted: sha256:3158c10ea3f9cc9f33f2066ad41a36540830144f26769688763ff87a0f76ce8d
Untagged: redis:5-alpine
Untagged: redis@sha256:e0256846c84d07095778890a8c481eceaca9a46a9d292a499555f40d248dfb29
Deleted: sha256:2c0a0a993ee75a9f43a77b5966688541249075eea1fb49d0af3e5c47088b9b0c
Deleted: sha256:9a5bb8c0c2668ebf553a604fd64c05f3a3f455155b30aeebe06a327970e59481
Deleted: sha256:5b0b694e19d4a21595330c606a65180be269764d690eca5bbe0bd9afdd8de78d
Deleted: sha256:37f403859cf4fc2dcc50f26ef841f50fae3e3489182f6bad99148e7c1e185ff7
Deleted: sha256:4e703319b1d0227f6813c292b017e4c003330f879373242884354e35cbfbe95f
Deleted: sha256:d28e488ab6b7186f3180a7bf8d7e8b7ad2cdf45917e2908c20fb229129ea4ab5
Untagged: waziup/chirpstack-network-server:3.8.0
Untagged: waziup/chirpstack-network-server@sha256:f37975975242a9118f467150aef2f9f7182d976929bb467f65abaef1a28f98b1
Deleted: sha256:22a28362af9183db7dc3dff420e85d186b48856108c148d83938618e5d7bca56
Deleted: sha256:befa13391b926e61287c29ec7b6901a5f9f25d8e50990c5fd4f9d9fa806e0219
Deleted: sha256:d3e1ddde60025bd8e9bb890a24b8511e24c73647b4fdad84d94a83a24613016e
Deleted: sha256:2f1fbf8a09329e4903e8c8ea1e429cce666ad39f92e2ed39ca02bf5f7db89026
[Exec  ]: Host Command [ docker pull waziup/wazigate-lora ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[WWW  ] (127.0.0.1:45692) 200 GET "/"
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[Exec  ]: Host Command [ docker create waziup/wazigate-lora ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[Exec  ]: Host Command [ mkdir -p "../apps/waziup" ;mkdir -p "../apps/waziup/wazigate-lora" ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[Exec  ]: Host Command [ docker cp 4ae0e13d84c586dab2fc7b4f925c96a1f1373067952134876f54d894c45e40a3:/index.zip ../apps/waziup/wazigate-lora/ ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[Exec  ]: Host Command [ docker rm 4ae0e13d84c586dab2fc7b4f925c96a1f1373067952134876f54d894c45e40a3 ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[Exec  ]: Host Command [ unzip -o ../apps/waziup/wazigate-lora/index.zip -d ../apps/waziup/wazigate-lora ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[Exec  ]: Host Command [ rm -f ../apps/waziup/wazigate-lora/index.zip ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[Exec  ]: Host Command [ cd "../apps/waziup/wazigate-lora" && docker-compose pull && docker-compose up -d --no-build ]
[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[HTTP ] 10.42.0.1:52444 200 GET "/sys/uptime" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/sys/uptime" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[HTTP ] 10.42.0.1:52444 200 GET "/apps/waziup.wazigate-lora?install_logs" s:0
[ERR  ] installing App update [waziup/wazigate-lora] error: Err: 400 Bad Request 
[HTTP ] 10.42.0.1:52438 400 POST "/update/waziup.wazigate-lora" s:2
[WWW  ] (127.0.0.1:45856) 200 GET "/"
[WWW  ] (127.0.0.1:45870) 200 GET "/"
[WWW  ] (127.0.0.1:45882) 200 GET "/"
[WWW  ] (127.0.0.1:45896) 200 GET "/"
[WWW  ] (127.0.0.1:45910) 200 GET "/"
[WWW  ] (127.0.0.1:45922) 200 GET "/"
[WWW  ] (127.0.0.1:45936) 200 GET "/"
[WWW  ] (127.0.0.1:45948) 200 GET "/"
[WWW  ] (127.0.0.1:45962) 200 GET "/"
[WWW  ] (127.0.0.1:45980) 200 GET "/"
[WWW  ] (127.0.0.1:45992) 200 GET "/"
[WWW  ] (127.0.0.1:46006) 200 GET "/"
mojtaba-esk commented 3 years ago

Well yes, once a new update is downloaded, we delete all the current containers of the App and its images, then we re-install the app again. so at some point the container is not responding and since the log reading procedure (black box) is being run async to the update procedure in the background in one point this happens and it is ok. we just have to keep the JS errors for the dev console.

cdupont commented 3 years ago

OK, let's hide the error?

cdupont commented 3 years ago

Problem is, once the wazigate-lora is down, the docker will not restart it automatically. I rebooted the gateway and it's still down.

cdupont commented 3 years ago

I retested, didn't see the error... Closing

cdupont commented 3 years ago

I had this again today. If I dismiss the error, the screen is blocked on "downloading". image

If I dismiss again, there is no more "system" app: image

mojtaba-esk commented 3 years ago

Can you please provide some logs?

mojtaba-esk commented 3 years ago

I got some logs on this error so when there is no docker image for a particular App on the gateway this error happens. Usually there is no way to get into this state, but when we flash a fresh ISO when LoRa App for example is installed, but the images somehow were pruned in ISO creation script while it should not. I am going to check why this happens. Here is the logs I got from the edge on updating an App generating this error:

[APP  ] Proxy `/var/run/wazigate-host.sock` POST "cmd"
[APP  ] Proxy `/var/run/docker.sock` GET "containers/waziup.wazigate-lora/json"
[ERR  ] updating app [waziup.wazigate-lora] error: App Image Name cannot be found in the inspection! 
[HTTP ] 10.42.0.1:53966 400 POST "/update/waziup.wazigate-lora" s:2
cdupont commented 3 years ago

Hi Moji, do you think this is fixed?

mojtaba-esk commented 3 years ago

I think yes I made sure the images exist on the ISO file. So when an update is initiated, this error should not appear. Did you test and see it again?

cdupont commented 3 years ago

No, it looks good... Closing