You are not logged in.

#1 2014-02-23 22:03:44

gareththered
Member
From: West Yorkshire, UK
Registered: 2014-02-12
Posts: 6

[Solved] gphoto2 only works as root

I've used gphoto2 for years on other distros and it works fine as a normal user.  However, when I try this on Arch it fails with:-

gphoto2 --capture-image-and-download
                                                                               
*** Error ***              
An error occurred in the io-library ('I/O problem'): No error description available
ERROR: Could not capture image.
ERROR: Could not capture.

*** Error ***              
An error occurred in the io-library ('I/O problem'): No error description available

and running it with '--debug' produces:

0.017569 libusb1(2): gp_port_usb_open()
0.017580 libusb1(0): libusb_open returned -3
0.017603 context(0): An error occurred in the io-library ('I/O problem'): No error description available

*** Error ***              
An error occurred in the io-library ('I/O problem'): No error description available
ERROR: Could not capture image.
ERROR: Could not capture.

I have noticed that it works when I run it as root.  The wiki suggests that I placed the normal user in the 'storage' group, but that didn't help me out.  I've noticed a few older posts in this forum on this subject, but they mention consoleKit, which is obsolete as far as I understand.  Does anyone have any idea where I go next?

I'm running gphoto 2.5.3.1-1 and libusb 1.0.18-1

Last edited by gareththered (2014-02-24 16:45:12)

Offline

#2 2014-02-23 22:07:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [Solved] gphoto2 only works as root

As a sanity check, after you added the user to the starage group, that user did log out, then log back in. Right?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2014-02-24 07:45:42

gareththered
Member
From: West Yorkshire, UK
Registered: 2014-02-12
Posts: 6

Re: [Solved] gphoto2 only works as root

Yes - I did log off.  In fact, I've probably rebooted a few times too as I'm comparing Arch with a Fedora 20 installation to see if there are any glaring differences.  It all seems similar though :-(  I'm thinking along the lines of udev or polkit at the moment, but as I don't really understand these it means I'll need to do some reading up in order to get this resolved.

Offline

#4 2014-02-24 16:26:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] gphoto2 only works as root

Possible related bug report: https://bugs.archlinux.org/task/39024

Offline

#5 2014-02-24 16:44:39

gareththered
Member
From: West Yorkshire, UK
Registered: 2014-02-12
Posts: 6

Re: [Solved] gphoto2 only works as root

Scimmia - you're a genius ;-)

As root, I changed the extension:-

mv /usr/lib/udev/hwdb.d/20-gphoto.conf /usr/lib/udev/hwdb.d/20-gphoto.hwdb

and ran:-

udevadm hwdb --update

After reconnecting the camera it worked as a normal user.

Offline

Board footer

Powered by FluxBB