openwrt / openwrt/asu

Invalid argument (22)

Open
#380 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
450
Forks
111
PR merge metrics
No merged PRs in 30d

Description

I've setup an asu server in docker on a clean ubuntu VM. I does not work and I have no idea why, no errors in console output when the five containers are started. Update: It looks like the same error occurs on sysupgrade.openwrt.org server.

Command and error:

auc (0.2.5-2)
Server:    http://192.168.3.208:8000/
Running:   22.03.0-rc6 r19590-042d558536 on mediatek/mt7622 (linksys,e8450-ubi)
Invalid argument (22)

Console output docker:

Attaching to asu-janitor-1, asu-redis-1, asu-server-1, asu-webserver-1, asu-worker-1
asu-redis-1      | 1:C 16 Aug 2022 16:15:28.472 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
asu-redis-1      | 1:C 16 Aug 2022 16:15:28.472 # Redis version=7.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
asu-redis-1      | 1:C 16 Aug 2022 16:15:28.472 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.473 * monotonic clock: POSIX clock_gettime
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.481 * Running mode=standalone, port=6379.
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.481 # Server initialized
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.481 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.482 * Loading RDB produced by version 7.0.4
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.482 * RDB age 6 seconds
asu-redis-1      | 1:M 16 Aug 2022 16:15:28.482 * RDB memory usage when created 65.50 Mb
asu-webserver-1  | {"level":"info","ts":1660666528.5816066,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
asu-webserver-1  | {"level":"info","ts":1660666528.6116638,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
asu-webserver-1  | {"level":"warn","ts":1660666528.6222928,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
asu-webserver-1  | {"level":"info","ts":1660666528.6234763,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000307c70"}
asu-webserver-1  | {"level":"info","ts":1660666528.6279356,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
asu-webserver-1  | {"level":"info","ts":1660666528.6314194,"logger":"tls","msg":"finished cleaning storage units"}
asu-webserver-1  | {"level":"info","ts":1660666528.6421046,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
asu-webserver-1  | {"level":"info","ts":1660666528.644257,"msg":"serving initial configuration"}
asu-redis-1      | 1:M 16 Aug 2022 16:15:29.882 * Done loading RDB, keys loaded: 1402, keys expired: 0.
asu-redis-1      | 1:M 16 Aug 2022 16:15:29.882 * DB loaded from disk: 1.400 seconds
asu-redis-1      | 1:M 16 Aug 2022 16:15:29.882 * Ready to accept connections
asu-worker-1     | 16:15:31 Worker rq:worker:a1dc5aa61bb24ce1bcc0b866b58d34c5: started, version 1.11.0
asu-worker-1     | 16:15:31 Subscribing to channel rq:pubsub:a1dc5aa61bb24ce1bcc0b866b58d34c5
asu-worker-1     | 16:15:31 *** Listening on default...
asu-server-1     | [2022-08-16 16:15:32 +0000] [8] [INFO] Starting gunicorn 20.1.0
asu-server-1     | [2022-08-16 16:15:32 +0000] [8] [INFO] Listening at: http://0.0.0.0:8000 (8)
asu-server-1     | [2022-08-16 16:15:32 +0000] [8] [INFO] Using worker: sync
asu-server-1     | [2022-08-16 16:15:32 +0000] [9] [INFO] Booting worker with pid: 9
asu-janitor-1    | [2022-08-16 16:15:44,360] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/mxs/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:15:47,685] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/at91/sama5d2/profiles.json
asu-janitor-1    | [2022-08-16 16:15:47,800] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/at91/sama5d4/profiles.json
asu-janitor-1    | [2022-08-16 16:15:48,176] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/at91/legacy/profiles.json
asu-janitor-1    | [2022-08-16 16:15:48,776] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/at91/sama5d3/profiles.json
asu-janitor-1    | [2022-08-16 16:15:49,121] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/gemini/raidsonic/profiles.json
asu-janitor-1    | [2022-08-16 16:15:49,241] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/gemini/wiligear/profiles.json
asu-janitor-1    | [2022-08-16 16:15:49,366] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/octeontx/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:15:50,932] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/malta/be/profiles.json
asu-janitor-1    | [2022-08-16 16:15:51,048] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/malta/le64/profiles.json
asu-janitor-1    | [2022-08-16 16:15:51,160] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/malta/be64/profiles.json
asu-janitor-1    | [2022-08-16 16:15:51,276] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/malta/le/profiles.json
asu-janitor-1    | [2022-08-16 16:15:52,821] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/mpc85xx/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:15:55,300] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/realtek/rtl931x/profiles.json
asu-janitor-1    | [2022-08-16 16:15:55,648] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/armvirt/32/profiles.json
asu-janitor-1    | [2022-08-16 16:15:55,760] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/armvirt/64/profiles.json
asu-janitor-1    | [2022-08-16 16:16:00,480] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/lantiq/ase/profiles.json
asu-janitor-1    | [2022-08-16 16:16:00,859] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/lantiq/xway_legacy/profiles.json
asu-janitor-1    | [2022-08-16 16:16:01,439] WARNING in janitor: Couldn't download https://downloads.openwrt.org/snapshots/targets/layerscape/armv8_32b/profiles.json
asu-janitor-1    | [2022-08-16 16:16:15,551] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/mxs/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:16:19,744] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/octeontx/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:16:21,119] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/malta/be/profiles.json
asu-janitor-1    | [2022-08-16 16:16:23,191] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/imx/cortexa7/profiles.json
asu-janitor-1    | [2022-08-16 16:16:24,955] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/realtek/rtl931x/profiles.json
asu-janitor-1    | [2022-08-16 16:16:25,312] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/armvirt/32/profiles.json
asu-janitor-1    | [2022-08-16 16:16:25,428] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/armvirt/64/profiles.json
asu-janitor-1    | [2022-08-16 16:16:29,927] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/lantiq/ase/profiles.json
asu-janitor-1    | [2022-08-16 16:16:30,307] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/22.03.0-rc6/targets/lantiq/xway_legacy/profiles.json
asu-janitor-1    | [2022-08-16 16:16:44,787] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/mxs/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:16:48,796] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/octeontx/generic/profiles.json
asu-janitor-1    | [2022-08-16 16:16:50,100] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/malta/be/profiles.json
asu-janitor-1    | [2022-08-16 16:16:53,284] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/armvirt/32/profiles.json
asu-janitor-1    | [2022-08-16 16:16:53,399] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/armvirt/64/profiles.json
asu-janitor-1    | [2022-08-16 16:16:57,792] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/lantiq/ase/profiles.json
asu-janitor-1    | [2022-08-16 16:16:58,151] WARNING in janitor: Couldn't download https://downloads.openwrt.org/releases/21.02.3/targets/lantiq/xway_legacy/profiles.json

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the five Docker containers and the shown auc 0.2.5-2 command, then compare the server, worker, janitor, and container logs with the request to sysupgrade.openwrt.org. Done means identifying why auc reports “Invalid argument (22)” and confirming that the same upgrade request completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.