Quantcast

I/O error connecting to camera and downloading files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

I/O error connecting to camera and downloading files

ewgdc
Hello All,

We use gphoto2 to capture images for a construction site time-lapse video project using a Nikon D800E camera connected to a Macbook Air computer and have encountered an I/O problem.  

I had some coding help to set up the system and part of the set up was to automate downloading and deleting images from the camera card.  This system has been mostly operational for three years.  The software has been remarkably stable overall but two days ago we encountered a new I/O problem and cannot find a solution and am hoping to find some help by posting here.  Our system debug file is attached at the end of this post for reference.  I am not skilled using Terminal and command code so please be as complete/helpful by including specific instructions for command-line entries (:

Our system takes pictures every 30 minutes and usually downloads a .JPG and a raw file, but two days ago the system stopped downloading images.  When I log into the system and use Terminal to try to manually download images I get an error like this.


xxxxxxxxxx-Air:g2.timelapse.xxxxxxxxxx.com xxxxxxxxxxg2$ gphoto2 --capture-image-and-download
                                                                               
*** Error ***              
PTP I/O Error
ERROR: Could not capture image.
ERROR: Could not capture.
New file is in location /store_00010001/DCIM/100D800E/G2G_2428.JPG on the camera

*** Error ***              
File '/store_00010001/DCIM/100D800E/G2G_2428.JPG' does not exist.
ERROR: Could not get image.


(END of Terminal log portion)




So the camera takes a picture and saves it to the media card, but does not download it to our computer as it should.  If I then try to simply list the files on the card, I usually get the following error:

xxxxxxxxxxxx-Air:g2.timelapse.xxxxxxxxxxx.com xxxxxxxxxxxxxg2$ gphoto2 -L
There is no file in folder '/'.                                                
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.

*** Error ***              
PTP I/O Error
*** Error (-7: 'I/O problem') ***

(END of Terminal log portion)

And if I try to manually download a specific image, I get the following error message:

xxxxxxxxxxx-Air:g2.timelapse.xxxxxxxxxxx.com xxxxxxxxxxxxg2$ gphoto2 --get-file=/store_00010001/DCIM/100D800E/G2G_2423.JPG
                                                                               
*** Error ***              
PTP I/O Error
*** Error (-108: 'File not found') ***


I said "usually get the following error" because sometimes it will list files on the card, which is how I know that the card now has ~130 images on it, since this morning I was able to get it to list files.  However, I cannot reliably list files or submit other commands.

I have done some research on this site and others to see what else I might try and I have found some leads, but the coding is over my head.  One link I found involves an exchange about this issue between a gphoto2 user and Marcus Meissner, gphoto2's creator.  He recommends performing a type of permissions reset or action but I can't reproduce the commands on the G2 system.  Marcus, perhaps you could help advise if this post is relevant to my case and can help me figure out how to properly enter in Terminal? Thanks for whatever help you can offer!

The link is:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795925

Message #10 received at 795925@bugs.debian.org (full text, mbox, reply):


From: Marcus Meissner <marcus@jet.franken.de>
To: 795925@bugs.debian.org
Subject: re: testing
Date: Thu, 20 Aug 2015 09:40:54 +0200

Can you check if the permissions worked?

after the cameras is attached:

lsusb | grep Canon

from output:
        Bus 001 Device 008: ID 04a9:30ee Canon, Inc. EOS 350D

then do

ls -l /dev/bus/usb/001/008

?

Ciao, Marcus

(END of copied thread)

I tried the lsusb command in both normal and shell mode but got an error.  Here is my entry in Terminal in gphoto2 Shell Mode:

gphoto2: {...imelapse.xxxxxxxxxx.com} /> lsusb | grep Canon
ERROR: Invalid command.

Maybe I am just entering it incorrectly.  Please help me understand how to properly enter the commands if that is the case.  Sorry for my lack of knowledge in this area!!

I have also consulted the following links for help but am not sure the silver bullet lies here or if so how to enter the code properly.  

http://gphoto-software.10949.n7.nabble.com/Problem-connecting-with-Canon-Rebel-XT-EOS-350D-in-normal-mode-td15180.html


http://www.linuxquestions.org/questions/linux-software-2/usb-permission-problem-gphoto2-447370/

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=66643

If anyone can provide help/guidance/code commands I would be most appreciative!!!

Thank you,

Eric

Here now is the debug file:

0.000151 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000205 main                        (2): gphoto2 2.5.6
0.000217 main                        (2): gphoto2 has been compiled with the following options:
0.000226 main                        (2):  + /usr/bin/clang (C compiler used)
0.000231 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000236 main                        (2):  + exif (for displaying EXIF information)
0.000241 main                        (2):  + no cdk (for accessing configuration options)
0.000246 main                        (2):  + no aa (for displaying live previews)
0.000250 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000255 main                        (2):  + readline (for easy navigation in the shell)
0.000265 main                        (2): libgphoto2 2.5.7
0.000274 main                        (2): libgphoto2 has been compiled with the following options:
0.000279 main                        (2):  + all camlibs
0.000284 main                        (2):  + /usr/bin/clang (C compiler used)
0.000289 main                        (2):  + ltdl (for portable loading of camlibs)
0.000293 main                        (2):  + no EXIF (for special handling of EXIF files)
0.000301 main                        (2): libgphoto2_port 0.12.0
0.000309 main                        (2): libgphoto2_port has been compiled with the following options:
0.000314 main                        (2):  + /usr/bin/clang (C compiler used)
0.000319 main                        (2):  + ltdl (for portable loading of camlibs)
0.000324 main                        (2):  + USB (libusb1, for USB cameras)
0.000329 main                        (2):  + serial (for serial cameras)
0.000334 main                        (2):  + no resmgr (serial port access and locking)
0.000339 main                        (2):  + no ttylock (serial port locking)
0.000343 main                        (2):  + no lockdev (serial port locking)
0.000348 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.000353 main                        (2): IOLIBS env var not set, using compile-time default instead
0.000358 main                        (2): invoked with following arguments:
0.000363 main                        (2):   --debug
0.000368 main                        (2):   --debug-logfile=my-logfile.txt
0.000396 load_settings               (2): Creating $HOME/.gphoto
0.000489 load_settings               (2): Loading settings from file '/Users/xxxxxxxxxxg2/.gphoto/settings'.
0.000771 gp_camera_free              (2): Freeing camera...
0.000783 gp_port_free                (2): Freeing port...
0.000794 gp_filesystem_reset         (2): resetting filesystem
0.000799 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.000804 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.000809 delete_all_folders          (2): Internally deleting all folders from '/'...
0.000815 lookup_folder               (2): Lookup folder '/'...
0.000821 lookup_folder               (2): Found! / is 0x7ffd0a40bdf0
0.000830 recurse_delete_folder       (2): Recurse delete folder 0x7ffd0a40bdf0//


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I/O error connecting to camera and downloading files

Jim Easterbrook
On 29/09/16 18:01, ewgdc wrote:
>
> I had some coding help to set up the system and part of the set up was to
> automate downloading and deleting images from the camera card.  This system
> has been mostly operational for three years.

Have you simply worn out the camera's card? Have you tried using the
camera manually to check it's still working OK?
--
Jim Easterbrook                 <http://www.jim-easterbrook.me.uk/>

------------------------------------------------------------------------------
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: I/O error connecting to camera and downloading files

Marcus Meissner-4
On Thu, Sep 29, 2016 at 07:54:57PM +0100, Jim Easterbrook wrote:
> On 29/09/16 18:01, ewgdc wrote:
> >
> > I had some coding help to set up the system and part of the set up was to
> > automate downloading and deleting images from the camera card.  This system
> > has been mostly operational for three years.
>
> Have you simply worn out the camera's card? Have you tried using the
> camera manually to check it's still working OK?

Yes, after this long time of usage some form of hardware failure would also
be on my mind.

Perhaps just the SD Card has issues.

If not, capturing with
gphoto2 --capture-image-and-download --debug --debug-logfile=xx.log
and sending the xx.log (can send to me persoanlly as it might be too large)

Ciao, Marcus

------------------------------------------------------------------------------
_______________________________________________
Gphoto-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
Loading...