Owut: OpenWrt Upgrade Tool

:hammer: Not getting this error anymore!

Also if a previous identical image resides on the server:
:hammer: Working!...

owut download -V 24.10.0-rc5
owut download -V 24.10-SNAPSHOT

I'm not sure if it's intended?
Adding init-script, then adding --force, 2x errors occur if the image on the server contains an identical init-script...

owut download -V 24.10.0-rc5    -I /tmp/99-asu-defaults
owut download -V 24.10.0-rc5    -I /tmp/99-asu-defaults --force
owut download -V 24.10-SNAPSHOT -I /tmp/99-asu-defaults
owut download -V 24.10-SNAPSHOT -I /tmp/99-asu-defaults --force
Request:
  Version 24.10-SNAPSHOT r28308-c06d4df974 (kernel 6.6.69)
  Included init script '/tmp/99-asu-defaults' (1938 bytes) in build request
Request hash:
  23481b46d8c71ee25c6082320f79f19afb2f8e58054de79827fb7971458b4fca
--
Status:   queued - 0 ahead of you
Progress:   0s total =   0s in queue +   0s in build
--
Status:   init
Progress:   3s total =   0s in queue +   3s in build

Build failed in   3s total =   0s in queue +   3s to build:
ASU server error =
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/rq/worker.py", line 1633, in perform_job
    return_value = job.perform()
                   ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1331, in perform
    self._result = self._execute()
                   ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1365, in _execute
    result = self.func(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/asu/build.py", line 142, in build
    defaults_file.parent.mkdir(parents=True)
  File "/usr/local/lib/python3.12/pathlib.py", line 1311, in mkdir
    os.mkdir(self, mode)
FileExistsError: [Errno 17] File exists: '/home/openwrt/public/store/23481b46d8c71ee25c6082320f79f19afb2f8e58054de79827fb7971458b4fca/files/etc/uci-defaults'

ERROR: Build failed with status 500
The above errors are often due to the upgrade server lagging behind the
build server, first suggestion is to wait a while and try again.

It could me my interpretation of how I issued the command line with init-script?

1 Like