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

Daemons not working Macbook with M2 / MacOS Sonoma #6

Open
pcfriek1987 opened this issue Mar 20, 2024 · 14 comments
Open

Daemons not working Macbook with M2 / MacOS Sonoma #6

pcfriek1987 opened this issue Mar 20, 2024 · 14 comments
Labels
electros Problems with client electros-daemons

Comments

@pcfriek1987
Copy link

I tried installing ElectrOS, and come at the point it downloaded the daemons (setup page), wanted me to open it up and wait.
However opening up the daemons doesn't do much in this case and the setup page never finishes.

Are there any logs I can see why it doesn't load them?

@pcfriek1987 pcfriek1987 changed the title Daemons not working MacOS M2 / Sonoma Daemons not working Macbook with M2 / MacOS Sonoma Mar 20, 2024
@fvalle1
Copy link
Collaborator

fvalle1 commented Mar 20, 2024

Hello,

please right click on the daemons and click "Show Package Content", then run Contents/MacOS/elemento_client_demons and send me the logs you see there

Screenshot 2024-03-20 at 20 54 26 Screenshot 2024-03-20 at 20 54 52

@pcfriek1987
Copy link
Author

Here you go:

/Applications/elemento_client_daemons.app/Contents/MacOS/elemento_client_daemons ; exit;
Traceback (most recent call last):
File "elemento-monorepo-client/elemento_client_daemons.py", line 52, in
File "/Applications/elemento_client_daemons.app/Contents/MacOS/elemento-matcher-client/matcherclient.py", line 204, in init
with open(TCP_SERVER_LIST_filename, "r") as file:
UnboundLocalError: local variable 'TCP_SERVER_LIST_filename' referenced before assignment
[57089] Failed to execute script 'elemento_client_daemons' due to unhandled exception: local variable 'TCP_SERVER_LIST_filename' referenced before assignment
[57089] Traceback:
Traceback (most recent call last):
File "elemento-monorepo-client/elemento_client_daemons.py", line 52, in
File "/Applications/elemento_client_daemons.app/Contents/MacOS/elemento-matcher-client/matcherclient.py", line 204, in init
with open(TCP_SERVER_LIST_filename, "r") as file:
UnboundLocalError: local variable 'TCP_SERVER_LIST_filename' referenced before assignment

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.

@fvalle1
Copy link
Collaborator

fvalle1 commented Mar 22, 2024

Hello,

do you mind trying this version: https://www.swisstransfer.com/d/61dc4ebd-e819-4724-ae28-3495aeb09097

@fvalle1
Copy link
Collaborator

fvalle1 commented Mar 22, 2024

thank you for your feedback

@pcfriek1987
Copy link
Author

So I totally forgot this due to other things.
Just tried it for you but that one doesn't work at all, it just tells me "elemento_client_daemons is damaged and can't be opened."

@fvalle1
Copy link
Collaborator

fvalle1 commented Apr 12, 2024

Hi @pcfriek1987 If you go to Settings->Privacy&Security do you see any warning about our daemons?

@pcfriek1987
Copy link
Author

Hi @fvalle1 not seeing any messages there about the daemons

@fvalle1
Copy link
Collaborator

fvalle1 commented Apr 23, 2024

May you try running them from terminal. I.E. ./elemento_client_daemons.app/Contents/MacOS/elemento_client_daemons

@pcfriek1987
Copy link
Author

Hi,

I tried it, but it doesn't do anything, it just mentions it's damaged and I should sent it to the recycle bin.

@fvalle1
Copy link
Collaborator

fvalle1 commented Apr 23, 2024

may you try xattr -d com.apple.quarantine elemento_client_daemons.app

@pcfriek1987
Copy link
Author

That at least executed it but seems the same error as the first one.

./elemento_client_daemons.app/Contents/MacOS/elemento_client_daemons
Traceback (most recent call last):
File "elemento-monorepo-client/elemento_client_daemons.py", line 52, in
File "/Applications/elemento_client_daemons.app/Contents/MacOS/elemento-matcher-client/matcherclient.py", line 226, in init
with open(TCP_SERVER_LIST_filename, "r") as file:
UnboundLocalError: local variable 'TCP_SERVER_LIST_filename' referenced before assignment
[32470] Failed to execute script 'elemento_client_daemons' due to unhandled exception: local variable 'TCP_SERVER_LIST_filename' referenced before assignment
[32470] Traceback:
Traceback (most recent call last):
File "elemento-monorepo-client/elemento_client_daemons.py", line 52, in
File "/Applications/elemento_client_daemons.app/Contents/MacOS/elemento-matcher-client/matcherclient.py", line 226, in init
with open(TCP_SERVER_LIST_filename, "r") as file:
UnboundLocalError: local variable 'TCP_SERVER_LIST_filename' referenced before assignment

@fvalle1
Copy link
Collaborator

fvalle1 commented Apr 23, 2024

Are you able to run touch ~/.elemento/hosts

It seems the initialisation didn't work well

@pcfriek1987
Copy link
Author

Now that did a lot more after touching that

Starting Timeloop..
[2024-04-23 21:58:11,247] [timeloop] [INFO] Registered job <function elementoStorageClient.run..verifyCache at 0x1079b1670>
[2024-04-23 21:58:11,247] [timeloop] [INFO] Timeloop now started. Jobs will run based on the interval set

  • Serving Flask app 'Elemento Matcher Client'
  • Serving Flask app 'Elemento Network Client'
  • Debug mode: off
  • Serving Flask app 'Elemento Storage Client'
  • Debug mode: off
  • Debug mode: off
    INFO: Started server process [43439]
    INFO: Waiting for application startup.
    INFO: Application startup complete.
    INFO: Uvicorn running on http://localhost:47777 (Press CTRL+C to quit)
    [2024-04-23 21:58:17.246] [ERROR] storageclient:discoverUDPServers:140 None answered
    [2024-04-23 21:58:18.251] [ERROR] storageclient:discoverUDPServers:140 None answered
    [2024-04-23 21:58:24.259] [ERROR] storageclient:discoverUDPServers:140 None answered
    [2024-04-23 21:58:25.261] [ERROR] storageclient:discoverUDPServers:140 None answered

@fvalle1
Copy link
Collaborator

fvalle1 commented Apr 24, 2024

Ok, that seems good.

At this point you should be able to use the ElectrOS app

The Errors your are viewing are due to the fact that there are not AtomOS servers in your lan

@fvalle1 fvalle1 added electros Problems with client electros-daemons labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electros Problems with client electros-daemons
Projects
None yet
Development

No branches or pull requests

2 participants