Replies: 10 comments
-
This is something I have considered but not had any time to think seriously about. I don't have any experience of setting up virtual machines/containers and one of my concerns is that maintaining and updating such an image would create more work. Nevertheless, it is something I would like to investigate, but as I can't commit to the near term, if there is anything specific about the installation that is causing you problems, please don't hesitate to contact me directly and I'll see if I can help. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your answer. I will go again through the installation instructions and hope it works this time |
Beta Was this translation helpful? Give feedback.
-
@kjolley: Dear Keith, I am currently trying to "dockerize" BIGSdb according to 'BIGSdb Documentation', see https://github.com/berlin-mlst/docker-bigsdb (the image is hosted at https://hub.docker.com/r/berlinmlst/bigsdb/). It is far from being ready, as I have a few questions regarding installation before I can proceed. Could you help me with this?
Thank you so much! Johannes |
Beta Was this translation helpful? Give feedback.
-
Hi Johannes, It doesn't matter where you install them - if you install them in a subdirectory of cgi-bin, then you include that subdirectory in the URL. It will work in any location within cgi-bin or a subdirectory of it. I put all my local scripts in /usr/local/bin, but again it doesn't matter really as long as they're in your path (or you fully specifiy the path when calling the script). Default menu_header.html can be found at https://github.com/kjolley/BIGSdb/blob/develop/headers/menu_header.html. For PubMLST, I use the attached (I've had to add a .txt suffix as GitHub does not support attaching .html files) You'll notice in this example that I open a <div> for the main content. This is then closed in footer.html. |
Beta Was this translation helpful? Give feedback.
-
Thank you, Keith! I am struggling a bit with add_user.pl; I had to (temporarily) abandon the two-container solution as I don't find a way to specify a database host different from localhost. Also, I have not been successful in setting the password of the admin user: If I type Is there maybe another way of specifying the password? Thank you and kind regards from Berlin, Johannes |
Beta Was this translation helpful? Give feedback.
-
Are you using a site-wide user database (http://bigsdb.readthedocs.io/en/latest/administration.html#setting-a-site-wide-users-database) or storing user information in the individual databases? If storing it within individual databases (which is the usual way if you're only running a few databases), then the value you need for the -d option is this database name. You also need to make sure that you have added the user details to the users table of the database that you're trying to connect to. |
Beta Was this translation helpful? Give feedback.
-
Thanks, Keith. Yes, I am using the site-wide solution with a site-wide user database called Using
None of the test databases (
From within the container, resetting the password manually returns no error:
... but the login remains unsuccessful. Questions:
The only way to reproduce the error would be to start the container as described in https://github.com/berlin-mlst/docker-bigsdb and then enter the container with |
Beta Was this translation helpful? Give feedback.
-
Yes. Every database for which you want that user to be able to log in to must contain an entry in the users table for that user. You will need to populate the user_dbases table first with the details of the user database and use this id number for user_dbase field in the users table. When setting up databases, it is generally easier to create the first user as a local user, and then use the web interface to populate user_dbases and to import users for the site-wide database. When adding site-wide users to the database user tables manually, the surname, first_name, email and affiliation should be blank as these are retrieved from the site-wide user database.
No. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I am afraid I still do not seem to be able to make it work. I have tried two approaches:
Approach 1I first entered the details of the site-wide user database into table
Then, I entered the user into table
After a first failed login via Approach 2I entered a fresh user into the other test database
After exiting
Nevertheless, login via Is there an obvious error you can spot? |
Beta Was this translation helpful? Give feedback.
-
In approach 1 you can leave all the database settings blank except the dbase_name if the users database is on the same host as the database you are connecting to. This should work providing you have set the password for the dberlin user for the berlin_mlst_users database. Have you checked that the password hash is stored in bigsdb_auth and that the authentication database is set to bigsdb_auth in the bigsdb.conf file? Approach 2 should also work - again you need to set a user status. Check bigsdb_auth to ensure that the password hash has been set. You seem to be running add_user.pl from the root account. This doesn't have access to the databases by default, so definitely check that the password hashes are being stored in bigsdb_auth. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am sorry if my question looks silly, but I am really stuck with the BIGSdb installation.
Is that possible to have BIGSdb already installed on a virtual machine that can be directly downloaded and used.
Beta Was this translation helpful? Give feedback.
All reactions