maxgitt wrote:- Code: Select all
omero@mgpc:/home/mgitt/devspace$ ls -alhrt /home/omero/
-rw-r--r-- 1 root root 150M Oct 8 11:45 OMERO.server-ice36.zip
drwxr-xr-x 4 root root 4.0K Oct 18 10:26 ..
lrwxrwxrwx 1 root root 29 Oct 18 10:38 OMERO.server -> OMERO.server-5.4.0-ice36-b74/
drwxr-xr-x 9 root root 4.0K Oct 18 11:35 OMERO.server-5.4.0-ice36-b74
Okay, great - so it looks like you might have downloaded and extracted the server zip as root.
You can fix the permissions up as follows, setting the OMERO server 'distribution' to be owned by the OMERO system user:
- Code: Select all
sudo chown -R omero:omero /home/omero
maxgitt wrote:The first question, when the instructions detail that I should install the prequisites in root, is it a problem that I instead ran the commands by adding 'sudo' instead as myself 'mgitt@mgpc'?
No problem at all: running sudo command-name as your own user is the same as doing a 'sudo su - root' and getting a root shell, then executing the command command-name.
maxgitt wrote:The second potential issue is I was unable to switch to 'omero' user from the command line.
- Code: Select all
mgitt@mgpc:~/devspace$ su omero
Password:
su: Authentication failure
I tried `OMERO_ROOT_PASS` but this did nothing. I had to manually update the password via
- Code: Select all
sudo passwd omero
updating the password to 'pword'. Should this password have been set somewhere else previously because no indication is given in the instructions?
A couple of things going on here. You don't need to set a password for the operating system user OMERO will use (and the doc's don't set one), since you can acquire a shell or run commands as the OMERO system user, without having set a password for that user like this:
- Code: Select all
mgitt@mgpc:~ sudo su - omero
`OMERO_ROOT_PASS` refers to the password of the OMERO user account named root, i.e. the superuser of the OMERO system - as opposed to a user on the operating system on which OMERO runs. So that won't have helped trying to log in as the OMERO operating system user.
We put together a page which describes the various users required, as it can be a little confusing - check out
https://docs.openmicroscopy.org/omero/5 ... -use-wheremaxgitt wrote:The third issue is that when I ran
- Code: Select all
omero@mgpc:~$ OMERO.server/bin/omero config set omero.data.dir "$OMERO_DATA_DIR"
ERROR:omero.gateway:No Pillow installed, line plots and split channel will fail!
I had to 'sudo pip install Pillow' because of the missing package. I tried 'pip install Pillow' but was given an access denied. I'm not sure why I need to do all of these extra configurations, perhaps you can help.
Finally, this comes back to what I mentioned in the other thread - you're right that when you're following our doc, the `pip install` steps, including those mentioned on the OMERO.web install page should be run as the root user - we were just made aware that our Combined Server and Web install walkthrough had "run this step as the OMERO operating system user" then followed a `pip install` step, and we'll be fixing that shortly. NB That doesn't apply to the decoupled, separate OMERO.web and OMERO.server install guide, since that is a slightly more complex scenario, and makes use of Python virtual environments. But since you're not following that one, I won't say more on that.
I can see why you didn't end up with Pillow installed following the Server install walkthrough - I don't see Pillow as a prerequisite for the server alone in that document. It will be installed following the OMERO.web install (it's part of the prerequisites for web: see
https://docs.openmicroscopy.org/omero/5 ... requisites) - but I've raised with the rest of the team - we may wish to include it on the server install page too.
If any of that isn't clear, please don't hesitate to ask for further explanation.
All the best,
Kenny