Central instalation of madanalysis5
Dear All...
I am managing a computing cluster where several of my users use madanalysis5. Currently, each of them is downloading the software on their personnel areas. This seems a waste of space since the software is being downloaded over and over again by different users for the same purpose.
I was planning to deploy it centrally. I can compiled it and run it as a software administrator user. However, once that is done, regular users can not run it from that central location. The execution breaks with permission errors.
Is there a way to install the software centrally? If yes, what is the procedure without having to hack the code around?
TIA
Goncalo
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Dear Goncalo,
Could you please send me a copy of the log files with the errors?
Regards,
Benjamin
Revision history for this message
|
#2 |
Hi Benjamin...
Thank you for getting back.
The first error I am getting is the following:
1./ For test purposes, I am installing madanalysis5 in /tmp as root (the idea is that it goes after to a NFS server).
$ ll /tmp/sw/
--- * ---
2./ If I run it as root, everything seems OK (at least I get the ma5 prompt):
# /tmp/sw/
*******
--- * ---
3./ If I run it as a normal user, diferent from the one which did the initial installation and compilation, I get
$ /tmp/sw/
*******
--- * ---
So, as you can see, it detects that something is different and tries to rebuild the library. However, it can't because it does not has write access to the installation directory (which is the good behaviour since in a central instalation we just provide read access to all users, not write access).
CheersGoncalo
On Tuesday, May 26, 2015 5:26 PM, Benjamin Fuks <email address hidden> wrote:
Your question #267373 on MadAnalysis 5 changed:
https:/
Status: Open => Needs information
Benjamin Fuks requested more information:
Dear Goncalo,
Could you please send me a copy of the log files with the errors?
Regards,
Benjamin
--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https:/
You received this question notification because you asked the question.
Revision history for this message
|
#3 |
Hi Goncalo,
Could you please try to run the code in DEBUG mode and check the differences at the level of the system configuration by comparing the screen output?
Cheers,
Benjamin
On 27 May 2015, at 08:31 , Goncalo <email address hidden> wrote:
> Question #267373 on MadAnalysis 5 changed:
> https:/
>
> Status: Needs information => Open
>
> Goncalo gave more information on the question:
> Hi Benjamin...
> Thank you for getting back.
> The first error I am getting is the following:
> 1./ For test purposes, I am installing madanalysis5 in /tmp as root (the idea is that it goes after to a NFS server).
> $ ll /tmp/sw/
> --- * ---
> 2./ If I run it as root, everything seems OK (at least I get the ma5 prompt):
> # /tmp/sw/
>
> *******
> --- * ---
> 3./ If I run it as a normal user, diferent from the one which did the initial installation and compilation, I get
> $ /tmp/sw/
> *******
> --- * ---
> So, as you can see, it detects that something is different and tries to rebuild the library. However, it can't because it does not has write access to the installation directory (which is the good behaviour since in a central instalation we just provide read access to all users, not write access).
> CheersGoncalo
>
>
> On Tuesday, May 26, 2015 5:26 PM, Benjamin Fuks <email address hidden> wrote:
>
>
> Your question #267373 on MadAnalysis 5 changed:
> https:/
>
> Status: Open => Needs information
>
> Benjamin Fuks requested more information:
> Dear Goncalo,
>
> Could you please send me a copy of the log files with the errors?
>
> Regards,
>
> Benjamin
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
>
> You received this question notification because you are an answer
> contact for MadAnalysis 5.
Revision history for this message
|
#4 |
Hi Benjamin...
In attachment I am sending the result of the two executions in debug. The result of a diff is also included. However, the debug execution does not help since it does not provide any further information why madanalysis5 thinks that the system configuration changed just because it is being invoked by other user.
I've looked into the code, and in madanalysis5/
def BuildLibrary(
rebuild = forced or FirstUse or UpdateNeed or Missing (...)
builder is an instance of the LibraryBuilder class which is defined in madanalysis5/
CheersG.
Revision history for this message
|
#5 |
I found the (1st?) issue but I do not have a clear way to solve it.
When I am running as a different user than the one which initially installed and compiled the core, madanalysis5 will try to recompile because of the following piece of code in madanalysis5/
It seems that the condition is triggered because the normal user can not write to madanalysis5/
If in my test environment I give world write permission to this file, the normal user can start madanalysis, running it from a central point. Obviously, in a production environment, we do not want to do this. I also wonder if this is just the first catch and if there are other similar things which come up afterwards/
So, it seems to me that madanalysis is simple not prepared to run through centralized installation.
Can you comment on that? Do you have other suggestions?
CheersGoncalo
On Wednesday, May 27, 2015 11:31 AM, Goncalo <email address hidden> wrote:
Your question #267373 on MadAnalysis 5 changed:
https:/
Status: Answered => Open
You are still having a problem:
Hi Benjamin...
In attachment I am sending the result of the two executions in debug. The result of a diff is also included. However, the debug execution does not help since it does not provide any further information why madanalysis5 thinks that the system configuration changed just because it is being invoked by other user.
I've looked into the code, and in madanalysis5/
def BuildLibrary(
rebuild = forced or FirstUse or UpdateNeed or Missing (...)
builder is an instance of the LibraryBuilder class which is defined in madanalysis5/
CheersG.
--
You received this question notification because you asked the question.
Revision history for this message
|
#6 |
Hi Goncalo,
> So, it seems to me that madanalysis is simple not prepared to run through centralized installation.
That's true. We have never considered having a shared copy of the program between various users. Maybe could you just comment in the code the tests of the architecture. This should be enough for having the program running properly.
Cheers,
Benjamin
Can you help with this problem?
Provide an answer of your own, or ask Goncalo for more information if necessary.