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

Memex ext cannot talk to local server #6

Closed
poltak opened this issue Mar 22, 2019 · 9 comments
Closed

Memex ext cannot talk to local server #6

poltak opened this issue Mar 22, 2019 · 9 comments

Comments

@poltak
Copy link
Member

poltak commented Mar 22, 2019

I have tried to use the 0.4.0 version on macOS 10.13.6, however the extension can never talk to the local server after a backup folder is set up via the backup app's UI.

Pressing the "I'm ready" button in the ext, I can see it is trying to GET http://localhost:11922/status, although this always fails. I can see nothing running on that 11922 port locally.

Ideas:

  1. some third party software blocking it from running on that port
  2. it's running somewhere else
  3. it's encountering some error but not yet reflected in the UI

How do I see the stdout/stderr for the backup app?

@poltak
Copy link
Member Author

poltak commented Mar 22, 2019

Originally found this from discussion in WorldBrain/Memex#743

@poltak
Copy link
Member Author

poltak commented Mar 25, 2019

It works if I download the source code and follow the instructions in the README to get it running.

@hgezim
Copy link

hgezim commented Apr 15, 2020

Thanks @poltak. There was a key system prompt I wasn't seeing with released version that asks to allow incoming connections. Works when running from source.

@awendland
Copy link

I'm also running into issues with accessing the program from the released version (I tested with 0.5.2). Similarly, once I run local-backup-server from a git cloned version of the repo it proceeds to work fine (yay!).

What is the key system prompt that I'm missing for the release version? Would it be possible to add a UX flow for triggering and approving this prompt if necessary?

@blackforestboi
Copy link
Member

@awendland Ah damn, still :(

Which system OS are you on, and what are the exact workflows that you expected to work and didn't?

@awendland
Copy link

System: macOS Catalina version 10.15.5 (19F101)

Workflow:

  1. Open Memex dashboard
  2. Navigate to settings > Backup & Restore
  3. Select automated backup
  4. Select local backup
  5. Download the 0.5.2 version of the local-backup-server from the popup window
  6. Unzip the local-backup-server
  7. Run the .app program in the unzipped file
  8. Open security & privacy and click "allow anyways" since the app is unsigned
  9. Relaunch the application and accept the "this is from an unidentified developer prompt"
  10. See the local-backup-server popup menu in the top left of my screen. Choose a folder inside my mounted Google Drive File Stream.
  11. Click "confirm"
  12. Attempt to proceed with setting up the automated backups from the Memex extension settings page but fail to proceed because it can't detect the server

I confirmed that the server isn't running correctly by curl -v http://localhost:11922/status which said curl: (7) Failed to connect to localhost port 11922: Connection refused. The local-backup-server menu item was appearing in the macOS status bar however clicking "open backup folder" did nothing.

When I switched to cloning this repo (commit 6a0ea2a) and running it manually (after installing nw using yarn global add nw and then nw . in the repo root) the previous curl command started returning running and the Memex extension settings page let me proceed with setting up automatic local backups.

Let me know if there's more information I could provide!

@blackforestboi
Copy link
Member

thanks so much for all the investigation.

it is SOO weird. everytime i test it locally with the zipped version that I will eventually upload, it all works.
When I re-download that same .zip and then use it it doesn't.

Will investigate more

@blackforestboi
Copy link
Member

blackforestboi commented Jul 6, 2020

Ok I found the issue! https://apple.stackexchange.com/questions/321818/third-party-application-cannot-write-to-disk

You need to drag the file into the applications folder! Mac sandboxes apps.

Updated the docs accordingly: https://www.notion.so/worldbrain/Backup-to-Google-Drive-or-locally-to-any-cloud-provider-7dacad9e95b44c5db681033fc264fb59

@blackforestboi
Copy link
Member

Closing this now as issue is solved.

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

4 participants