azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.97k stars 105 forks source link

[BUG]: Cosmos-UI Does not work in Safari - macOS #209

Closed yeradis closed 3 months ago

yeradis commented 4 months ago

What happened?

First time install and UI does not load at http://localhost/cosmos-ui

What should have happened?

Show Cosmos Setup UI

How to reproduce the bug?

Relevant log output

Safari Console output:

[Error] Error parsing client-infos cookie:
TypeError: undefined is not an object (evaluating 'e["client-infos"].split')
CIe — index-50aebb50.js:378:5197
MD — index-50aebb50.js:378:5435
Xw — index-50aebb50.js:38:19540
e4 — index-50aebb50.js:40:44058
QM — index-50aebb50.js:40:39790
S7 — index-50aebb50.js:40:39718
_h — index-50aebb50.js:40:39571
YM — index-50aebb50.js:40:34650
C — index-50aebb50.js:25:1566
H — index-50aebb50.js:25:1927
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] Error parsing client-infos cookie: – TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
TypeError: undefined is not an object (evaluating 'e["client-infos"].split') — index-50aebb50.js:378:5197
    CIe (index-50aebb50.js:378:5264)
    MD (index-50aebb50.js:378:5435)
    Xw (index-50aebb50.js:38:19540)
    e4 (index-50aebb50.js:40:44058)
    QM (index-50aebb50.js:40:39790)
    S7 (index-50aebb50.js:40:39718)
    _h (index-50aebb50.js:40:39571)
    YM (index-50aebb50.js:40:34650)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] TypeError: undefined is not an object (evaluating 'n.filter') — index-50aebb50.js:384:17470
    Q1 (index-50aebb50.js:40:167)
    (anonymous function) (index-50aebb50.js:40:390)
    i$ (index-50aebb50.js:38:9891)
    S$ (index-50aebb50.js:40:32063)
    KM (index-50aebb50.js:40:31482)
    b7 (index-50aebb50.js:40:31032)
    E7 (index-50aebb50.js:40:40920)
    ma (index-50aebb50.js:40:40278)
    YM (index-50aebb50.js:40:35190)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)
[Error] TypeError: undefined is not an object (evaluating 'n.filter')
    E7 (index-50aebb50.js:40:41204)
    ma (index-50aebb50.js:40:40278)
    YM (index-50aebb50.js:40:35190)
    C (index-50aebb50.js:25:1566)
    H (index-50aebb50.js:25:1927)


### Other details

_No response_

### System details

- OS: macOS Sonoma 14.2.1
- Browser: Safari
- Version 17.2.1 (19617.1.17.11.12)
terraboss commented 3 months ago

Cosmos Server is nearly unusable. I won't switch my default browser just for one website / use-case.

azukaar commented 3 months ago

I cannot reproduce this. I might have fixed it in 0.15 without knowing, could one of you try the latest beta version (with :latest-unstable) and let me know if it makes a difference?

terraboss commented 3 months ago

I have still a blank page after installing cosmos server with this source code as html

`<!DOCTYPE html>

Cosmos
Cosmos
Cosmos
`
azukaar commented 3 months ago

sorry this doesn't really help atm, did you try with 0.15? (make sure you try with incognito mode to not have cached pages)

terraboss commented 3 months ago

I don't know what version is actually running, as you know, I can't login. Even on Firefox my (correct!) credential won't be accepted.

Sorry to say, but Cosmos Server isn't a real solution / alternative for me. Currently I'm running CasaOS for more flexibility and sometimes Portainer (BE) for specific docker container management. I prefer CasaOS for its open port monitoring & management. Cosmos Server just use 80/443 for containers out of the App Store and nothing works without manual editing. In this case, I don't need a web-management platform.

And there is the second issue with Cosmos: I ran Cosmos on my second Raspberry Pi 4 for experimental applications. My main Raspberry runs Home Assistant, AdGuard Home, InfluxDB, Grafana, NGINX Proxy Manager and so on... all very reliable app's. I can't allow my experimental / second Pi to be my proxy for my own domain... so there are a lot of downsides.

azukaar commented 3 months ago

Cosmos Server isn't a real solution

Alright thanks for telling me ahead of this block of text that it was not worth answering

terraboss commented 3 months ago

Dear development team,

First of all, I'd like to acknowledge the effort that goes into developing a platform like Cosmos Server. I appreciate the challenges involved and the dedication required. However, I feel compelled to address some concerns that have significantly impacted the usefulness of your software in my specific use case.

I've noticed that the software does not perform as expected in key browsers such as Safari. This suggests that comprehensive testing across different browser environments may not have been prioritised sufficiently, resulting in limited accessibility. Ensuring broad browser compatibility is critical to usability and should be a fundamental aspect of quality assurance.

Furthermore, the way in which user feedback and reported problems are handled appears to need improvement. Constructive feedback and problem reports should be seen as opportunities for growth and improvement, not just as criticism. Respectful and open dialogue is essential to building trust and strengthening the community around your software.

I encourage you to view these points as an opportunity to re-evaluate and improve your development and communication processes. Mistakes are understandable, but the response to them is what really makes a difference. An open approach to feedback and transparent communication can greatly improve the quality of your software and the satisfaction of your users.

Thank you for your consideration of my feedback. I look forward to positive developments in the future.

Best regards

azukaar commented 3 months ago

Alright dude, thanks for the ChatGPT response. May be it's time for you to take some constructive feedback too: re-evaluate how you interact with people who provide you with hard worked on software for free. You want me to priorities Safari for you with that ass attitude? ... No way!

I will now block you from this repository to prevent this legitimate ticket to further degrade into a ridiculous skirmish.

As I said, I cannot reproduce the issue. This is how far it goes until someone helps me reproduce it, or confirm that it is fixed in 0.15

azukaar commented 3 months ago

For anyone struggling to access Cosmos altogether on MacOS: make sure you run without the host mode (see https://cosmos-cloud.io/doc/1%20index/) as it will not work on MacOS