docker: astrometry config file

98 views
Skip to first unread message

xola

unread,
Aug 11, 2023, 5:34:18 AM8/11/23
to astrometry
Hi,

I am trying to run the solve-field command on a docker container, however, I keep getting the following error ' $ docker run solver:0.0.1

Reading input file 1 of 1: "mbxgpS202307060020.fits"...

Extracting sources...

simplexy: found 247 sources.

Solving...

---------------------------------------------------------------------

You must list at least one index in the config file (/usr/local/etc/astrometry.cfg)

See http://astrometry.net/use.html about how to get some index files.

---------------------------------------------------------------------


solve-field.c:519:run_engine engine failed.  Command that failed was:

  /usr/local/bin/astrometry-engine --config /usr/local/etc/astrometry.cfg ./mbxgpS202307060020.axy

 ioutils.c:568:run_command_get_outputs Command failed: return value 255'

I have also attached a screenshot for this below. 

According to my understanding the configuration file is supposed to exist in the dir where astrometry is built and installed, however, solve-field complains that the file is not there. 

I have provided the path that's supposed to have the configuration file but still no luck. 

Can anyone perhaps assist with this?

 
Screenshot 2023-08-11 at 11.29.46.png

Dustin Lang

unread,
Aug 11, 2023, 9:50:19 AM8/11/23
to xola, astrometry
Hi,

I think you've already discovered that you can give the full path to the config file with the
    solve-field --config PATH.cfg
option.

Similarly, in the config file, you need lines like

add_path /usr/local/astrometry/data
add_path /somewhere/else
autoindex

and then it will look for all index files in those directories.  Obviously those directories must exist inside your docker container (or be mounted in) and must contain index files.

cheers,
dustin





--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/49ec8ab0-a112-48c0-9eab-17b03f5c71d9n%40googlegroups.com.

Dustin Lang

unread,
Aug 11, 2023, 11:47:20 AM8/11/23
to xola ndaliso, astrometry
Hi,

When you are using Docker, you need to think about what the paths are going to be INSIDE your docker container.

The astrometry.cfg file you are going to use needs to point to directories INSIDE your docker container.

You have not said how you are running docker -- are you using the "--volume" or "--mount" commands?  Let's assume you are not.

In that case, your astrometry.cfg file currently has

add_path /Users/xola/Documents/work/wcs_field_recognition/astrometry.net/docker/solver/data/

but THAT PATH DOES NOT EXIST INSIDE YOUR DOCKER CONTAINER.  You copied the index file into /src, so you need

add_path /src


Remember, you can always run docker interactively to see exactly what you can see inside the container:

docker run -it DOCKER_IMAGE_NAME bash

and then you can look around and see what files are visible.  You will see that "/Users" is not visible.

cheers,
dustin









On Fri, Aug 11, 2023 at 11:37 AM xola ndaliso <xola.n...@gmail.com> wrote:
Hi Dustin,

I did that actually, but it is still complaining that it cannot open the directory with index files.

I have attached a screenshot of this below. I have copied this directory to docker workdir but still not helping. 

I even copied one index.fits file to the dicker workdir and still docker complains that it cannot find the specified index. 

I have attached the Dockerfile, edited astrometry.cfg and one index file index-4107.fits below.

I'd appreciate any further pointers you might have on this, Dustin.

cheers,

Xola

xola ndaliso

unread,
Aug 14, 2023, 12:33:46 PM8/14/23
to Dustin Lang, astrometry
Thanks a lot Dustin, works perfectly.

cheers,

-x
Reply all
Reply to author
Forward
0 new messages