Skip to content

Swag auto uptime kuma timeout fix 2025 06 20 t09 38 36 #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

TrezOne
Copy link

@TrezOne TrezOne commented Jun 20, 2025

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Timeout fix for swag-auto-uptime-kuma LSCR.io mod.

Benefits of this PR and context:

Could possibly be considered break/fix; fixes #1014

How Has This Been Tested?

Tested in homelab environment using ghcr.io/trezone/swag-auto-uptime-kuma:a443b8542f7d033fb99d2dde3782497534bd7508.

Before

[mod-auto-uptime-kuma] Packages already installed, skipping...
[mod-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod
[mod-auto-uptime-kuma] The following notifications are enabled by default: ['1:My Discord Alert']
[mod-auto-uptime-kuma] Adding Monitor 'Artifactmmo' for container 'artifactmmo'
Traceback (most recent call last):
  File "/app/auto-uptime-kuma.py", line 127, in <module>
    add_or_update_monitors(dockerService, configService, uptimeKumaService)
  File "/app/auto-uptime-kuma.py", line 23, in add_or_update_monitors
    uptime_kuma_service.create_monitor(container_name, container_config)
  File "/app/auto_uptime_kuma/uptime_kuma_service.py", line 135, in create_monitor
    monitor = self.api.add_monitor(**monitor_data)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/uptime_kuma_api/api.py", line 1472, in add_monitor
    return self._call('add', data)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/uptime_kuma_api/api.py", line 547, in _call
    r = self.sio.call(event, data, timeout=self.timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.12/site-packages/socketio/client.py", line 297, in call
    raise exceptions.TimeoutError()
socketio.exceptions.TimeoutError
s6-rc: warning: unable to start service init-mod-swag-auto-uptime-kuma-install: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.

After

2025-06-20T20:10:17.599153977Z [mod-init] Installing linuxserver/mods:universal-package-install
2025-06-20T20:10:17.619229486Z [mod-init] linuxserver/mods:universal-package-install applied to container
2025-06-20T20:10:17.922245304Z [mod-init] Adding linuxserver/mods:swag-crowdsec to container
2025-06-20T20:10:18.988789219Z [mod-init] Downloading linuxserver/mods:swag-crowdsec from lscr.io
2025-06-20T20:10:19.760377372Z [mod-init] Installing linuxserver/mods:swag-crowdsec


2025-06-20T20:11:31.214081247Z [mod-init] linuxserver/mods:swag-crowdsec applied to container
2025-06-20T20:11:31.410559287Z [mod-init] Adding trezone/swag-auto-uptime-kuma:a443b8542f7d033fb99d2dde3782497534bd7508 to container
2025-06-20T20:11:31.538750225Z [mod-init] Downloading trezone/swag-auto-uptime-kuma:a443b8542f7d033fb99d2dde3782497534bd7508 from ghcr.io
2025-06-20T20:11:31.712371964Z [mod-init] Installing trezone/swag-auto-uptime-kuma:a443b8542f7d033fb99d2dde3782497534bd7508
2025-06-20T20:11:32.161243732Z [mod-init] trezone/swag-auto-uptime-kuma:a443b8542f7d033fb99d2dde3782497534bd7508 applied to container

Source / References:

#1014

@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_1044

@TrezOne TrezOne closed this Jun 20, 2025
@LinuxServer-CI LinuxServer-CI moved this from PRs to Done in Issue & PR Tracker Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants