Announcement

Collapse
No announcement yet.

createcontext failed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • createcontext failed

    Ok, so the raspberrypi configuration is up and running upto a loginscreen.

    This means I have to add a context to add users

    However, the command createcontext shows errors

    $ sudo /opt/open-xchange/sbin/createcontext -A oxadminmaster -P mysecret -c 1 -u oxadmin -d "Context Admin" -g Admin -s User -p oxsecret -L defaultcontext -e oxadmin@example.com -q 1024 --access-combination-name=all

    context 1 could not be created:
    Server response:
    DBP-0019 Categories=CONFIGURATION Message='Cannot resolve server id for server raspberrypi.'

    or after some tweaking in database

    context 1 could not be created:
    Server response:
    DBP-0004 Categories=CONNECTIVITY Message='Schema can not be set on database connection'

    - searched the forum
    - checked HOST file
    127.0.0.1 localhost
    192.168.0.xxx raspberrypi.lan raspberrypi
    - checked the system.properties (shows Servername raspberrypi), [edit i=y)
    - gave user openexchange full permisson (via Webmin interface)

    but no results.

    Any ideas ?

    Cheers, John
    Last edited by JJohnsson; 01-16-2018, 10:38 PM.

  • #2
    Well, it turns out that "server" (like hostname) is not the same as "server" (used to create the ox server)

    The registration errors I encountered were result of using the hostname instead of the oxservername "oxserver"

    So ran the full install all over again with some subtle changes:

    Added to HOST file "127.0.0.1 oxserver"
    and
    system.properties SERVER_NAME=oxserver

    In all commands applicable replaced "raspberrypi" with "oxserver"

    $ sudo /opt/open-xchange/sbin/oxinstaller --no-license --servername=oxserver --configdb-pass=openexchange --master-pass=oxadminmasterpassword --network-listener-host=localhost --servermemory 600

    Now registration works like a charm.

    SOME CHECKS

    pi@raspberrypi:~ $ sudo /opt/open-xchange/sbin/listserver -A oxadminmaster -P oxadminmasterpassword
    Id Name
    1 oxserver

    pi@raspberrypi:~ $ sudo /opt/open-xchange/sbin/listcontext -A oxadminmaster -P oxadminmasterpassword
    cid fid fname enabled qmax qused name lmappings
    1 2 1_ctx_store true 1024 0 1 defaultcontext


    ox succes.PNG
    Last edited by JJohnsson; 01-19-2018, 10:15 PM.

    Comment

    Working...
    X