You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
[2024-03-22T01:11:31.267Z] INFO (Http): { method: 'GET', path: '/api/v1/preview' }
[2024-03-22T01:11:31.267Z] ERROR (Http): Error: ENOENT: no such file or directory, open 'data/preview/default.jpg'
at Object.openSync (node:fs:600:3)
at Object.readFileSync (node:fs:468:35)
at FileInfo.toBuffer (/usr/lib/scanservjs/server/classes/file-info.js:182:21)
at Api.readPreview (/usr/lib/scanservjs/server/api.js:111:78)
at Object.callback (/usr/lib/scanservjs/server/express-configurer.js:131:32)
at /usr/lib/scanservjs/server/express-configurer.js:210:22
at Layer.handle [as handle_request] (/usr/lib/scanservjs/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/lib/scanservjs/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/usr/lib/scanservjs/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/usr/lib/scanservjs/node_modules/express/lib/router/layer.js:95:5) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'data/preview/default.jpg'
}
Assumption: Scan pipeline does not complete when using the web server. The scanner scans the image to a temp tiff file ('~tmp-scan-0-0001.tif') in the temp folder, but then gives the ENOENT error. It recognises my scanner, and the features and capabilities, but does not complete the process. The scanned .tif file is correct. I think there is a file or folder mapping issue somewhere.
Printer is a Samsung M2040, mapped via saned over the network, to a raspberry pi, where it is connected via USB. I am using a xerox driver on the pi, as that is the one that works.
I can connect to saned over the network via a Windows machine and all works fine.
I have a similar issue/error.
I solved it by manually adding a default.jpg file
looking at your DOCKER-COMPOSE CONFIG, I think you should add a folder: /mnt/_data/_docker/scanserv/preview/
and in that folder put any image named default.jpg: /mnt/_data/_docker/scanserv/preview/default.jpg
(as for the actual bug - maybe #700 solves this?)
Docker Conatiner image
Error Message:
Assumption: Scan pipeline does not complete when using the web server. The scanner scans the image to a temp tiff file ('~tmp-scan-0-0001.tif') in the temp folder, but then gives the ENOENT error. It recognises my scanner, and the features and capabilities, but does not complete the process. The scanned .tif file is correct. I think there is a file or folder mapping issue somewhere.
Printer is a Samsung M2040, mapped via saned over the network, to a raspberry pi, where it is connected via USB. I am using a xerox driver on the pi, as that is the one that works.
I can connect to saned over the network via a Windows machine and all works fine.
DOCKER-COMPOSE CONFIG:
ADDITONAL LOGS ... redacted in areas for simplicity
The text was updated successfully, but these errors were encountered: