adamwbull / llama-fs

A self-organizing file system with llama 3
11 stars 1 forks source link

Handshake failed on macOS #3

Open Bormotoon opened 1 month ago

Bormotoon commented 1 month ago

That's what I've got in Terminal

bormotoon@iMac-Bormotoon app % yarn start
yarn run v1.22.22
$ ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer

> LlamaFS@1.2.0 start:renderer
> cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts

Starting preload.js builder...
Starting Main Process...
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:1212/
<i> [webpack-dev-server] On Your Network (IPv4): http://10.1.1.100:1212/
<i> [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:1212/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/bormotoon/llama-fs/app/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'

> LlamaFS@1.2.0 start:preload
> cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts

> LlamaFS@1.2.0 start:main
> cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only .

[electronmon] waiting for a change to restart it
(node:18040) ExtensionLoadWarning: Warnings loading extension at /Users/bormotoon/Library/Application Support/LlamaFS/extensions/fmkadmapgofadopljbjfkapdkoienihi:
  Permission 'scripting' is unknown or URL pattern is malformed.

(Use `Electron --trace-warnings ...` to show where the warning was created)
[electronmon] uncaught exception occured
[electronmon] waiting for any change to restart the app
[18042:0924/094816.751532:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.753346:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.764129:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.773427:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.777441:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.778106:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.791830:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094816.802244:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.548271:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.572766:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.615354:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.624706:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.642889:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.648600:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.695821:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[18042:0924/094817.721922:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[electronmon] ignoring exit with code 1

This error message appears as macOS alert

LlamaS encountered an error
Error: spawn C:\Users\A\Projects\|lama-fs\app resources python Scripts\ python.exe
ENOENT
at Process.onexit (node:internal/ child_process:283:19)
at onErrorNT (node:internal/ child_process:476:16)
at processTicksAndRejections (node:internal/ process/task_queues:82:21)

And these errors I'm getting on http://localhost:1212

Error 1 of 2
TypeError
Cannot read properties of undefined (reading 'ipcRenderer')
Call Stack
 ./src/renderer/index.tsx
  renderer.dev.js:78413:17
 options.factory
  renderer.dev.js:113133:31
 __webpack_require__
  renderer.dev.js:112578:33
 undefined
  renderer.dev.js:113718:37
 undefined
  renderer.dev.js:113721:12
 webpackUniversalModuleDefinition
  renderer.dev.js:7:11
 undefined
  renderer.dev.js:10:3
Error 2 of 2
TypeError
Cannot read properties of undefined (reading 'ipcRenderer')
Call Stack
 undefined
  renderer.dev.js:77550:25
 commitHookEffectListMount
  renderer.dev.js:55343:26
 commitPassiveMountOnFiber
  renderer.dev.js:57119:13
 commitPassiveMountEffects_complete
  renderer.dev.js:57084:9
 commitPassiveMountEffects_begin
  renderer.dev.js:57071:7
 commitPassiveMountEffects
  renderer.dev.js:57059:3
 flushPassiveEffectsImpl
  renderer.dev.js:59232:3
 flushPassiveEffects
  renderer.dev.js:59177:14
 performSyncWorkOnRoot
  renderer.dev.js:58269:3
 flushSyncCallbacks
  renderer.dev.js:44240:22
Bormotoon commented 1 month ago

I guess I'm really dumb. I just pasted in the error code and I figured it out! I forgot to specify the correct path to Python in my macOS. Error: spawn C:\Users\A\Projects\|lama-fs\app resources python Scripts\ python.exe

Now the app opens in a dedicated window, the interface is responsive, but still nothing happens after selecting a folder to sort. And this is what I have in the terminal:

(llamafs) bormotoon@iMac-Bormotoon app % yarn start
yarn run v1.22.22
$ ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer

> LlamaFS@1.2.0 start:renderer
> cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts

Starting preload.js builder...
Starting Main Process...
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:1212/
<i> [webpack-dev-server] On Your Network (IPv4): http://10.1.1.100:1212/
<i> [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:1212/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/bormotoon/llama-fs/app/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'

> LlamaFS@1.2.0 start:preload
> cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts

> LlamaFS@1.2.0 start:main
> cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only .

[electronmon] waiting for a change to restart it
(node:19446) ExtensionLoadWarning: Warnings loading extension at /Users/bormotoon/Library/Application Support/LlamaFS/extensions/fmkadmapgofadopljbjfkapdkoienihi:
  Permission 'scripting' is unknown or URL pattern is malformed.

(Use `Electron --trace-warnings ...` to show where the warning was created)
10:01:33.571 › Ollama server is already running on 127.0.0.1:11434
10:01:33.575 › Skip checkForUpdates because application is not packed and dev update config is not forced
10:01:33.576 › checkForUpdatesAndNotify called, downloadPromise is null
10:01:33.619 › FastAPI stderr: Traceback (most recent call last):
  File "/Users/bormotoon/llama-fs/app/resources/server/server.py", line 4, in <module>
    from fastapi import FastAPI, HTTPException, BackgroundTasks, Request, WebSocket, WebSocketDisconnect
ModuleNotFoundError: No module named 'fastapi'

10:01:33.624 › FastAPI server exited with code 1
[19446:0924/100133.735536:ERROR:extensions_browser_client.cc(69)] Extension Error:
  OTR:     false
  Level:   2
  Source:  chrome-extension://ghahadicpanhoapdoocoolljkiabfnjm/build/background.js
  Message: Uncaught TypeError: Cannot read properties of undefined (reading 'ExecutionWorld')
  ID:      ghahadicpanhoapdoocoolljkiabfnjm
  Type:    RuntimeError
  Context: chrome-extension://ghahadicpanhoapdoocoolljkiabfnjm/build/background.js
  Stack Trace: 
    {
      Line:     1
      Column:   1
      URL:      chrome-extension://ghahadicpanhoapdoocoolljkiabfnjm/build/background.js
      Function: (anonymous function)
    }
[19446:0924/100133.736000:ERROR:extensions_browser_client.cc(69)] Extension Error:
  OTR:     false
  Level:   1
  Source:  manifest.json
  Message: Service worker registration failed. Status code: 15
  ID:      ghahadicpanhoapdoocoolljkiabfnjm
  Type:    ManifestError
<i> [webpack-dev-middleware] wait until bundle finished: /index.html
[19448:0924/100138.437300:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.437770:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.443137:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19446:0924/100138.445005:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2)
[19446:0924/100138.445051:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/sandbox_bundle (2)
[19448:0924/100138.451155:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.462424:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.462505:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.472075:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100138.478357:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.269966:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.296427:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.312925:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.335570:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.336490:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.361059:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.379651:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100139.406544:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.619680:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.645381:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.657913:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.680673:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.751755:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.778366:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.881657:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100140.905166:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.603597:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.629083:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.633999:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.661975:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.818416:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.845323:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.922087:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100142.944857:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
2024-09-24 10:01:43.748 Electron[19446:8649696] +[CATransaction synchronize] called within transaction
[19448:0924/100145.657423:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100145.681324:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100145.709511:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100145.736915:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100145.897136:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100145.924351:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100146.158470:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100146.181201:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.336646:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.363409:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.374280:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.401793:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.611408:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.632643:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.959564:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100150.983929:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100156.734253:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100156.762696:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.432558:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.456704:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.706263:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.733698:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.778410:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100157.803323:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100207.186314:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100207.211536:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100207.383268:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100207.406487:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100208.048970:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100208.077336:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100208.323676:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100208.350759:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100223.060930:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100223.083718:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100223.881258:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100223.906061:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100224.035263:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100224.064160:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100224.442942:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100224.469394:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100243.999636:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100244.022277:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100245.028352:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100245.056420:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100246.773424:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100246.800641:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100249.021431:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100249.046338:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100320.570270:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100320.596039:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100320.944604:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100320.967183:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100321.094452:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100321.120889:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100323.051264:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100323.074560:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100409.523907:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100409.552569:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100410.191097:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100410.217676:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100412.523713:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100412.548410:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100414.048362:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101
[19448:0924/100414.073311:ERROR:ssl_client_socket_impl.cc(968)] handshake failed; returned -1, SSL error code 1, net_error -101