Closed quench2259 closed 4 months ago
@quench2259 Could you try again ?
@manuc66 I tried again, the pdf is created in the /tmp folder, but not moved to the /scan volume
I used this:
services:
node-scan:
image: docker.io/manuc66/node-hp-scan-to:master
hostname: node-hp-scan-to
environment:
- IP=192.168.1.53
- LABEL=paperless
- PATTERN="scan"_dd.mm.yyyy_hh:MM:ss
- PGID=1000
- PUID=1000
- TZ=Europe/London
restart: unless-stopped
and got this:
$ docker-compose up
[+] Running 1/1
✔ Container node-hp-scan-to-node-scan-1 Recreated 0.1s
Attaching to node-scan-1
node-scan-1 | s6-rc: info: service s6rc-oneshot-runner: starting
node-scan-1 | s6-rc: info: service s6rc-oneshot-runner successfully started
node-scan-1 | s6-rc: info: service fix-attrs: starting
node-scan-1 | s6-rc: info: service fix-attrs successfully started
node-scan-1 | s6-rc: info: service legacy-cont-init: starting
node-scan-1 | cont-init: info: running /etc/cont-init.d/10-adduser
node-scan-1 | usermod: no changes
node-scan-1 |
node-scan-1 | User uid: 1000
node-scan-1 | User gid: 1000
node-scan-1 | -------------------------------------
node-scan-1 |
node-scan-1 | cont-init: info: /etc/cont-init.d/10-adduser exited 0
node-scan-1 | s6-rc: info: service legacy-cont-init successfully started
node-scan-1 | s6-rc: info: service legacy-services: starting
node-scan-1 | s6-rc: info: service legacy-services successfully started
node-scan-1 | Starting
node-scan-1 | WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
node-scan-1 | WARNING: See https://github.com/node-config/node-config/wiki/Strict-Mode
node-scan-1 | WARNING: No configurations found in configuration directory:/app/config
node-scan-1 | WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
node-scan-1 | Using device ip: 192.168.1.53
node-scan-1 | Target folder: /scan
node-scan-1 | Temp folder: /tmp/scan-to-pcoIIkmJ
node-scan-1 | Running iteration: 1 - errorCount: 0
node-scan-1 | Host destinations fetched: DESKTOP-RELMUJH, paperless, emmanuel-ms7850
node-scan-1 | Re-using existing destination: paperless - /WalkupScanToComp/WalkupScanToCompDestinations/0731f399-af09-4a77-bd6d-7dc1b69abdb7
node-scan-1 | Using: paperless
node-scan-1 | Waiting scan event for: /WalkupScanToComp/WalkupScanToCompDestinations/0731f399-af09-4a77-bd6d-7dc1b69abdb7
node-scan-1 | Start listening for new ScanEvent
node-scan-1 | Scan event captured, saving scan #0
node-scan-1 | Waiting user input: 1/50
node-scan-1 | Waiting user input: 2/50
node-scan-1 | Waiting user input: 3/50
node-scan-1 | Selected shortcut: SavePDF
node-scan-1 | Scan will be converted to pdf, using /tmp/scan-to-pcoIIkmJ as temp scan output directory for individual pages
node-scan-1 | ScanPlexMode is : Simplex
node-scan-1 | Afd is : Empty
node-scan-1 | New job created: http://192.168.1.53:8080/Jobs/JobList/11
node-scan-1 | Ready to download page job page 1 at: /Scan/Jobs/11/Pages/1
node-scan-1 | Page downloaded to: /tmp/scan-to-pcoIIkmJ/scan_17.07.2024_08:20:13.jpg
node-scan-1 | Job state: Completed, totalPages: 1:
node-scan-1 | Start listening for new ScanEvent
node-scan-1 | Scan of page(s) completed totalPages: 1:
node-scan-1 | The following page(s) have been rendered inside '/scan/scan_17.07.2024_08:20:12.pdf':
node-scan-1 | - page 1 - 1700x2338
node-scan-1 | Running iteration: 2 - errorCount: 0
node-scan-1 | Host destinations fetched: DESKTOP-RELMUJH, paperless, emmanuel-ms7850
node-scan-1 | Re-using existing destination: paperless - /WalkupScanToComp/WalkupScanToCompDestinations/0731f399-af09-4a77-bd6d-7dc1b69abdb7
node-scan-1 | Using: paperless
node-scan-1 | Waiting scan event for: /WalkupScanToComp/WalkupScanToCompDestinations/0731f399-af09-4a77-bd6d-7dc1b69abdb7
node-scan-1 | Start listening for new ScanEvent
And the file is there:
$ docker exec -it 905a2d587985 sh
/app # ls -al /scan/scan_17.07.2024_08:20:12.pdf
-rw-r--r-- 1 node node 77473 Jul 17 20:20 /scan/scan_17.07.2024_08:20:12.pdf
What are your parameters ?
Works! Thanks!
After latest update, the PDFs are not generated anymore in the temp and target folder.
Device: HP 6970
Command line or Docker : Docker within synology container app (was working until today),
Describe what is happening When performing scan to node-hp-scan-to on printer, PDFs are not created anymore.
Please attach the output with debug (-D switch, see documentation)