OPENDAP / hyrax-docker

GNU Lesser General Public License v3.0
22 stars 12 forks source link

Unable to use my data #16

Open zwergon opened 4 years ago

zwergon commented 4 years ago

Hello,

I'm trying to use docker image as described in the readme.

I successfully built the docker image and when i use the data provided by the container, it works perfectly.

docker build -t hyrax_image --build-arg USE_NCWMS=true --no-cache hyrax

As soon as i try to mount another volume,

docker run \
--name hyrax_container \
--publish 8080:8080 \
**--volume /home/jef/HyraxData:/usr/share/hyrax** 
hyrax_image \
-e jean-francois.lecomte@ifpen.fr \
-s \
-n http://localhost:8080

It doesn't work anymore. I am always able to navigate at the url : http://localhost:8080/opendap but as soon as i try to click on a file stored in /home/jef/HyraxData i get a server error.

If i look in /var/log/bes i obtain the following error message

2019-12-10T15:11:06GMT|&|123|&|get.ddx,dap2,/usr/share/hyrax/coads_climatology.nc
2019-12-10T15:11:06GMT|&|123|&|ERROR: BES Internal Error: Could not open /usr/share/hyrax/coads_climatology.nc. (NCRequestHandler.cc:406)

I really don't understand what is going wrong.

jgallagher59701 commented 4 years ago

Nathan,

Any idea what’s going on here?

Thanks, James

On Dec 10, 2019, at 7:56 AM, zwergon notifications@github.com wrote:

Hello,

I'm trying to use docker image as described in the readme.

I successfully built the docker image and when i use the data provided by the container, it works perfectly.

docker build -t hyrax_image --build-arg USE_NCWMS=true --no-cache hyrax

As soon as i try to mount another volume,

docker run \ --name hyrax_container \ --publish 8080:8080 \ --volume /home/jef/HyraxData:/usr/share/hyrax hyrax_image \ -e jean-francois.lecomte@ifpen.fr \ -s \ -n http://localhost:8080 It doesn't work anymore. I am always able to navigate at the url : http://localhost:8080/opendap http://localhost:8080/opendap but as soon as i try to click on a file stored in /home/jef/HyraxData i get a server error.

If i look in /var/log/bes i obtain the following error message

2019-12-10T15:11:06GMT|&|123|&|get.ddx,dap2,/usr/share/hyrax/coads_climatology.nc 2019-12-10T15:11:06GMT|&|123|&|ERROR: BES Internal Error: Could not open /usr/share/hyrax/coads_climatology.nc. (NCRequestHandler.cc:406) I really don't understand what is going wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OPENDAP/hyrax-docker/issues/16?email_source=notifications&email_token=AB7Q4KWTQ6WO256RTYUINEDQX63ZPA5CNFSM4JZAZAHKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H7P7QEA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7Q4KQODGLQW5PDHPO6TPTQX63ZPANCNFSM4JZAZAHA.

jgallagher59701 commented 4 years ago

Hi,

Can you point a browser at the sever and see the html pages it generates?

-- James Gallagher jgallagher at opendap.org

On Dec 10, 2019, at 07:56, zwergon notifications@github.com wrote:

 Hello,

I'm trying to use docker image as described in the readme.

I successfully built the docker image and when i use the data provided by the container, it works perfectly.

docker build -t hyrax_image --build-arg USE_NCWMS=true --no-cache hyrax

As soon as i try to mount another volume,

docker run \ --name hyrax_container \ --publish 8080:8080 \ --volume /home/jef/HyraxData:/usr/share/hyrax hyrax_image \ -e jean-francois.lecomte@ifpen.fr \ -s \ -n http://localhost:8080 It doesn't work anymore. I am always able to navigate at the url : http://localhost:8080/opendap but as soon as i try to click on a file stored in /home/jef/HyraxData i get a server error.

If i look in /var/log/bes i obtain the following error message

2019-12-10T15:11:06GMT|&|123|&|get.ddx,dap2,/usr/share/hyrax/coads_climatology.nc 2019-12-10T15:11:06GMT|&|123|&|ERROR: BES Internal Error: Could not open /usr/share/hyrax/coads_climatology.nc. (NCRequestHandler.cc:406) I really don't understand what is going wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

gajowi commented 4 years ago

The problem may be that the user that runs bed in the container does not have read access to the content (but can list the content). You could start a shell in the running container and poke about. docker exec- it...

Gareth

On Thu, 12 Dec. 2019, 12:59 pm James Gallagher, notifications@github.com wrote:

Hi,

Can you point a browser at the sever and see the html pages it generates?

-- James Gallagher jgallagher at opendap.org

On Dec 10, 2019, at 07:56, zwergon notifications@github.com wrote:

 Hello,

I'm trying to use docker image as described in the readme.

I successfully built the docker image and when i use the data provided by the container, it works perfectly.

docker build -t hyrax_image --build-arg USE_NCWMS=true --no-cache hyrax

As soon as i try to mount another volume,

docker run \ --name hyrax_container \ --publish 8080:8080 \ --volume /home/jef/HyraxData:/usr/share/hyrax hyrax_image \ -e jean-francois.lecomte@ifpen.fr \ -s \ -n http://localhost:8080 It doesn't work anymore. I am always able to navigate at the url : http://localhost:8080/opendap but as soon as i try to click on a file stored in /home/jef/HyraxData i get a server error.

If i look in /var/log/bes i obtain the following error message

2019-12-10T15:11:06GMT|&|123|&|get.ddx,dap2,/usr/share/hyrax/ coads_climatology.nc 2019-12-10T15:11:06GMT|&|123|&|ERROR: BES Internal Error: Could not open /usr/share/hyrax/coads_climatology.nc. (NCRequestHandler.cc:406) I really don't understand what is going wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OPENDAP/hyrax-docker/issues/16?email_source=notifications&email_token=AAUSKFI5JAOGAO4AZKTGPMDQYGLITA5CNFSM4JZAZAHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGVGMVY#issuecomment-564815447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUSKFJ6TSMDZXCOCYB6I2DQYGLITANCNFSM4JZAZAHA .