Project

General

Profile

Redux image cache vs. the temp image directory, TEMP_IMAGES_DIR ?

Added by Patrick Goetz almost 6 years ago

Partly in preparation for a K3 install, we're rebasing our Leginon/Appion installation on Ubuntu 18.04 with MariaDB using the current myami-beta branch. So far, so good, but in setting everything up I realized that there are a couple of potential issues / unanswered questions.

1.
When I initially configured our production system, I used the recommended default location for the reduxd image cache: /var/cache/myami/redux
and a different folder for the temporary image cache specified in the myamiweb configuration step, TEMP_IMAGES_DIR = /EM/imagetemp

However, when I checked this on our production system I noticed that I had changed the reduxd cache directory to be the same as the image temp directory:
/etc/myami/redux.cfg:

path: /EM/imagetemp
# path: /var/cache/myami/redux

Unfortunately I forgot to document why I made this change. The question is, is it OK to have these be the same folder?

2.
When setting up the myamiweb interface for the first time, what is the purpose of the COOKIE_PASSPHRASE?

3.
After our initial set up, in which we checked "no anonymous user access", after logging in as administrator an anonymous user appears in the user list. Just confirming that this is normal; i.e. the user exists, but can't log in.


Replies (1)

RE: Redux image cache vs. the temp image directory, TEMP_IMAGES_DIR ? - Added by Anchi Cheng almost 6 years ago

Even though I don't recomment it, you should have no problem using TEMP_IMAGES_DIR for redux cache. Redux produces folders within it in a particular hierarchy. TEM_IMAGES_DIR is used in myamiweb just for intermediate step in uploading.

COOKIE_PASSPHRASE is there to give a unique identification to your myamiweb for security reason. Enter something you don't use on other installation of myamiweb if you have them.

Yes, administrator still sees anonymous user as a user. This way, it can change it to allow access to some sessions if one day you choose to do so.

    (1-1/1)