spyglass-search / spyglass

A personal search engine: Create a searchable library from your personal documents, interests, and more!
https://docs.spyglass.fyi
GNU Affero General Public License v3.0
2.5k stars 56 forks source link

MacOS 10.14 - Unable to start search backend #482

Closed mashiox closed 1 year ago

mashiox commented 1 year ago

Edits

Hello

This is my first time running spyglass.

When I start the application

Then the "Starting Spyglass" window hangs for about 20 seconds

And I get the error "Unable to start search backend"

Error: Networking or low-level protocol error: Error when opening the TCP socket: Connection refused (os error 61) Please file a bug report! The application will exit now.

Output from Client log found in ~/Library/ApplicationSupport/com.athlabs.spyglass/logs/client.log.2023-06-09

2023-06-09T16:24:37.567625Z  INFO spyglass_app: Loading prefs from: "/Users/mwalther/Library/Preferences/com.athlabs.spyglass"
2023-06-09T16:24:37.569658Z  INFO spyglass_app: checking for update...
2023-06-09T16:24:37.575984Z  INFO spyglass_app: Registering CmdOrCtrl+Shift+/ as shortcut
2023-06-09T16:24:37.662708Z  INFO spyglass_app::plugins::notify: starting notify plugin
2023-06-09T16:24:37.662773Z  INFO spyglass_app::plugins::notify: waiting for backend...
2023-06-09T16:24:37.662777Z  INFO spyglass_app::plugins::startup: Running startup tasks
2023-06-09T16:24:37.662808Z  INFO spyglass_app::plugins::startup: Running migrations
2023-06-09T16:24:37.664576Z  INFO sea_orm_migration::migrator: Applying all pending migrations
2023-06-09T16:24:37.665438Z  INFO sea_orm_migration::migrator: No pending migrations
2023-06-09T16:24:37.665458Z  INFO spyglass_app::plugins::startup: Waiting for server backend
2023-06-09T16:24:37.665471Z  INFO spyglass_app::rpc: Connecting to backend @ ws://127.0.0.1:4664
2023-06-09T16:24:37.665496Z  INFO spyglass_app::rpc: connecting to backend via ws://127.0.0.1:4664
2023-06-09T16:24:37.681827Z ERROR spyglass_app::rpc: sidecar terminated: TerminatedPayload { code: None, signal: Some(6) }
2023-06-09T16:24:57.675490Z  WARN spyglass_app::rpc: error connecting: Transport(Error when opening the TCP socket: Connection refused (os error 61))

Server Log found in ~/Library/ApplicationSupport/com.athlabs.spyglass/logs/server.log.2023-06-09

2023-06-09T16:21:18.445096Z  INFO spyglass: Loading prefs from: "/Users/mwalther/Library/Preferences/com.athlabs.spyglass"
2023-06-09T16:21:18.451053Z  INFO spyglass::api: starting server @ 127.0.0.1:4664
2023-06-09T16:21:18.452238Z  INFO libspyglass::task: 👀 lens watcher started
2023-06-09T16:21:18.452261Z  INFO libspyglass::task: worker started
2023-06-09T16:21:18.452312Z  INFO manager_task: libspyglass::task: manager started
2023-06-09T16:21:18.452330Z  INFO plugin_event_loop: libspyglass::plugin: 🔌 plugin event loop started
2023-06-09T16:21:18.452345Z  INFO plugin_event_loop: libspyglass::plugin: 🔌 loading plugins
2023-06-09T16:21:18.452352Z  INFO config_task: libspyglass::task: Staring Configuration Watcher
2023-06-09T16:21:18.452358Z  INFO manager_task: libspyglass::filesystem: ❌ Local file watcher is disabled
2023-06-09T16:21:18.452394Z  INFO libspyglass::pipeline: Reading pipelines
2023-06-09T16:21:18.452441Z  INFO plugin_event_loop: libspyglass::plugin: Loading plugin settings...
2023-06-09T16:21:18.452460Z  INFO plugin_event_loop: libspyglass::plugin: Starting enabled plugins...
2023-06-09T16:21:18.454086Z  INFO libspyglass::search::lens: ✅ finished lens checks
2023-06-09T16:21:23.422980Z  INFO connection{ESC[3mremote_addrESC[0mESC[2m=ESC[0m127.0.0.1:53216 ESC[3mconn_idESC[0mESC[2m=ESC[0m0}: jsonrps
ee_server::server: Accepting new connection 1/100

Issues I found that may be related

Thank you for your support

a5huynh commented 1 year ago

Hey @mashiox, just confirming a couple things before we can dig into the issue:

mashiox commented 1 year ago

Sorry for missing the details

a5huynh commented 1 year ago

@mashiox, I have a hunch this might be due to some code signing issues that have bitten us before. Unfortunately Mojave is a bit too old for me to try out.

Would you be able to build from the project yourself? Otherwise I can see if I can get a build independently without the code signing to see if that works for you.

mashiox commented 1 year ago

Thank you for your follow up. I should have known. These out of date certs have bitten me before.

I am having trouble finding time to follow through on your recommendation. I'll let you know if something changes and I can give some feedback.