dosyago / dn

💾 dn - offline full-text search and archiving for your Chromium-based browser.
https://localhost:22120
Other
3.78k stars 145 forks source link

Crashes after "Change mode" button press #115

Closed cibolog closed 2 years ago

cibolog commented 2 years ago

Config

Ubuntu 20.04, diskernet@2.4.11 npm 8.1.0 node v16.13.0 run with npm start non-default archive directory

To reproduce

Crashes after I press the "Change mode" button with "Save" radiobutton toggled with the following output:

Error communicating with browser FetchError: request to http://localhost:9222/json/version failed, reason: connect ECONNREFUSED 127.0.0.1:9222
    at ClientRequest.<anonymous> (file:///home/user/diskernet/Diskernet/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:390:28)
    at Socket.socketErrorListener (node:_http_client:447:9)
    at Socket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  erroredSysCall: 'connect'
}
o0101 commented 2 years ago

Looks like it can't find the browser. This is not a problem with the software but seems to be a problem with locating Chrome. Thank you for the report, I'm sorry I don't know how to fix it. Maybe take a look at where Chrome is located