×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Astroberry and image download error with Nikon D800

  • Posts: 3
  • Thank you received: 0
Following error occurs when taking images at Ekos Sequence Queue on KStars:
"Error downloading image from camera: Directory not found"
Here is debug log:
INFO   67.860496 sec   : Session log file 
DEBUG   82.878604 sec   : Configuration successfully saved.
WARNING   95.380769 sec   : World Coordinate System is enabled. CCD rotation must be set either manually or by solving the image before proceeding to capture any frames, otherwise the WCS information may be invalid.
DEBUG   128.588268 sec   : Setting focuser speed to -1
DEBUG   128.899365 sec   : manual focus -3 -> -1024.000000
DEBUG   128.991985 sec   : manual focus -3 -> -1024.000000
DEBUG   130.465165 sec   : Setting focuser speed to -1
DEBUG   130.549318 sec   : manual focus -3 -> -1024.000000
DEBUG   130.630884 sec   : manual focus -3 -> -1024.000000
DEBUG   132.940781 sec   : Setting focuser speed to 1
DEBUG   133.238105 sec   : manual focus 1 -> 128.000000
DEBUG   133.316795 sec   : manual focus 1 -> 128.000000
DEBUG   133.928261 sec   : Setting focuser speed to 1
DEBUG   134.032589 sec   : manual focus 1 -> 128.000000
DEBUG   134.165060 sec   : manual focus 1 -> 128.000000
DEBUG   134.638454 sec   : Setting focuser speed to 1
DEBUG   134.714579 sec   : manual focus 1 -> 128.000000
DEBUG   134.817519 sec   : manual focus 1 -> 128.000000
DEBUG   135.363476 sec   : Setting focuser speed to 1
DEBUG   135.462611 sec   : manual focus 1 -> 128.000000
DEBUG   135.579156 sec   : manual focus 1 -> 128.000000
DEBUG   136.192969 sec   : Setting focuser speed to 1
DEBUG   136.500893 sec   : manual focus 1 -> 128.000000
DEBUG   136.610203 sec   : manual focus 1 -> 128.000000
DEBUG   137.003805 sec   : Setting focuser speed to 1
DEBUG   137.118654 sec   : manual focus 1 -> 128.000000
DEBUG   137.218429 sec   : manual focus 1 -> 128.000000
DEBUG   140.158263 sec   : Setting focuser speed to 1
DEBUG   140.449399 sec   : manual focus 1 -> 128.000000
DEBUG   140.554027 sec   : manual focus 1 -> 128.000000
DEBUG   145.273156 sec   : The video stream has been disabled. Frame count 0
DEBUG   145.273304 sec   : Setting toggle widget viewfinder: 0
DEBUG   145.291061 sec   : Setting new configuration OK.
DEBUG   153.413205 sec   : Requested CCD Frame is (  0,  0) (7379 x 4919)
DEBUG   153.418341 sec   : Starting exposure (exptime: 1 secs, mirror lock: 0)
DEBUG   153.418481 sec   :   Mutex locked
DEBUG   153.418526 sec   : Setting radio/menu widget iso: 9 (400)
DEBUG   153.421297 sec   : Setting new configuration OK.
DEBUG   153.421443 sec   : Setting radio/menu widget capturetarget: 1 (Memory card)
DEBUG   153.424105 sec   : Setting new configuration OK.
DEBUG   153.424233 sec   : Using camera predefined exposure ranges.
DEBUG   153.424289 sec   : Finding optimal exposure setting for 1 seconds in shutterspeed2 (count=57)...
DEBUG   153.424341 sec   : Best match: 1 seconds Index: 39
DEBUG   153.424381 sec   : Setting radio/menu widget shutterspeed2: 39 (1)
DEBUG   153.459615 sec   : Setting new configuration OK.
DEBUG   153.460133 sec   : Using predefined exposure time: 1 seconds
DEBUG   153.460257 sec   : Exposure started
INFO   153.460742 sec   : Starting 1 sec exposure
DEBUG   154.461746 sec   : Reading exposure...
DEBUG   258.766465 sec   : Exposure complete
DEBUG   258.766683 sec   : gp_file_new_from_fd result: 0
DEBUG   258.766739 sec   : Downloading /
DEBUG   258.766777 sec   : Downloading result: -107
ERROR   258.766822 sec   : Error downloading image from camera: Directory not found
DEBUG   258.766901 sec   : Setting radio/menu widget iso: 9 (400)
DEBUG   258.769776 sec   : Setting new configuration OK.
DEBUG   258.769947 sec   : Setting radio/menu widget shutterspeed2: 56 (Bulb)
DEBUG   258.827434 sec   : Setting new configuration OK.
ERROR   258.827971 sec   : Exposure failed to save image... Directory not found
Upload mode is set to "Client" and Capture target is set to "Memory card". Download directory is set to /home/astroberry
Camera images are saved to folder DCIM/105ND800 and filenames are format "_DSC2931"
Used configuration: Astroberry v1.0.4 and Raspberry PI3


