gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

gphoto2 reports "Unspecified error" on raspberry pi

Open Nears opened this issue 3 years ago • 15 comments

I am trying to setup gphoto2 on my raspberry pi to connect to my Z5 (corrected, Z4 was a typo) via wifi. To do so I used the latest code base from git and compiled the lib as well as the tool.

`$ gphoto2 --version gphoto2 2.5.26.1

Copyright (c) 2000-2020 Marcus Meissner and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of gphoto2 under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options: gphoto2 2.5.26.1 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline libgphoto2 2.5.26.1 standard camlibs (SKIPPING lumix), gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, EXIF, USB, serial without locking ` Then I try to connect to my cam (Nikon Z5) but I do get the following log:

$ env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port ptpip:192.168.0.50 --summary --camera="Nikon Z5"

*** Error *** An error occurred in the io-library ('Unspecified error'): No error description available *** Error (-1: 'Unspecified error') ***

0.000247 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000622 main (2): gphoto2 2.5.26.1 0.000760 main (2): gphoto2 has been compiled with the following options: 0.000871 main (2): + gcc (C compiler used) 0.000973 main (2): + popt (mandatory, for handling command-line parameters) 0.001076 main (2): + exif (for displaying EXIF information) 0.001177 main (2): + no cdk (for accessing configuration options) 0.001278 main (2): + no aa (for displaying live previews) 0.001378 main (2): + jpeg (for displaying live previews in JPEG format) 0.001477 main (2): + no readline (for easy navigation in the shell) 0.001595 main (2): libgphoto2 2.5.26.1 0.001713 main (2): libgphoto2 has been compiled with the following options: 0.001833 main (2): + standard camlib set SKIPPING SOME (ax203 canon digigr8 dimagev directory docupen jl2005a jl2005c kodak_dc240 mars pentax ptp2 ricoh_g3 sierra sonix sq905 st2205 topfield tp6801 SKIPPING lumix) 0.001941 main (2): + gcc (C compiler used) 0.002039 main (2): + ltdl (for portable loading of camlibs) 0.002287 main (2): + EXIF (for special handling of EXIF files) 0.002457 main (2): libgphoto2_port 0.12.0 0.002589 main (2): libgphoto2_port has been compiled with the following options: 0.002697 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 0.002796 main (2): + gcc (C compiler used) 0.002897 main (2): + ltdl (for portable loading of iolibs) 0.002996 main (2): + EXIF (for vusb) 0.003097 main (2): + USB (libusb1, for USB cameras) 0.003197 main (2): + serial (for serial cameras) 0.003294 main (2): + no resmgr (serial port access and locking) 0.003514 main (2): + no ttylock (serial port locking) 0.003630 main (2): + no lockdev (serial port locking) 0.003739 main (2): CAMLIBS env var not set, using compile-time default instead 0.003841 main (2): IOLIBS env var not set, using compile-time default instead 0.003940 main (2): invoked with following arguments: 0.004041 main (2): --debug 0.004139 main (2): --debug-logfile=my-logfile.txt 0.004239 main (2): --port 0.004336 main (2): ptpip:192.168.0.50 0.004431 main (2): --summary 0.004528 main (2): --camera=Nikon Z5 0.004844 main (2): Processing 'port' option ('ptpip:192.168.0.50')... 0.005097 gp_port_info_list_load (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'... 0.006348 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.008835 gp_port_library_list (2): found fstab fsname proc 0.009098 gp_port_library_list (2): found fstab fsname PARTUUID=738a4d67-01 0.009393 gp_port_library_list (2): found fstab fsname PARTUUID=738a4d67-02 0.010191 gp_port_library_list (2): found mtab fsname /dev/root 0.010464 gp_port_library_list (2): found mtab fsname devtmpfs 0.010632 gp_port_library_list (2): found mtab fsname sysfs 0.010788 gp_port_library_list (2): found mtab fsname proc 0.010951 gp_port_library_list (2): found mtab fsname securityfs 0.011111 gp_port_library_list (2): found mtab fsname tmpfs 0.011631 gp_port_library_list (2): found mtab fsname devpts 0.011815 gp_port_library_list (2): found mtab fsname tmpfs 0.012068 gp_port_library_list (2): found mtab fsname tmpfs 0.012599 gp_port_library_list (2): found mtab fsname tmpfs 0.012947 gp_port_library_list (2): found mtab fsname cgroup2 0.013108 gp_port_library_list (2): found mtab fsname cgroup 0.013255 gp_port_library_list (2): found mtab fsname none 0.013490 gp_port_library_list (2): found mtab fsname cgroup 0.013644 gp_port_library_list (2): found mtab fsname cgroup 0.014025 gp_port_library_list (2): found mtab fsname cgroup 0.014192 gp_port_library_list (2): found mtab fsname cgroup 0.014339 gp_port_library_list (2): found mtab fsname cgroup 0.014481 gp_port_library_list (2): found mtab fsname cgroup 0.014622 gp_port_library_list (2): found mtab fsname cgroup 0.014762 gp_port_library_list (2): found mtab fsname debugfs 0.015014 gp_port_library_list (2): found mtab fsname systemd-1 0.015171 gp_port_library_list (2): found mtab fsname sunrpc 0.015438 gp_port_library_list (2): found mtab fsname mqueue 0.015592 gp_port_library_list (2): found mtab fsname configfs 0.015878 gp_port_library_list (2): found mtab fsname /dev/mmcblk0p1 0.016120 gp_port_library_list (2): found mtab fsname /etc/nas.autofs 0.016283 gp_port_library_list (2): found mtab fsname tmpfs 0.016984 foreach_func (2): Loaded '' ('^disk:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.017150 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.019025 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.019211 foreach_func (2): Loaded '' ('^ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.019941 foreach_func (2): Loaded 'IP Connection' ('ip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.020053 foreach_func (2): Loaded '' ('^ip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.020158 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.023580 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.023791 foreach_func (2): Loaded '' ('^serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.023898 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.073554 foreach_func (2): Loaded '' ('^usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.073775 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,004') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.073883 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,003') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.073987 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'. 0.076487 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'. 0.078735 gp_port_info_list_count (2): Counting entries (10 available)... 0.078924 gp_port_info_list_count (2): 5 regular entries available. 0.079053 gp_port_info_list_lookup_path(2): Looking for path 'ptpip:192.168.0.50' (10 entries available)... 0.079193 gp_port_info_list_lookup_path(2): Starting regex search for 'ptpip:192.168.0.50'... 0.079298 gp_port_info_list_lookup_path(2): Trying '^disk:'... 0.079735 gp_port_info_list_lookup_path(2): re_match failed (-1) 0.079868 gp_port_info_list_lookup_path(2): Trying '^ptpip:'... 0.080481 gp_port_info_list_get_info (2): Getting info of entry 5 (11 available)... 0.080681 gp_camera_set_port_info (2): Setting port info for port 'Generic Port' at 'ptpip:192.168.0.50'... 0.083785 gp_port_set_settings (2): Setting settings... 0.084091 load_settings (2): Creating gphoto config directory ('/home/pi/.gphoto') 0.084657 load_settings (2): Loading settings from file '/home/pi/.gphoto/settings'. 0.085069 gp_setting_set (2): Setting key 'port' to value 'ptpip:192.168.0.50' (gphoto2) 0.085253 save_settings (2): Saving 3 setting(s) to file "/home/pi/.gphoto/settings" 0.086893 main (2): Processing 'model' option ('Nikon Z5')... 0.087303 gp_abilities_list_load_dir (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1'... 0.088478 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/ax203'. 0.088698 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/canon'. 0.088820 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/digigr8'. 0.088923 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/dimagev'. 0.089029 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/directory'. 0.089134 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/docupen'. 0.089241 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/jl2005a'. 0.089348 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/jl2005c'. 0.089457 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/kodak_dc240'. 0.089556 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/mars'. 0.089663 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/pentax'. 0.089770 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/ptp2'. 0.089875 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/ricoh_g3'. 0.089984 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/sierra'. 0.090091 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/sonix'. 0.090200 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/sq905'. 0.090302 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/st2205'. 0.090403 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/topfield'. 0.090505 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/tp6801'. 0.090650 gp_abilities_list_load_dir (2): Found 19 camera drivers. 0.640800 gp_camera_set_abilities (2): Setting abilities ('Nikon Z5')... 0.641053 gp_setting_set (2): Setting key 'model' to value 'Nikon Z5' (gphoto2) 0.641182 save_settings (2): Saving 3 setting(s) to file "/home/pi/.gphoto/settings" 0.646614 gp_camera_init (2): Initializing camera... 0.647239 gp_camera_init (2): Loading '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.26.1/ptp2'... 0.677162 gp_port_open (2): Opening port... 0.678476 ptp_ptpip_connect (2): connecting to ptpip:192.168.0.50. 0.769262 ptp_ptpip_init_command_request(3): ptpip/init_cmd data: (hexdump of 48 bytes) 0000 30 00 00 00 01 00 00 00-cc 6b b6 4e 4e 6f d9 ab 0........k.NNo.. 0010 08 ed 9e fc a4 84 21 3a-72 00 70 00 69 00 31 00 ......!:r.p.i.1. 0020 2d 00 74 00 65 00 73 00-74 00 00 00 00 00 01 00 -.t.e.s.t.......

0.770132 ptp_ptpip_init_command_request ptpip.c:481: return 48 / len 48 0.798508 ptp_ptpip_generic_read (3): ptpip/generic_read header: (hexdump of 8 bytes) 0000 0c 00 00 00 05 00 00 00- ........

0.798918 ptp_ptpip_generic_read (3): ptpip/generic_read data: (hexdump of 4 bytes) 0000 01 00 00 00 - ....

0.799054 ptp_ptpip_init_command_ack ptpip.c:506: bad type returned 5 0.800097 camera_init library.c:9366: Failed to connect. 0.800299 gp_port_close (2): Closing port... 0.803496 gp_context_error (0): An error occurred in the io-library ('Unspecified error'): No error description available 0.815756 gp_camera_free (2): Freeing camera... 0.816006 gp_port_free (2): Freeing port... 0.816124 gp_port_close (2): Closing port... 0.816596 gp_filesystem_reset (2): resetting filesystem 0.816737 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 0.816835 gp_filesystem_lru_clear (2): fscache LRU list already empty 0.816932 delete_all_folders (2): Internally deleting all folders from '/'... 0.817032 lookup_folder (2): Lookup folder '/'... 0.817130 lookup_folder (2): Found! / is 0x1da3460 0.817225 recurse_delete_folder (2): Recurse delete folder 0x1da3460// 0.817323 delete_all_files (2): Delete all files in folder 0x1da3460// `

Any idea what I am doing wrong? Was gphoto2 really tested with the Z5 as it is listed as supported camera? Thanks for any help - I am also willing to support on more further debugging if I do get some guidance.

Nears avatar Dec 29 '20 19:12 Nears