Unattended installation of ArangoDB on Debian 9/ Ubuntu 18

206 views
Skip to first unread message

Monosij Dutta-Roy

unread,
May 25, 2018, 1:28:22 PM5/25/18
to ArangoDB
Hello -

I am updating my bash scripts for unattended installation of ArangoDB 3.3.9.

Repo installs fine and installation starts ok.

My previous scripts for 3.1.24 had these following debconf-selections:

echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
echo arangodb3 arangodb3/upgrade boolean false | debconf-set-selections
echo arangodb3 arangodb3/password password NEWPASSWORD | debconf-set-selections
echo arangodb3 arangodb3/password_again password NEWPASSWORD | debconf-set-selections

However, now I am stuck at setting a storage engine as below.

If you could please let me know what would be the debconf-set-selections for this and any other new selections that may have been added would be great.

For now the storage engine is ok to be set to auto i.e. mmfiles I understand.

But if you please let me know what would be the option to set to rocksdb, including any other additional installation steps necessary, as well would be great.

Thank you.

Monosij

... Stuck Here
Package configuration┌─────────────────────────┤ Configuring arangodb3 ├─────────────────────────┐│ Choose which storage engine you want to use. Please note that you can't   ││ switch storage engines of existing installations, a dump and restore is   ││ required therefore. 'auto' will pick the existing one or default to││ mmfiles.││││ Database storage engine││││auto    ││mmfiles││rocksdb││││││<Ok><Cancel>│││└───────────────────────────────────────────────────────────────────────────┘




Wilfried Gösgens

unread,
May 28, 2018, 4:25:54 AM5/28/18
to ArangoDB
Hi,
the storage engine you choose depends on your requirements:
https://docs.arangodb.com/3.3/Manual/Architecture/StorageEngines.html

If your application is known to perform well with mmfiles (the pre-existing storage engine)
you can stay with that - thats the reason why the default is auto == mmfiles - so users
have to choose a different storage engine.

You may want to test the behaviour and performance of your application by benchmarking
before / after switching it.

https://github.com/arangodb/arangodb/blob/devel/Installation/debian/templates.in
is the file containing all questions.

Cheers,
Willi

Monosij Dutta-Roy

unread,
May 30, 2018, 12:16:25 PM5/30/18
to ArangoDB
Hi Wilfried -

I was actually asking about unattended installation. Not the choice of storage engines. I am ok with default storage engine. Just how do I get past this screen in unatttended mode.

Please note the beginning part of my question.

Thank you.

Mono

Wilfried Gösgens

unread,
May 30, 2018, 12:54:45 PM5/30/18
to ArangoDB
Hi,
the template referenced in my post contains the neccessary information. Its:

echo arangodb3 arangodb3/storage_engine select mmfiles  | debconf-set-selections

according to http://manpages.ubuntu.com/manpages/xenial/man1/debconf-set-selections.1.html

Monosij Dutta-Roy

unread,
Jun 3, 2018, 10:18:59 AM6/3/18
to ArangoDB
Hi Wilfried -

Much thanks for your answer. Worked great!

I had just one other question.

I am trying the ArangoDB installation also on CentOS/ Fedora/ SuSELEAP.

Works great on all three, except trying to set the password there as well by this line:

ARANGODB_DEFAULT_ROOT_PASSWORD=NEWPASSWORD arango-secure-installation;

But somehow it does not seem to set it - it completely ignores the command, no errors though, as I see this post installation:

----------------------------------------------------------------------------------
Enable ArangoDB service:
  > systemctl enable arangodb3.service

SECURITY HINT:
run 'arango-secure-installation' to set a root password
the current password is '1967f9f2c4b8d9698b8f46b23eeeeb8f'
(You should do this for a FRESH install! For an UPGRADE the password does not need to be changed)
Running as unit: run-re044fe5c931a48f0b91d7ac32fe6f6c3.service
  Verifying        : arangodb3-3.3.9-1.x86_64                               1/1
 

Installed:
  arangodb3.x86_64 3.3.9-1                                                      
Complete!
----------------------------------------------------------------------------------

Please let me know if I should be running the set password a different way.

Or do you think it sets it ok.

Please let me know when you get a chance. Thank you again very much for your help.

Mono
Reply all
Reply to author
Forward
0 new messages