[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2022-03-15 Thread David Ward
There shouldn't be a problem here. The purpose of saned is to share
scanners that are physically attached to the local system, so that
remote systems can use them. If the scanner is already accessible over
the network, a remote system can connect to it without using saned.

See also /usr/share/doc/libsane1/README.Debian.gz and
/usr/share/doc/sane-utils/README.Debian regarding permissions for
scanner device files and saned in Debian/Ubuntu.

** Changed in: sane-backends (Ubuntu)
   Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-07-22 Thread Bob/Paul
As I understand it, this is an upstream design choice. saned doesn't let
users select which scanners to share, it just shares any scanners that
it can see. I think if network scanners were shared, then 2 saned
instances on the same network get into a loop sharing the same
scanner(s) recursively.

Nothing in the SaneDaemonTutorial points out this issue and it certainly
wasn't clear to me from the saned manpage that this would be a problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-07-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: sane-backends (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-05-06 Thread Ubuntu Foundations Team Bug Bot
The attachment "Here is the patch I need to get saned to find all the
scanners" seems to be a patch.  If it isn't, please remove the "patch"
flag from the attachment, remove the "patch" tag, and if you are a
member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-05-06 Thread Christopher M. Penalver
** Changed in: sane-backends (Ubuntu)
   Status: Expired => New

** Description changed:

  When running scanimage -L on a remote system no scanner is found.
  when running scanimage -L on local system (where saned is run) finds the 
scanners.
  
  when running scaned in debug mode I can see the remote system request a
  list of scanner but no list is returned to scanimge -L. This tell me the
  network setups are working and access control is also working. It just
  does not find the scanner under saned but finds it under scanimage -L
  
  I have remove saned stuff from systemd so I can run saned by hand
  
  output from scanimage on local system (where saned is run)
  root@cups:~# scanimage -L
  device `hpaio:/net/HP_Color_LaserJet_CM2320nf_MFP?ip=192.168.1.238' is a 
Hewlett-Packard HP_Color_LaserJet_CM2320nf_MFP all-in-one
  device `hpaio:/net/Photosmart_Prem_C410_series?zc=HPF3B712' is a 
Hewlett-Packard Photosmart_Prem_C410_series all-in-one
  device `hpaio:/net/photosmart_prem_c410_series?ip=192.168.1.31&queue=false' 
is a Hewlett-Packard photosmart_prem_c410_series all-in-one
  root@cups:~#
  
  output from saned with debug turned on:
  root@cups:~# saned -d128
  [saned] main: starting debug mode (level 128)
  [saned] read_config: searching for config file
  [saned] read_config: data port range: 1 - 10100
  [saned] read_config: done reading config
  [saned] saned (AF-indep+IPv6) from sane-backends 1.0.25git starting up
  [saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
  [saned] do_bindings: [1] socket () using IPv6
  [saned] do_bindings: [1] setsockopt ()
  [saned] do_bindings: [1] bind () to port 6566
  [saned] do_bindings: [1] listen ()
  [saned] do_bindings: [0] socket () using IPv4
  [saned] do_bindings: [0] setsockopt ()
  [saned] do_bindings: [0] bind () to port 6566
  [saned] do_bindings: [0] bind failed: Address already in use
  [saned] run_standalone: spawning Avahi process
  [saned] run_standalone: waiting for control connection
  [saned] saned_avahi_callback: AVAHI_CLIENT_S_RUNNING
  [saned] saned_create_avahi_services: adding service 'saned'
  [saned] saned_avahi_group_callback: service 'saned' successfully established
  [saned] handle_connection: processing client connection
  [saned] check_host: detected an IPv4-mapped address
  [saned] check_host: access by remote host: :::192.168.1.141
  [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
  [saned] check_host: local hostname: cups
  [saned] check_host: local hostname(s) (from DNS): cups.mlb.org
  [saned] check_host: local hostname(s) (from DNS): (null)
  [saned] check_host: local hostname(s) (from DNS): (null)
  [saned] check_host: remote host doesn't have same addr as local
  [saned] check_host: opening config file: /etc/hosts.equiv
  [saned] check_host: can't open config file: /etc/hosts.equiv (No such file or 
directory)
  [saned] check_host: opening config file: saned.conf
  [saned] check_host: config file line: `# saned.conf'
  [saned] check_host: config file line: `# Configuration for the saned daemon'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `## Daemon options'
  [saned] check_host: config file line: `# Port range for the data connection. 
Choose a range inside [1024 - 65535].'
  [saned] check_host: config file line: `# Avoid specifying too large a range, 
for performance reasons.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `# ONLY use this if your saned server 
is sitting behind a firewall. If your'
  [saned] check_host: config file line: `# firewall is a Linux machine, we 
strongly recommend using the'
  [saned] check_host: config file line: `# Netfilter nf_conntrack_sane 
connection tracking module instead.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `data_portrange = 1 - 10100'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `## Access list'
  [saned] check_host: config file line: `# A list of host names, IP addresses 
or IP subnets (CIDR notation) that'
  [saned] check_host: config file line: `# are permitted to use local SANE 
devices. IPv6 addresses must be enclosed'
  [saned] check_host: config file line: `# in brackets, and should always be 
specified in their compressed form.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `# The hostname matching is not 
case-sensitive.'
  [saned] check_host: config file line: `192.168.1.0/24'
  [saned] check_host: subnet with base IP = 192.168.1.0, CIDR netmask = 24
  [saned] check_host: access granted from IP address 192.168.1.141 (in subnet 
192.168.1.0/24)
  [saned] init: access granted
  [saned] init: access granted to batch@:::192.168.1.141
  [saned] process_request: waiting for request
  [saned] process_request: got request 1
  [saned] process_request: waiting for request
  [s

[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-04-10 Thread mike Bernson
The problem still exists


I needed to patch saned.c:

I needed to change SANE_TRUE to SANE_FALSE

at line 1830:
 reply.status =
  sane_get_devices ((const SANE_Device ***) &reply.device_list,
SANE_FALSE);


** Attachment added: "Here is the patch I need to get saned to find all the 
scanners"
   
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+attachment/4859713/+files/saned.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-04-09 Thread Launchpad Bug Tracker
[Expired for sane-backends (Ubuntu) because there has been no activity
for 60 days.]

** Changed in: sane-backends (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-02-08 Thread Rolf Leggewie
** Description changed:

- When running scanimage -L on a remove system no scanner are found.
+ When running scanimage -L on a remote system no scanner is found.
  when running scanimage -L on local system (where saned is run) finds the 
scanners.
  
  when running scaned in deubg mode I can see the remote system request a list 
of scanner
  but no list is returned to scanimge -L. This tell me the network setups are 
working and
  access control is also working. It just does not find the scanner under saned 
but finds
  it under scanimage -L
- 
  
  I have remove scaned stuff from systemd so I can run saned by hand
  
  output from scanimage on local system (where saned is run)
  root@cups:~# scanimage -L
  device `hpaio:/net/HP_Color_LaserJet_CM2320nf_MFP?ip=192.168.1.238' is a 
Hewlett-Packard HP_Color_LaserJet_CM2320nf_MFP all-in-one
  device `hpaio:/net/Photosmart_Prem_C410_series?zc=HPF3B712' is a 
Hewlett-Packard Photosmart_Prem_C410_series all-in-one
  device `hpaio:/net/photosmart_prem_c410_series?ip=192.168.1.31&queue=false' 
is a Hewlett-Packard photosmart_prem_c410_series all-in-one
- root@cups:~# 
+ root@cups:~#
  
  output from saned with debug turned on:
  root@cups:~# saned -d128
  [saned] main: starting debug mode (level 128)
  [saned] read_config: searching for config file
  [saned] read_config: data port range: 1 - 10100
  [saned] read_config: done reading config
  [saned] saned (AF-indep+IPv6) from sane-backends 1.0.25git starting up
  [saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
  [saned] do_bindings: [1] socket () using IPv6
  [saned] do_bindings: [1] setsockopt ()
  [saned] do_bindings: [1] bind () to port 6566
  [saned] do_bindings: [1] listen ()
  [saned] do_bindings: [0] socket () using IPv4
  [saned] do_bindings: [0] setsockopt ()
  [saned] do_bindings: [0] bind () to port 6566
  [saned] do_bindings: [0] bind failed: Address already in use
  [saned] run_standalone: spawning Avahi process
  [saned] run_standalone: waiting for control connection
  [saned] saned_avahi_callback: AVAHI_CLIENT_S_RUNNING
  [saned] saned_create_avahi_services: adding service 'saned'
  [saned] saned_avahi_group_callback: service 'saned' successfully established
  [saned] handle_connection: processing client connection
  [saned] check_host: detected an IPv4-mapped address
  [saned] check_host: access by remote host: :::192.168.1.141
  [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
  [saned] check_host: local hostname: cups
  [saned] check_host: local hostname(s) (from DNS): cups.mlb.org
  [saned] check_host: local hostname(s) (from DNS): (null)
  [saned] check_host: local hostname(s) (from DNS): (null)
  [saned] check_host: remote host doesn't have same addr as local
  [saned] check_host: opening config file: /etc/hosts.equiv
  [saned] check_host: can't open config file: /etc/hosts.equiv (No such file or 
directory)
  [saned] check_host: opening config file: saned.conf
  [saned] check_host: config file line: `# saned.conf'
  [saned] check_host: config file line: `# Configuration for the saned daemon'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `## Daemon options'
  [saned] check_host: config file line: `# Port range for the data connection. 
Choose a range inside [1024 - 65535].'
  [saned] check_host: config file line: `# Avoid specifying too large a range, 
for performance reasons.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `# ONLY use this if your saned server 
is sitting behind a firewall. If your'
  [saned] check_host: config file line: `# firewall is a Linux machine, we 
strongly recommend using the'
  [saned] check_host: config file line: `# Netfilter nf_conntrack_sane 
connection tracking module instead.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `data_portrange = 1 - 10100'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `'
  [saned] check_host: config file line: `## Access list'
  [saned] check_host: config file line: `# A list of host names, IP addresses 
or IP subnets (CIDR notation) that'
  [saned] check_host: config file line: `# are permitted to use local SANE 
devices. IPv6 addresses must be enclosed'
  [saned] check_host: config file line: `# in brackets, and should always be 
specified in their compressed form.'
  [saned] check_host: config file line: `#'
  [saned] check_host: config file line: `# The hostname matching is not 
case-sensitive.'
  [saned] check_host: config file line: `192.168.1.0/24'
  [saned] check_host: subnet with base IP = 192.168.1.0, CIDR netmask = 24
  [saned] check_host: access granted from IP address 192.168.1.141 (in subnet 
192.168.1.0/24)
  [saned] init: access granted
  [saned] init: access granted to batch@:::192.168.1.141
  [saned] process_request: waiting for request
  [saned] process_request: got request 1
  [saned] process_request: w

[Bug 1632183] Re: saned not find scanner that scanimage -L finds

2017-01-11 Thread Christopher M. Penalver
mike Bernson, thank you for reporting this and helping make Ubuntu
better.

To advise, the saned documentation has been rewritten. Hence, could you
please advise if it helps following
https://help.ubuntu.com/community/SaneDaemonTutorial ?

** Changed in: sane-backends (Ubuntu)
   Importance: Undecided => Low

** Changed in: sane-backends (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632183

Title:
  saned not find scanner that scanimage -L finds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1632183/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs