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
Describe the bug
Previously the scanservjs works for me quite good, but not sure since when, there is no printer can be selected in UI and nothing can be scan in the web ui
To Reproduce
Steps to reproduce the behavior:
Power on the printer
Start the scanservjs with docker run -d -p 8080:8080 --rm -v /opt/scaner/scan-data:/app/data/output -v /opt/scaner/scan-cfg:/app/config --device /dev/bus/usb/001/$1:/dev/bus/usb/001/$1 --name scanservjs-container sbs20/scanservjs:latest
Expected behavior
The printer appears in the webui and I can scan files with it
Screenshots
If applicable, add screenshots to help explain your problem.
Client (please complete the following information):
Browser Chrome
]Version 126.0.6478.127 (Official Build) (arm64)
Server (please complete the following information):
OS: Raspberrypi(Debian 11.9)
Docker version 26.0.0
Logs
# Test using the following form:
# export SANED_NET_HOSTS="a|b" AIRSCAN_DEVICES="c|d" DELIMITER="|"; ./entrypoint.sh
# turn off globbing
set -f
+ set -f
# split at newlines only (airscan devices can have spaces in)
IFS='
'
+ IFS=
# Get a custom delimiter but default to ;
DELIMITER=${DELIMITER:-;}
+ DELIMITER=;
# Insert a list of net hosts
if [ ! -z "$SANED_NET_HOSTS" ]; then
hosts=$(echo $SANED_NET_HOSTS | sed "s/$DELIMITER/\n/")
for host in $hosts; do
echo $host >> /etc/sane.d/net.conf
done
fi
+ [ ! -z ]
# Insert airscan devices
if [ ! -z "$AIRSCAN_DEVICES" ]; then
devices=$(echo $AIRSCAN_DEVICES | sed "s/$DELIMITER/\n/")
for device in $devices; do
sed -i "/^\[devices\]/a $device" /etc/sane.d/airscan.conf
done
fi
+ [ ! -z ]
# Insert pixma hosts
if [ ! -z "$PIXMA_HOSTS" ]; then
hosts=$(echo $PIXMA_HOSTS | sed "s/$DELIMITER/\n/")
for host in $hosts; do
echo "bjnp://$host" >> /etc/sane.d/pixma.conf
done
fi
+ [ ! -z ]
unset IFS
+ unset IFS
set +f
+ set +f
node ./server/server.js
+ node ./server/server.js
[2024-07-09T01:21:33.321Z] INFO (server): scanservjs started listening: https://:::8080
[2024-07-09T01:21:37.239Z] INFO (Http): { method: 'GET', path: '/api/v1/context' }
[2024-07-09T01:21:37.251Z] INFO (Application): devices.json does not exist. Reloading
[2024-07-09T01:21:37.254Z] INFO (Process): { execute: '/usr/bin/scanimage -L' }
[2024-07-09T01:21:40.874Z] INFO (Process): { execute: "/usr/bin/scanimage -d 'pixma:04A9176D_852BF5' -A" }
[2024-07-09T01:21:42.299Z] ERROR (Application): Ignoring pixma:04A9176D_852BF5. Error: Error: Command failed: /usr/bin/scanimage -d 'pixma:04A9176D_852BF5' -A
Output format is not set, using pnm as a default.
Segmentation fault (core dumped)
[2024-07-09T01:21:42.325Z] INFO (Api): Context {
devices: [],
version: '3.0.3',
diagnostics: [
{ success: true, message: 'Found /usr/bin/scanimage' },
{ success: true, message: 'Found /usr/bin/convert' }
],
paperSizes: [
{
name: 'A3 (@:paper-size.portrait)',
dimensions: { x: 297, y: 420 }
},
{
name: 'A4 (@:paper-size.portrait)',
dimensions: { x: 210, y: 297 }
},
{
name: 'A5 (@:paper-size.portrait)',
dimensions: { x: 148, y: 210 }
},
{
name: 'A5 (@:paper-size.landscape)',
dimensions: { x: 210, y: 148 }
},
{
name: 'A6 (@:paper-size.portrait)',
dimensions: { x: 105, y: 148 }
},
{
name: 'A6 (@:paper-size.landscape)',
dimensions: { x: 148, y: 105 }
},
{
name: 'B3 (@:paper-size.portrait)',
dimensions: { x: 353, y: 500 }
},
{
name: 'B4 (@:paper-size.portrait)',
dimensions: { x: 250, y: 353 }
},
{
name: 'B5 (@:paper-size.portrait)',
dimensions: { x: 176, y: 250 }
},
{
name: 'B5 (@:paper-size.landscape)',
dimensions: { x: 250, y: 176 }
},
{
name: 'B6 (@:paper-size.portrait)',
dimensions: { x: 125, y: 176 }
},
{
name: 'B6 (@:paper-size.landscape)',
dimensions: { x: 176, y: 125 }
},
{
name: 'DIN D3 (@:paper-size.portrait)',
dimensions: { x: 272, y: 385 }
},
{
name: 'DIN D4 (@:paper-size.portrait)',
dimensions: { x: 192, y: 272 }
},
{
name: 'DIN D5 (@:paper-size.portrait)',
dimensions: { x: 136, y: 192 }
},
{
name: 'DIN D5 (@:paper-size.landscape)',
dimensions: { x: 192, y: 136 }
},
{
name: 'DIN D6 (@:paper-size.portrait)',
dimensions: { x: 96, y: 136 }
},
{
name: 'DIN D6 (@:paper-size.landscape)',
dimensions: { x: 136, y: 96 }
},
{
name: '@:paper-size.letter (@:paper-size.portrait)',
dimensions: { x: 216, y: 279 }
},
{
name: '@:paper-size.legal (@:paper-size.portrait)',
dimensions: { x: 216, y: 356 }
},
{
name: '@:paper-size.tabloid (@:paper-size.portrait)',
dimensions: { x: 279, y: 432 }
},
{
name: '@:paper-size.ledger (@:paper-size.portrait)',
dimensions: { x: 432, y: 279 }
},
{
name: '@:paper-size.junior-legal (@:paper-size.portrait)',
dimensions: { x: 127, y: 203 }
},
{
name: '@:paper-size.half-letter (@:paper-size.portrait)',
dimensions: { x: 140, y: 216 }
}
],
actions: []
}
[2024-07-09T01:21:42.351Z] INFO (Http): { method: 'GET', path: '/api/v1/preview' }
[2024-07-09T01:21:42.359Z] INFO (Process): { execute: '/usr/bin/scanimage -L' }
[2024-07-09T01:21:45.971Z] INFO (Process): { execute: "/usr/bin/scanimage -d 'pixma:04A9176D_852BF5' -A" }
[2024-07-09T01:21:46.883Z] ERROR (Application): Ignoring pixma:04A9176D_852BF5. Error: Error: Command failed: /usr/bin/scanimage -d 'pixma:04A9176D_852BF5' -A
Output format is not set, using pnm as a default.
Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered:
Describe the bug
Previously the scanservjs works for me quite good, but not sure since when, there is no printer can be selected in UI and nothing can be scan in the web ui
To Reproduce
Steps to reproduce the behavior:
docker run -d -p 8080:8080 --rm -v /opt/scaner/scan-data:/app/data/output -v /opt/scaner/scan-cfg:/app/config --device /dev/bus/usb/001/$1:/dev/bus/usb/001/$1 --name scanservjs-container sbs20/scanservjs:latest
Expected behavior
The printer appears in the webui and I can scan files with it
Screenshots
If applicable, add screenshots to help explain your problem.
Client (please complete the following information):
Server (please complete the following information):
Logs
The text was updated successfully, but these errors were encountered: