Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-context.pl need to sort out permissions for running #107

Open
nkmeyers opened this issue Jun 19, 2020 · 8 comments
Open

add-context.pl need to sort out permissions for running #107

nkmeyers opened this issue Jun 19, 2020 · 8 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@nkmeyers
Copy link
Collaborator

Can you help me walk through a problem I've encountered where add-context.pl is not working how I’d expect ?
My Carrel is
/export/reader/carrels/BCGVaccine

I wanted to change the content of the carrel's "home page"
So, I Made a contexts file to go with it.
File I made:
/export/cord/etc/contexts/BCGVaccine.txt

then I wanted to enhance the carrel using that content so I
cd to :
/export/cord
where I figured I'd run:
sudo /export/cord/bin/add-context.pl carrelname
That outputs to the screen, If you “like” the output, then you really write it to a file by doing this:
/export/cord/bin/add-context.pl > /export/reader/carrels//index.htm
so I tried to run it as:
sudo /export/cord/bin/add-context.pl BCGVaccine > /export/reader/carrels/BCGVaccine/index.html
but even if sudo I got permission denied on the filesystem unless I try to write to *.htm instead of *.html ? I have no clue why. So then I tried this:
sudo /export/cord/bin/add-context.pl BCGVaccine > /export/reader/carrels/BCGVaccine/index.htm
but then the carrel’s index.htm just zero'd out to empty 😩 (edited)

@nkmeyers nkmeyers added the help wanted Extra attention is needed label Jun 19, 2020
@ericleasemorgan

This comment has been minimized.

@ericleasemorgan
Copy link
Owner

ericleasemorgan commented Jun 20, 2020 via email

@ericleasemorgan
Copy link
Owner

Wiped out your index.htm page? Bummer!!

If this is true, then this is because you redirected the output of ./bin/add-context.pl to index.htm instead of index.html. Your index.htm file has gone to Big Byte Heaven and must be recreated. The easiest and safest way to resolve this issue is to:

1. cd /export/reader/carrels/BCGVaccine
2. sbatch make-carrel.slurm
3. wait until the carrel is re-built
4. re-run add-context.pl making sure to redirect the output to index.html

An advanced technique is to:

1. salloc
2. wait for a node to warm up
3. ssh compute-0 (or whatever the name of the node is)
4. cd /export/reader/carrels/BCGVaccine
5. /export/reader/bin/carrel2about.py > index.htm
6. wait
7. when you get your prompt back, exit
8. re-run add-context.pl making sure to redirect the output to index.html

The first technique is easy and straightforward. The second technique is faster but more techno-weenie.

@ericleasemorgan
Copy link
Owner

P.S. If you get permission errors, then use sudo in conjunction with add-context.pl, but the real solution is to change the permissions of the study carrels so our group can more easily redirect output. If problem still persist, then the problem is probably with our shared file system.

The real real solution is to amalgamate our CORD and Reader repositories, and that is in the works.

@nkmeyers
Copy link
Collaborator Author

Cool, I'll try again following the steps above either sometime today after a boat ride and the Belmont or tomorrow and share my antibody and BCG carrels if they are a success!

@nkmeyers
Copy link
Collaborator Author

nkmeyers commented Jun 21, 2020

@ericleasemorgan Kicked off job 2600 using sbatch make-carrel.slurm at /export/reader/carrels/BCGVaccine but looks like it queued and then barfed?

So, Tried another one, job 2601 using sudo sbatch make-carrel.slurm at /export/reader/carrels/humidity . . . that one made it to big-compute-2 and it completed at june 21, 17:16 and wrote a new sutdy-carrel.zip file but its index.htm is EMPTY at /export/reader/carrels/humidity ? And the tsvs were all created but they're empty too just header row and no content.

So trying job 2604 at /export/reader/carrels/BCGVaccine to see if i get an index.htm with any content at /export/reader/carrels/BCGVaccine from that job.

@nkmeyers
Copy link
Collaborator Author

nkmeyers commented Jun 22, 2020

I was able to add-context to the SusceptibilityGender2 carrel (didn't do make-carrel.slurm) but was able to run add-context (did need to relax permissions on directory first, couldn't write to index.html, but could write to home.html and could then cp that to index.html ) .

I did reset the permissions back the way the others appeared to be afterward, but please check the wx filesystem permissions for the the carrel dir SusceptibilityGender2 and its files.

@ericleasemorgan
Copy link
Owner

ericleasemorgan commented Jun 23, 2020 via email

@nkmeyers nkmeyers changed the title add-context.pl help needed wiped out my index.htm add-context.pl need to sort out permissions for running add-context.pl Jun 23, 2020
@nkmeyers nkmeyers changed the title add-context.pl need to sort out permissions for running add-context.pl add-context.pl need to sort out permissions for running Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants