[Dachs-support] dachs error
Nathanaƫl Jourdane
njourdane at irap.omp.eu
Thu Sep 6 12:50:27 CEST 2018
Hello Markus,
When I run dachs, the web server doesn't start and I get the following error:
root at 680e6baf4064:/var/gavo# dachs serve start
/usr/lib/python2.7/dist-packages/gavo/base/config.py:600: UserWarning: /var/gavo/etc/
defaultmeta.txt does not exist, registry interface will be broken
srcPath)
Traceback (most recent call last):
File "/usr/bin/dachs", line 11, in <module>
load_entry_point('gavodachs==1.2', 'console_scripts', 'dachs')()
File "/usr/lib/python2.7/dist-packages/gavo/user/cli.py", line 170, in main
logui.LoggingUI(base.ui)
File "/usr/lib/python2.7/dist-packages/gavo/user/logui.py", line 29, in __init__
maxBytes=500000, backupCount=3, mode=0664)
File "/usr/lib/python2.7/dist-packages/gavo/protocols/gavolog.py", line 36, in __init__
handlers.RotatingFileHandler.__init__(self, *args, **kwargs)
File "/usr/lib/python2.7/logging/handlers.py", line 117, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/__init__.py", line 911, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: u'/var/gavo/logs/dcErrors'
Do you understand why?
Notes:
I use Docker. See Dockerfile attached.
The folder /var/gavo contains only the files I put here with docker COPY command.
Thank you.
--
Nathanaël Jourdane
Développeur
IRAP - Institut de Recherche en Astrophysique et Planétologie
9 avenue du Colonel Roche - 31028 Toulouse cedex 4
+33(0)5.61.55.58.37
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.g-vo.org/pipermail/dachs-support/attachments/20180906/9b238330/attachment.html>
-------------- next part --------------
FROM debian:jessie
# Dockerfile metadata
LABEL Description="DaCHS is a publishing infrastructure for the Virtual Observatory." \
Author="Markus Demleitner" \
URL="http://docs.g-vo.org/DaCHS" \
Reference="http://arxiv.org/abs/1408.5733" \
maintainer="Nathanael Jourdane <nathanael dot jourdane at irap.omp.eu>"
# Set environment variables (note the DACHS_TAG variable, choose one between 'beta' or 'release')
ENV LANG=C.UTF-8 \
DEBIAN_FRONTEND='noninteractive' \
LOG_FILE=/var/gavo/logs/web.log \
DACHS_TAG=release \
PG_VERSION=9.4
# Install generic dependencies
RUN apt-get update && \
apt-get install -y wget locales
# Among other things, configure users and files access
RUN echo LANG="$LANG" > /etc/default/locale && \
addgroup --system gavo && \
adduser --system --ingroup gavo gavo && \
adduser --disabled-password --gecos "" --ingroup gavo dachsroot && \
adduser --quiet gavo gavo && \
adduser --quiet dachsroot gavo && \
mkdir -m 775 /var/gavo && \
chown dachsroot /var/gavo
# Install DaCHS and postgresql
RUN echo "deb http://vo.ari.uni-heidelberg.de/debian $DACHS_TAG main" > /etc/apt/sources.list.d/gavo.list && \
echo "deb-src http://vo.ari.uni-heidelberg.de/debian $DACHS_TAG main" >> /etc/apt/sources.list.d/gavo.list && \
wget -qO - http://docs.g-vo.org/archive-key.asc | apt-key add - && \
apt-get update && \
apt-get install -y python-gavodachs imagemagick && \
apt-get install -y postgresql-$PG_VERSION postgresql-$PG_VERSION-pgsphere postgresql-$PG_VERSION-q3c && \
apt-get clean && \
# The file describing the epntap2 mixin. Used here only because the DaCHS mixin was obsolete.
wget https://raw.githubusercontent.com/epn-vespa/DaCHS-for-VESPA/master/mixin-EPN-TAP-2.0/epntap2.rd-2.xml -O \
/usr/lib/python2.7/dist-packages/gavo/resources/inputs/__system__/epntap2.rd
# Set Postgres environment variables (which require $PG_VERSION)
ENV PGFILE=/etc/postgresql/${PG_VERSION}/main/pg_hba.conf \
PGDATA=/var/lib/postgresql/${PG_VERSION} \
PGBIN=/usr/lib/postgresql/${PG_VERSION}/bin/postgres \
PGCONF=/etc/postgresql/${PG_VERSION}/main/postgresql.conf \
PGLOG=/var/log/postgresql/postgresql-${PG_VERSION}-main.log
# PostgreSQL needs this directory for log files; then some commands to configure PostgreSQL
RUN mkdir -p -m 777 /var/run/postgresql/${PG_VERSION}-main.pg_stat_tmp/ \
echo LANG="$LANG" > /etc/default/locale && \
echo "listen_addresses='*'" >> "${PGFILE%/*}/postgresql.conf" && \
ln -s /var/lib/postgresql/${PG_VERSION}/main /pg_main
# Expose internal psql port
EXPOSE 5432
COPY postgres_startup.sh postgres_startup.sh
RUN chmod u+x postgres_startup.sh
# Install netCDF4-python (used in several services)
ENV HDF5_VERSION=1.10.0 \
NETCDF4_VERSION=4.4.1.1 \
HDF5_DIR=/usr/local/hdf5 \
NETCDF4_DIR=/usr/local/netcdf
RUN apt-get install -y gcc build-essential bzip2 libghc-zlib-dev m4 libopenmpi-dev file python-dev python-pip
RUN wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${HDF5_VERSION%*\.*}/hdf5-${HDF5_VERSION}/src/hdf5-${HDF5_VERSION}.tar.gz && \
tar -xf hdf5-${HDF5_VERSION}.tar.gz && \
cd hdf5-${HDF5_VERSION} && \
./configure --enable-shared --enable-hl --prefix=${HDF5_DIR} && \
make -j5 && \
make install && \
cd .. && rm -rf hdf5-*
RUN wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-${NETCDF4_VERSION}.tar.gz && \
tar -xf netcdf-${NETCDF4_VERSION}.tar.gz && \
cd ../netcdf-${NETCDF4_VERSION} && \
CPPFLAGS=-I${HDF5_DIR}/include LDFLAGS=-L${HDF5_DIR}/lib ./configure --enable-netcdf-4 --enable-shared --enable-dap --prefix=${NETCDF4_DIR} && \
make -j5 && \
make install && \
cd .. && rm -rf netcdf-*
RUN pip install pip --upgrade
RUN pip install cython setuptools --upgrade
RUN pip install netCDF4 PyYAML --upgrade
RUN pip install PyAstronomy scipy
# Expose internal web port
EXPOSE 80
WORKDIR /var/gavo/
# Update DaCHS config file and startup script on the container
COPY logo.png logo.png
COPY dachs_startup.sh dachs_startup.sh
COPY dachs_pub.sh dachs_pub.sh
RUN chmod u+x dachs_startup.sh dachs_pub.sh
# Run startup script.
CMD tail -f /dev/null
# CMD ["./dachs_startup.sh"]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.g-vo.org/pipermail/dachs-support/attachments/20180906/9b238330/attachment.sig>
More information about the Dachs-support
mailing list