Hi,
I have a question that has arisen from one of our partners while setting up Opal.
Please note that they are using Redhat, which may or may not make a difference.
When I have done an Opal install in the past, I navigate to the web interface where it asks about the participant and data databases. Here I just use the suggested name (opal_ids and opal_data), and entered a username of opal and password. It then appears that the databases are created during this process. This is as per the instructions on the wiki: http://wiki.obiba.org/display/OPALDOC/Databases+Administration
However, it does not appear to work like this for our user, and when I tried this myself, it did not appear that the databases were created automatically – I got a ‘connection failed’ message. I had to go into the mongo shell and create them, and after that the connection was successful.
Also, although they are the administrator, they do not see the admin section as shown in the screenshot.
Is this the correct behaviour?
Kind regards
Tom
--
You received this message because you are subscribed to the Google Groups "obiba-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obiba-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ramin,
Thanks for getting in touch. Currently the situation is that I have asked them if they would be happy to start a fresh install as we tried a couple of things which might have caused further problems.
Let me see what their response is, and if we still have a problem I will refer back to you with this information
Tom
Hi Ramin,
That is helpful, thank you. I think we will be starting again with a clean install, and the wiki update will be useful for this
Hi Ramin,
Our partners tried a fresh install. They are using:
RHEL 7.2
mongodb-org-3.2
They seem to be able to register the opal_ids database but not opal_data. I enclose their details below.
If you would be able to help, this would be great as it using a lot of their time trying to get it to work.
Kind regards
Tom
-----------------------------------------------------------------------------------------------------------
From our partner:
I completely reinstalled opal-server, opal-rserver, rserver-admin and mongodb-org-server. Between uninstallation and re-installation, I checked that there were no left-overs from the old installations. Then, I followed SOP document again, reaching item 2.2.1 where I was to enter a username+password.
It sort-of worked. No problems registering opal_ids. With opal_data, it allowed me to indicate a username and a cryptic password, but also displayed a warning:
Having pressed "Save", things initially seemed fine. I could even upload a file. But when (in step 2.2.3), I wanted to create a test project, I got an error:
The MongoDB server is certainly listening on port 27017:
[loc_trar@s-ic-opal1p ~]$ echo -n "" | nc localhost 27017 && echo yes
yes
In /var/log/mongodb/mongod.log, there's lots of messages like:
2016-01-27T13:57:44.606+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:43657 #976 (1 connection now open)
2016-01-27T13:57:44.607+0100 I ACCESS [conn976] SCRAM-SHA-1 authentication failed for opal on opal_data from client 127.0.0.1 ; UserNotFound Could not find user opal@opal_data
2016-01-27T13:57:44.608+0100 I NETWORK [conn976] end connection 127.0.0.1:43657 (0 connections now open)
So again, it seems something went wrong with credentials-setup.
From: obiba...@googlegroups.com [mailto:obiba...@googlegroups.com] On Behalf Of Ramin Maelstrom
Sent: 25 January 2016 15:10
To: obiba...@googlegroups.com
Subject: Re: Question about mongodb during opal set up
Hi Tom,
mongo # might need user/pasword if scenario 1. is true
use admin
db.system.users.find()
Hi Ramin,
Apparently they are not running in client access control mode.
Does this help your investigation?
Thanks
Tom
From: obiba...@googlegroups.com [mailto:obiba...@googlegroups.com] On Behalf Of Ramin Maelstrom
Sent: 27 January 2016 15:05
Hi Ramin,
Here is their opal.log file. I hope it helps!
Thanks
Tom
From: Tom Bishop
Sent: 01 February 2016 15:54
To: 'obiba...@googlegroups.com'
Subject: RE: Question about mongodb during opal set up
Hi Ramin,
I have requested this file from them, hopefully they will be quick in responding
Thanks
Tom
From: obiba...@googlegroups.com [mailto:obiba...@googlegroups.com] On Behalf Of Ramin Maelstrom
Sent: 01 February 2016 15:45
Hi Ramin,
Apologies I misunderstood your question, yes in the GUI they were specifying a username and password.
They have run the basic test on whether Mongo is working – it appears to be. There are a couple of warnings on start up though:
=============================================
-bash-4.2$ mongo
MongoDB shell version: 3.2.1
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten]
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten] ** WARNING:
/sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten] ** We
suggest setting it to 'never'
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten]
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.
2016-01-27T12:45:35.225+0100 I CONTROL [initandlisten] > use test switched to db test > db.restaurants.insert(
... {
... "address" : {
... "street" : "2 Avenue",
... "zipcode" : "10075",
... "building" : "1480",
... "coord" : [ -73.9557413, 40.7720266 ],
... },
... "borough" : "Manhattan",
... "cuisine" : "Italian",
... "grades" : [
... {
... "date" : ISODate("2014-10-01T00:00:00Z"),
... "grade" : "A",
... "score" : 11
... },
... {
... "date" : ISODate("2014-01-16T00:00:00Z"),
... "grade" : "B",
... "score" : 17
... }
... ],
... "name" : "Vella",
... "restaurant_id" : "41704620"
... }
... )
WriteResult({ "nInserted" : 1 })
>
=============================================
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.2 (Maipo)
Release: 7.2
Codename: Maipo
mongodb-org.x86_64 3.2.1-1.el7 @mongodb-org-3.2
mongodb-org-mongos.x86_64 3.2.1-1.el7 @mongodb-org-3.2
mongodb-org-server.x86_64 3.2.1-1.el7 @mongodb-org-3.2
mongodb-org-shell.x86_64 3.2.1-1.el7 @mongodb-org-3.2
mongodb-org-tools.x86_64 3.2.1-1.el7 @mongodb-org-3.2
Thanks Ramin, I have worked through these steps myself (although on Ubuntu) and it seems to work. Hopefully the same will happen for our partners.
Thank you again for your support with this