Attachment not found



I'll give more information when needed

Thanks in advance for all help
Last edit: 6 years 3 months ago by Jorma Yksjärvi. Reason: attachment in wrong place
6 years 3 months ago #22223

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
I have no experience with Nikon DSLR driver, but I don't think you can combine client upload mode and target set to memory card. You should probably use either of the two. Note, that saving images directly to a memory card installed in your DSLR will disable majority of Ekos functionalities, which require images available to the system - either locally or remotely.
The following user(s) said Thank You: Jorma Yksjärvi
6 years 3 months ago #22230

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
Thanks.Kaczorek
I'm not sure have i tried that option before cause indilib.org/devices/ccds/gphoto.html is mentioned ""Nikon is officially supported under GPhoto but the level of features supported is less than that of Canon cameras. For bulb exposures to work, you must set Capture Target to SD Card. By default it is set to Internal RAM which is problematic in Nikon cameras."

Anyway I tried also "internal RAM" option but same error occured
6 years 3 months ago #22232

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
Can you try local instead of client? Make sure that the directory is set in Ekos CCD. The strange thing is that your log says "Downloading /" even though you have /home/astroberry directory set in Ekos.
6 years 3 months ago #22234

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
Already tried that, no help
Actually that's what I wondered too.
I think this is the part of code where error occures:
void gphoto_set_upload_settings(gphoto_driver *gphoto, int setting)
{
    gphoto->upload_settings = setting;
}
 
static int download_image(gphoto_driver *gphoto, CameraFilePath *fn, int fd)
{
    int result;
    CameraFileInfo info;
 
    strncpy(gphoto->filename, fn->name, sizeof(gphoto->filename));
 
    if (fd < 0)
    {
        result = gp_file_new(&gphoto->camerafile);
        DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "gp_file_new result: %d", result);
    }
    else
    {
        result = gp_file_new_from_fd(&gphoto->camerafile, fd);
        DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "gp_file_new_from_fd result: %d", result);
    }
 
    DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Downloading %s/%s", fn->folder, fn->name);
 
    result = gp_camera_file_get(gphoto->camera, fn->folder, fn->name, GP_FILE_TYPE_NORMAL, gphoto->camerafile,
                                gphoto->context);
 
    DEBUGFDEVICE(device, INDI::Logger::DBG_DEBUG, "Downloading result: %d", result);
 
    if (result != GP_OK)
    {
        DEBUGFDEVICE(device, INDI::Logger::DBG_ERROR, "Error downloading image from camera: %s",
                     gp_result_as_string(result));
        gp_file_free(gphoto->camerafile);
        gphoto->camerafile = NULL;
        return result;
    }

I think there should be directory and file name after "Downloading /", right?
6 years 3 months ago #22241

Please Log in or Create an account to join the conversation.

Time to create page: 0.503 seconds