Skip to content

Single instance ignoring password configuration #71

@averri

Description

@averri

I have created the following Docker file:

FROM arangodb:3.4.6
ENV ARANGO_ROOT_PASSWORD root
ENV ARANGO_NO_AUTH 0
COPY dumps /docker-entrypoint-initdb.d/dumps/reviews

Starting the container with:
docker run -p 8529:8529 reviews

The Arangodb logs:

automatically choosing storage engine
Initializing root user...Hang on...
2019-06-21T21:12:27Z [7] WARNING {startup} using default storage engine 'rocksdb', as no storage engine was explicitly selected via the `--server.storage-engine` option
2019-06-21T21:12:27Z [7] INFO {startup} please note that default storage engine has changed from 'mmfiles' to 'rocksdb' in ArangoDB 3.4
2019-06-21T21:12:27Z [7] INFO {syscall} file-descriptors (nofiles) hard limit is 1048576, soft limit is 1048576
2019-06-21T21:12:27Z [7] WARNING {threads} --server.threads (64) is more than eight times the number of cores (2), this might overload the server
2019-06-21T21:12:28Z [7] INFO {startup} server will now shut down due to upgrade, database initialization or admin restoration.
Initializing database...Hang on...
/entrypoint.sh: restoring databases
restoring /docker-entrypoint-initdb.d/dumps/reviews into reviews
2019-06-21T21:12:33Z [188] INFO {restore} Creating database 'reviews'
2019-06-21T21:12:33Z [188] INFO {restore} Server version: 3.4.6-1
2019-06-21T21:12:33Z [188] INFO {restore} Database name in source dump is 'reviews'
2019-06-21T21:12:33Z [188] INFO {restore} Connected to ArangoDB 'http+tcp://127.0.0.1:8999'
2019-06-21T21:12:33Z [188] INFO {restore} # Re-creating document collection 'companies'...
2019-06-21T21:12:33Z [188] INFO {restore} # Re-creating document collection 'review-comments'...
2019-06-21T21:12:33Z [188] INFO {restore} # Re-creating document collection 'reviews'...
2019-06-21T21:12:33Z [188] INFO {restore} # Re-creating document collection 'users'...
2019-06-21T21:12:33Z [188] INFO {restore} # Dispatched 4 job(s) to 2 worker(s)
2019-06-21T21:12:33Z [188] INFO {restore} # Loading data into document collection 'companies', data size: 1102 byte(s)
2019-06-21T21:12:33Z [188] INFO {restore} # Loading data into document collection 'review-comments', data size: 0 byte(s)
2019-06-21T21:12:33Z [188] INFO {restore} # Successfully restored document collection 'review-comments'
2019-06-21T21:12:33Z [188] INFO {restore} # Loading data into document collection 'reviews', data size: 1251 byte(s)
2019-06-21T21:12:33Z [188] INFO {restore} # Successfully restored document collection 'companies'
2019-06-21T21:12:33Z [188] INFO {restore} # Loading data into document collection 'users', data size: 1170 byte(s)
2019-06-21T21:12:33Z [188] INFO {restore} # Successfully restored document collection 'reviews'
2019-06-21T21:12:33Z [188] INFO {restore} # Successfully restored document collection 'users'
2019-06-21T21:12:33Z [188] INFO {restore} Processed 4 collection(s) in 0.244318 s, read 3523 byte(s) from datafiles, sent 3 data batch(es) of 3520 byte(s) total size

Database initialized...Starting System...
2019-06-21T21:12:36Z [1] INFO ArangoDB 3.4.6-1 [linux] 64bit, using jemalloc, build tags/v3.4.6.1-0-gd3c504bfc9, VPack 0.1.33, RocksDB 5.16.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.1.0j  20 Nov 2018
2019-06-21T21:12:36Z [1] INFO detected operating system: Linux version 4.9.125-linuxkit (root@659b6d51c354) (gcc version 6.4.0 (Alpine 6.4.0) ) #1 SMP Fri Sep 7 08:20:28 UTC 2018
2019-06-21T21:12:36Z [1] INFO {authentication} Jwt secret not specified, generating...
2019-06-21T21:12:36Z [1] INFO using storage engine rocksdb
2019-06-21T21:12:36Z [1] INFO {cluster} Starting up with role SINGLE
2019-06-21T21:12:36Z [1] INFO {syscall} file-descriptors (nofiles) hard limit is 1048576, soft limit is 1048576
2019-06-21T21:12:36Z [1] WARNING {threads} --server.threads (64) is more than eight times the number of cores (2), this might overload the server
2019-06-21T21:12:37Z [1] INFO {authentication} Authentication is turned off, authentication for unix sockets is turned on
2019-06-21T21:12:38Z [1] INFO using endpoint 'http+tcp://0.0.0.0:8529' for non-encrypted requests
2019-06-21T21:12:38Z [1] INFO ArangoDB (version 3.4.6-1 [linux]) is ready for business. Have fun!

After starting, it's possible to access the web interface at http://localhost:8529 with no password.

Inside the container, the environment variables are set correctly:

$ docker exec -it reviews-db sh
/ # env
ARANGO_PACKAGE=arangodb3_3.4.6.1-1_amd64.deb
HOSTNAME=df039fb4c3f5
SHLVL=1
HOME=/root
ARANGO_ROOT_PASSWORD=root
TERM=xterm
ARANGO_VERSION=3.4.6.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ARANGO_URL=https://download.arangodb.com/arangodb34/DEBIAN/amd64
ARANGO_PACKAGE_URL=https://download.arangodb.com/arangodb34/DEBIAN/amd64/arangodb3_3.4.6.1-1_amd64.deb
ARANGO_NO_AUTH=0
ARANGO_SIGNATURE_URL=https://download.arangodb.com/arangodb34/DEBIAN/amd64/arangodb3_3.4.6.1-1_amd64.deb.asc
PWD=/

Host operating system: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions