Search Criteria
Package Details: scanservjs 3.0.3-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/scanservjs.git (read-only, click to copy) |
---|---|
Package Base: | scanservjs |
Description: | SANE scanner nodejs web ui |
Upstream URL: | https://github.com/sbs20/scanservjs |
Keywords: | sane scan |
Licenses: | GPL |
Submitter: | danieltetraquark |
Maintainer: | danieltetraquark |
Last Packager: | danieltetraquark |
Votes: | 2 |
Popularity: | 0.001544 |
First Submitted: | 2021-07-11 20:10 (UTC) |
Last Updated: | 2023-12-08 21:17 (UTC) |
Dependencies (6)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR)
- imagemagick (imagemagick-gitAUR, imagemagick-fullAUR, imagemagick-full-gitAUR)
- nodejs (nodejs-lts-fermiumAUR, nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogen, nodejs-lts-iron)
- sane (sane-gitAUR)
- tesseract (tesseract-gitAUR)
- npm (corepackerAUR, python-nodejs-wheelAUR) (make)
Latest Comments
1 2 Next › Last »
jango commented on 2023-12-12 00:01 (UTC) (edited on 2023-12-12 04:49 (UTC) by jango)
@danieltetraquark thanks for quick reply
install error fixed here https://github.com/npm/cli/issues/6785
sudo pacman -R npm semver node-gyp
sudo rm -rf /usr/lib/node_modules/npm/node_modules/semver
sudo pacman -S npm semver
npm --version
but still cannot start properly, the error still the same:
Dec 12 11:29:47 arch server.js[460]: node:internal/modules/cjs/loader:1147
Dec 12 11:29:47 arch server.js[460]: throw err;
Dec 12 11:29:47 arch server.js[460]: ^
Dec 12 11:29:47 arch server.js[460]: Error: Cannot find module './server/classes/process'
Dec 12 11:29:47 arch server.js[460]: Require stack:
Dec 12 11:29:47 arch server.js[460]: - /etc/webapps/scanservjs/config.local.js
Dec 12 11:29:47 arch server.js[460]: - /usr/share/webapps/scanservjs/server/classes/user-options.js
Dec 12 11:29:47 arch server.js[460]: - /usr/share/webapps/scanservjs/server/application.js
Dec 12 11:29:47 arch server.js[460]: - /usr/share/webapps/scanservjs/server/server.js
Dec 12 11:29:47 arch server.js[460]: at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
Dec 12 11:29:47 arch server.js[460]: at Function.resolve (node:internal/modules/helpers:187:19)
Dec 12 11:29:47 arch server.js[460]: at Object.<anonymous> (/etc/webapps/scanservjs/config.local.js:3:33)
Dec 12 11:29:47 arch server.js[460]: at Module._compile (node:internal/modules/cjs/loader:1376:14)
Dec 12 11:29:47 arch server.js[460]: at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
Dec 12 11:29:47 arch server.js[460]: at Module.load (node:internal/modules/cjs/loader:1207:32)
Dec 12 11:29:47 arch server.js[460]: at Module._load (node:internal/modules/cjs/loader:1023:12)
Dec 12 11:29:47 arch server.js[460]: at Module.require (node:internal/modules/cjs/loader:1235:19)
Dec 12 11:29:47 arch server.js[460]: at require (node:internal/modules/helpers:176:18)
Dec 12 11:29:47 arch server.js[460]: at new UserOptions (/usr/share/webapps/scanservjs/server/classes/user-options.js:9:22) {
Dec 12 11:29:47 arch server.js[460]: code: 'MODULE_NOT_FOUND',
Dec 12 11:29:47 arch server.js[460]: requireStack: [
Dec 12 11:29:47 arch server.js[460]: '/etc/webapps/scanservjs/config.local.js',
Dec 12 11:29:47 arch server.js[460]: '/usr/share/webapps/scanservjs/server/classes/user-options.js',
Dec 12 11:29:47 arch server.js[460]: '/usr/share/webapps/scanservjs/server/application.js',
Dec 12 11:29:47 arch server.js[460]: '/usr/share/webapps/scanservjs/server/server.js'
Dec 12 11:29:47 arch server.js[460]: ]
Dec 12 11:29:47 arch server.js[460]: }
Dec 12 11:29:47 arch server.js[460]: Node.js v21.4.0
Dec 12 11:29:47 arch systemd[1]: scanservjs.service: Main process exited, code=exited, status=1/FAILURE
Dec 12 11:29:47 arch systemd[1]: scanservjs.service: Failed with result 'exit-code'.
Dec 12 11:29:47 arch systemd[1]: scanservjs.service: Scheduled restart job, restart counter is at 5.
Dec 12 11:29:47 arch systemd[1]: scanservjs.service: Start request repeated too quickly.
Dec 12 11:29:47 arch systemd[1]: scanservjs.service: Failed with result 'exit-code'.
Dec 12 11:29:47 arch systemd[1]: Failed to start scanservjs.
adding symlink fix the problem:
sudo ln -s /usr/share/webapps/scanservjs /usr/lib/scanservjs
it works now thanks :)
danieltetraquark commented on 2023-12-11 23:29 (UTC)
@jango you probably have an old version of semver installed: https://bugs.archlinux.org/task/79693 https://github.com/npm/cli/issues/6785
jango commented on 2023-12-11 23:15 (UTC) (edited on 2023-12-11 23:23 (UTC) by jango)
@danieltetraquark error on install:
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
/usr/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^
TypeError: LRU is not a constructor
at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/semver/classes/range.js:188:15)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/semver/functions/satisfies.js:1:15)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
Node.js v21.4.0
==> ERROR: A failure occurred in build().
Aborting...
-> error making: scanservjs-exit status 4
-> Failed to install the following packages. Manual intervention is required:
scanservjs - exit status 4
danieltetraquark commented on 2023-11-29 01:19 (UTC) (edited on 2023-12-08 21:29 (UTC) by danieltetraquark)
@jango I also tried on another machine, and there it fails to start with
Error: Cannot find module './server/classes/process'
. This is very strange as the very exact build on another machine which I've tested with does work fine. I'll have a look in the next days.EDIT: I think I fixed the issue, you may want to take a look.
jango commented on 2023-11-29 00:45 (UTC) (edited on 2023-11-29 00:47 (UTC) by jango)
Failed to start scanservjs.
CODE_FILE src/core/job.c CODE_FUNC job_emit_done_message CODE_LINE 796 INVOCATION_ID 88e88acd423a4daeaecc2f3e17580007 JOB_ID 13722 JOB_RESULT failed JOB_TYPE start MESSAGE_ID be02cf6855d2428ba40df7e9d022f03d PRIORITY 3 SYSLOG_FACILITY 3 SYSLOG_IDENTIFIER systemd TID 1
thats the old logs, i will try to test this on vm
danieltetraquark commented on 2023-11-27 23:19 (UTC)
@jango can you be more specific why it doesn't start, any error messages in the log? For example in "systemctl status scanservjs"
jango commented on 2023-11-27 06:33 (UTC)
v3.0.3 cannot start properly always restart v2.27.0 always working
theneuralbit commented on 2022-12-29 02:38 (UTC)
Thanks for the quick response!
chown scanservjs:scanservjs /etc/webapps/scanservjs/
did the trick for me. I also had to runchown -R scanservjs:scanservjs /var/lib/webapps/scanservjs/
so the server could create preview files.danieltetraquark commented on 2022-12-23 20:47 (UTC)
@theneuralbit you should probably run "chown scanservjs:scanservjs /etc/webapps/scanservjs/devices.json" to fix. I just updated the package, and fixed some problems with the user creation and chown which are probable the root cause.
theneuralbit commented on 2022-12-23 19:52 (UTC)
I just installed this but I'm getting an error when the server attempts to generate devices.json:
Is there some configuration that I missed?
1 2 Next › Last »