Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Scanner only works as root: user gets Speicherzugriffsfehler

  1. #1
    Join Date
    Dec 2014
    Location
    Vienna
    Posts
    10

    Default Scanner only works as root: user gets Speicherzugriffsfehler

    I upgraded from OpenSuse 12.1 to 13.2. Since then I only can scan as root. When I'm logged in as a user, I get the follwing output from scanimage -L:
    lp ppdev parport_pc
    Speicherzugriffsfehler
    The user is member of the lp-group;
    sane-find-scanner finds the scanner
    found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002
    ;
    udev rules knows my scanner (Canon Lide 210) (mentioned therein also with lp-group);
    /dev/bus/usb/002/002 mentions lp with group permission.

    The only workaround I found so far, was to start Xsane within KDE as root, but the scanned image then also can only be handled as root.

    Pls. let me know, if you need further information to be able to help.

    Thank you!
    RoXus

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    Quote Originally Posted by RoXus View Post
    I upgraded from OpenSuse 12.1 to 13.2. Since then I only can scan as root. When I'm logged in as a user, I get the follwing output from scanimage -L:


    The user is member of the lp-group;
    sane-find-scanner finds the scanner ;
    udev rules knows my scanner (Canon Lide 210) (mentioned therein also with lp-group);
    /dev/bus/usb/002/002 mentions lp with group permission.

    The only workaround I found so far, was to start Xsane within KDE as root, but the scanned image then also can only be handled as root.

    Pls. let me know, if you need further information to be able to help.

    Thank you!
    RoXus
    When you added the user to the 'lp' group, did you then log out and log back in?

  3. #3
    Join Date
    Dec 2014
    Location
    Vienna
    Posts
    10

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    Yes, the groups command gives
    users lp audio cdrom video vboxusers systemd-journal scanner
    (The 'scanner'-group is a remainder of another trial to find a solution for the problem by creating a separate group.)

    RoXus

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    Let's ignore the 'scanimage -L' error for a moment.

    When you plug in the scanner, run the following command
    Code:
    dmesg|tail
    and post the output here. Please use [CODE]..[/CO..] tags when posting output. (Refer to the '#' button in the editor.)

    What is reported by the following commands?
    Code:
    sane-find-scanner
    Code:
    scanimage -T

  5. #5
    Join Date
    Dec 2014
    Location
    Vienna
    Posts
    10

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    High deano_ferrari,

    here is my output from dmesg:
    Code:
    [   32.039126] Bluetooth: BNEP socket layer initialized
    [   32.347852] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [   36.887291] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [   37.611903] fuse init (API version 7.23)
    [   44.894172] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [   60.910336] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [   92.944028] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [  157.023339] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [  285.110122] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [  541.216960] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44
    here is sane-find-scanner (stripped from the comment lines):
    Code:
    could not open USB device 0x1d6b/0x0001 at 009:001: Access denied (insufficient permissions)
    found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002
    could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0001 at 008:001: Access denied (insufficient permissions)
    could not open USB device 0x058f/0x6362 at 001:002: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
    could not open USB device 0x046d/0xc52b at 007:002: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0001 at 007:001: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0003 at 006:001: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0002 at 005:001: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
    could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
    (At the moment I only have connected 1 USB-device, that's the scanner.)

    and here from scanimage -T (which is the same as scanimage -L now):
    Code:
     ppdev parport_pc
    modprobe: ERROR: could not insert 'lp': Operation not permitted
    Speicherzugriffsfehler
    I appreciate it very much that you are so helpful. Thank you

    RoXus

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    Unfortunately, the dmesg output did not capture the kernel messagging related to plugging in the scanner. (Maybe you waited too long before running it.)

    Anyway 'sane-find-scanner' correctly reports
    Code:
    found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002
    and here from scanimage -T (which is the same as scanimage -L now):
    Code:
     ppdev parport_pc
    modprobe: ERROR: could not insert 'lp': Operation not permitted
    Speicherzugriffsfehler
    The modules listed relate to legacy parallel port devices, so not sure whay they're being reported here.

    Do you perhaps have the 'parallel-printer-support' package installed? It's not reuqired for most users, unless the interface exists, and they use parallel port devices.
    Code:
    rpm -qa| grep parallel
    Does running the following scanner uttilities work (as user)?
    Code:
    scangui
    Code:
    skanlite
    Also, I'd like to see the output from 'xsane' (run as regular user from a terminal)
    Code:
    xsane
    FWIW, I use 'simple-scan' as my preferred scanning application. You might want to install and try that too.

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,578
    Blog Entries
    1

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    I did find this Fedora bug report that impacted some users and appeared to be related to a kernel-related regression and USB3 ports. Does that apply to you? Anyway, it may (or may not) be relevant here, so shared it just in case.

  8. #8
    Join Date
    Dec 2014
    Location
    Vienna
    Posts
    10

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    @deano_ferrari,

    first my output of the 4 commands (as user):
    Code:
    hans@linux-5nt1:~> rpm -qa| grep parallel
    parallel-printer-support-1.00-12.1.2.noarch
    
    hans@linux-5nt1:~> scangui
     ppdev parport_pc
    modprobe: ERROR: could not insert 'lp': Operation not permitted
    KCrash: Application 'scangui' crashing...
    KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
    KCrash: Connect sock_file=/home/hans/.kde4/socket-linux-5nt1/kdeinit4__0
    scangui: Fatal IO error: client killed
    
    hans@linux-5nt1:~> skanlite
     ppdev parport_pc
    modprobe: ERROR: could not insert 'lp': Operation not permitted
    KCrash: Application 'skanlite' crashing...
    KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
    KCrash: Connect sock_file=/home/hans/.kde4/socket-linux-5nt1/kdeinit4__0
    skanlite: Fatal IO error: client killed
    
    hans@linux-5nt1:~> xsane
     ppdev parport_pc
    modprobe: ERROR: could not insert 'lp': Operation not permitted
    Speicherzugriffsfehler
    Here is another trial of dmesg as user:
    Code:
    dmesg | tail
    [  537.283444] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [ 1049.580868] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [ 1743.036975] traps: xsane[6886] general protection ip:7f843e8a3ce0 sp:7fff458fd278 error:0 in libmfp.so.1.0.1[7f843e89b000+e000]
    [ 2073.996545] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
    [ 2279.848541] usb 2-5: USB disconnect, device number 2
    [ 2286.352365] usb 2-5: new high-speed USB device number 4 using ehci-pci
    [ 2286.471574] usb 2-5: New USB device found, idVendor=04a9, idProduct=190a
    [ 2286.471586] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 2286.471592] usb 2-5: Product: CanoScan
    [ 2286.471597] usb 2-5: Manufacturer: Canon
    Does this help?

    RoXus

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    On 2014-12-20 13:36, RoXus wrote:
    >
    > @deano_ferrari,
    >
    > first my output of the 4 commands (as user):
    >
    > Code:
    > --------------------
    > hans@linux-5nt1:~> rpm -qa| grep parallel
    > parallel-printer-support-1.00-12.1.2.noarch
    >
    > hans@linux-5nt1:~> scangui
    > ppdev parport_pc
    > modprobe: ERROR: could not insert 'lp': Operation not permitted
    > --------------------


    Wild guess:

    As you have the parallel port package installed, the utilities that you
    run as user first try to load the "lp" kernel module, and fail. At this
    point, they abort.

    You could load those kernel modules in advance as root (ppdev,
    parport_pc), then run "scangui" as user, to find out if that is the reason.

    Then simply remove the "parallel-printer-support-1.00-12.1.2.noarch"
    package.

    It is doubtful you have a machine with parallel printer port — or do you?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Scanner only works as root: user gets Speicherzugriffsfehler

    On 2014-12-16 23:16, RoXus wrote:
    >
    > I upgraded from OpenSuse 12.1 to 13.2.


    How was that done? boot dvd, choose upgrade? zypper dup?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •