Skip to content
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

doesn't connect to UPTimeKuma in docker container #1

Closed
sdetweil opened this issue Feb 23, 2024 · 9 comments
Closed

doesn't connect to UPTimeKuma in docker container #1

sdetweil opened this issue Feb 23, 2024 · 9 comments

Comments

@sdetweil
Copy link

trying to connect, using the constructed status page url , using browser just spins..
axios get never returns from await

http://mac-mini:3001/api/status-page/default

Snip20240223_2
utk version

Version: 1.23.11
Macos

@MikeBishop
Copy link
Owner

MikeBishop commented Feb 23, 2024

What does the browser show at http://mac-mini:3001/status/default? The browser tools (F12) might also give a hint. In mine, I can see it querying the api/status-page/heartbeat/default path, for example:
image

@sdetweil
Copy link
Author

the page is empty
Snip20240223_3

only js
Snip20240223_4

@MikeBishop
Copy link
Owner

That looks like a UK issue more than this module -- I'd encourage you to check the network view in the debug tools to see whether something is failing to download. I'd wonder if JS is disabled in your browser, except that obviously you're able to load the UK dashboard properly.

@sdetweil
Copy link
Author

i changed my docker container to map to port 80..
but really no change, dev tools shows error
for UK/status-page/default (module)

web-client-content-script.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'animation' in undefined
    at Ye (web-client-content-script.js:2:49247)
    at 995 (web-client-content-script.js:2:49530)
    at n (web-client-content-script.js:2:182360)
    at 306 (web-client-content-script.js:2:152623)
    at n (web-client-content-script.js:2:182360)
    at web-client-content-script.js:2:197374
    at web-client-content-script.js:2:379018
    at web-client-content-script.js:2:379033
Ye @ web-client-content-script.js:2
995 @ web-client-content-script.js:2
n @ web-client-content-script.js:2
306 @ web-client-content-script.js:2
n @ web-client-content-script.js:2
(anonymous) @ web-client-content-script.js:2
(anonymous) @ web-client-content-script.js:2
(anonymous) @ web-client-content-script.js:2
onloadwff.js:71 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'querySelectorAll')
    at s.<anonymous> (onloadwff.js:71:820251)
    at l (onloadwff.js:71:800922)
    at Object.next (onloadwff.js:71:800233)
    at n (onloadwff.js:71:799769)

for /status

GET http://localhost/status 404 (Not Found)

like there is some config step I didn't do.. but I don't see any setup info for UK..

@sdetweil
Copy link
Author

I stopped the container, deleted the mapped folder and restarted.. created new userid, and same.. not found for status

@sdetweil
Copy link
Author

aha, I had to create a status page and add the monitors to expose to it

Snip20240224_1

then call to status-page worked
https://utka.xx.yy/api/status-page/default

{"config":{"slug":"default","title":"default","description":null,"icon":"/icon.svg","theme":"auto","published":true,"showTags":false,"customCSS":"body {\n  \n}\n","footerText":null,"showPoweredBy":true,"googleAnalyticsId":null,"showCertificateExpiry":false},"incident":null,"publicGroupList":[{"id":1,"name":"Services","weight":1,"monitorList":[{"id":1,"name":"cnsearch arizona","sendUrl":1,"type":"http","url":"https://cnsearch.xx.yy"}]}],"maintenanceList":[]}

@sdetweil
Copy link
Author

I opened UK issue
louislam/uptime-kuma#4523

@sdetweil
Copy link
Author

can close, just waiting til you saw it.. thanks for your help

@MikeBishop
Copy link
Owner

Ah, I see. I should improve the docs to make it clear you need a status page created in UK for this to be able to read it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants