ArangoDB on Uberspace

General 11 Comments

How to use ArangoDB on Uberspace?

ArangoDB is (not yet) available on Uberspace. So how to use it? Basically Uberspace is a Centos 6 linux system, so you can use the executables provided. I’ve created a small shell script to install ArangoDB on an Uberspace system. Note that this is still experimental.

Log in and execute

wget -O - https://www.arangodb.org/repositories/Uberspace/arangodb-1.4.3.sh | sh

During the installtion you have the optin to bind the server to an IPv4 address, an IPv6 address, localhost, or unix domain sockets. Please note that – with the exception of domain sockets – everyone can connect to this socket. So, you should supply a password when using normal sockets.

This will create a folder “arangodb” with the executables and JavaScript files for ArangoDB. It also creates to shell scripts “arangod.sh” and “arangosh.sh” to start the server and the shell with the correct path. You can move these files into your “bin” folder.

[fceller@indus ~]$ ./arangod.sh 
ArangoDB has been started. Please check the log file "/home/fceller/arangodb-1.3.2/var/log/arangodb/arangod.log"!
[fceller@indus ~]$ ./arangosh.sh 
Please specify a password: 
 
                                       _     
  __ _ _ __ __ _ _ __   __ _  ___  ___| |__  
 / _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \ 
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
 \__,_|_|  \__,_|_| |_|\__, |\___/|___/_| |_|
                       |___/                 
 
Welcome to arangosh 1.3.2. Copyright (c) triAGENS GmbH
Using Google V8 3.16.14 JavaScript engine, READLINE 6.0, ICU 49.1.2
 
Connected to ArangoDB 'tcp://localhost:8529' version 1.3.2

About Frank Celler

Frank is both entrepreneur and backend developer, developing mostly memory databases for two decades. He is the lead developer of ArangoDB and co-founder of triAGENS. Try to challenge Frank asking him questions on C, C++ and MRuby. Besides Frank organizes Cologne’s nosql group & nosql conferences.
  • bitboxer

    You should also consider adding a guide on how to add this to daemontools. Without it, you will have to launch it everytime the server reboots…and you don’t want that :)

  • http://www.jbspeakr.me/ Jan Brennenstuhl

    @bitboxer:disqus should work that way on Uberspace:
    https://gist.github.com/jbspeakr/6056165

  • Kirill

    Unfortunately doesn’t work for me :( Can you help me with this? I would really love my favorite database run on Uberspace!

    • fceller

      Can you post some details in https://groups.google.com/forum/?hl=de#!forum/arangodb ? I’ll check asap.

      • Kirill

        I could start install it now, but when I try to start arangod I get these error log:

        tail arangod.log

        2013-11-27T22:06:44Z [18277] INFO ArangoDB 1.4.1 — ICU 52.1, V8 version 3.16.14.1, SSL engine OpenSSL 1.0.0-fips 29 Mar 2010

        2013-11-27T22:06:44Z [18277] INFO using default language ‘en’

        2013-11-27T22:06:44Z [18277] ERROR unable to create base application directory ‘/home/kirill/arangodb-1.4.1/usr/share/arangodb/js/apps/databases’

        2013-11-27T22:06:44Z [18277] ERROR unable to initialise databases: system error

        2013-11-27T22:06:44Z [18277] FATAL cannot start server: system error

        2013-11-27T22:07:28Z [21510] INFO ArangoDB 1.4.1 — ICU 52.1, V8 version 3.16.14.1, SSL engine OpenSSL 1.0.0-fips 29 Mar 2010

        2013-11-27T22:07:28Z [21510] INFO using default language ‘en’

        2013-11-27T22:07:28Z [21510] ERROR unable to create base application directory ‘/home/kirill/arangodb-1.4.1/usr/share/arangodb/js/apps/databases’

        2013-11-27T22:07:28Z [21510] ERROR unable to initialise databases: system error

        2013-11-27T22:07:28Z [21510] FATAL cannot start server: system error

        • fceller

          I have updated the script to 1.4.3 and verified that it works on Uberspace. Can you please check again?

  • heaven78

    i used the shell script on my uberspace-account and got this error in the log-file:
    ‘FATAL cannot start server: database directory is locked’

    i noticed also that this database directory (in arangodb-1.4.1/usr/share/arangodb/js/apps) is symlinked to a non-existing directory:
    databases -> /var/lib/arangodb-apps

    • fceller

      Is there still a server running? Can you check with “ps”?

      Can you check with the 1.4.3 version?

      • heaven78

        thanks! this is working for me.
        what do you mean: with “ps”?

        • fceller

          I just meant the unix command “ps”, i.e.

          ps auxw | fgrep arangod

          But as it is working now, no need to check :-)

  • Kirill

    Is it possible to choose where to bind arango anew? I’ve chosen Ipv6, but it does not work for me so I want to choose localhost.