Closed Mawiguk0 closed 6 months ago
For now as a quick fix, I changed the index.ts so that it does not use the PathHelper for the directory.
Things seem odd with the parameter handling. Will look into it later
When working with this application in a container, the application default directory (as specified in app.sh) is /scan and doesn't need to be changed. node application is thus still using /scan to store scan file. You then use the Volume directive from compose file to map /scan to your preferred host directory I've used the Volume in compose file to point where scan files should be stored outside the container
volumes: - <absolute or relative directory path on host>:/scan:rw
From your compose file exposed above, is data directory (specified as a relative path) existing in the directory where you started the application, using docker compose ? That should be the place where scan docs are stored.
I'm facing a similar issue. I'm running this cool project using Docker on a Synology NAS. Before I upgraded everything, everything ran smoothly. However currently no scans are saved to the mounted /scan path.
Whenever I sh into the container docker exec -it <container> sh
I'm able to create files in the /scan directory and see them to appear in the correct folder on the host. This means imho that the volumes are mounted correctly in the container but for some reason the container cannot use it?
Just like @Mawiguk0 I see the following in the log output:
Temp folder: /tmp/scan-to-pcndkBgI
Target folder: /tmp/scan-to-pcapBAHf
Even whilest the /scan mount is correctly configured per Docker configuration.
Is there a fix or workaround available to overcome this issue?
Hello
Could you tell me if you face the same issue with
image: manuc66/node-hp-scan-to:latest
I mean by using latest instead of master ? (The master tag has unfortunately not been updated recently and there was a fix for a simiar issue https://github.com/manuc66/node-hp-scan-to/issues/644)
Hi, thanks for your prompt reply! I've tested latest and can confirm it then works as expected! Thank you.
The master tag should be updated now
The target directory is not set properly or the doc needs to be checked.
Device: HP Officejet Pro 8600 N911a Command line or Docker : Docker
docker-compose.yml with environement DIR="/scan" but logs of the container saying: node-hp-scan-to | Target folder: /tmp/scan-to-pcnLIIdn node-hp-scan-to | Temp folder: /tmp/scan-to-pchgfLJd
inside the container output of top: 60 58 node S 10.3g 67% 12 0% node index.js -d /scan -ip 192.168.181.17 -p '"scan"_yyyy.mm.dd_hh:MM:ss' so i assume that the directory is kind of set, but the app is not using the set directory.
Please attach the output with debug (-D switch, see documentation)