cbioportal Permission issue on Tomcat logs

69 views
Skip to first unread message

Bob Lanese

unread,
Dec 4, 2017, 7:34:50 PM12/4/17
to cbiop...@googlegroups.com

I know this is more of a Unix Issue than cbioportal but advice would be helpful. The cbioportal commands (validate, import, ...) and data resides in a user directory I created. Whenever I import data into cbioportal via the ./metaimport.py command I always get the "java.io.FileNotFoundException: /usr/local/tomcat7/logs/public-portal.log (Permission denied)". Now, the import works fine, it just doesn't write to the the log file. Tomcat is owned by root in my case, but I changed the logs directory to be the same group (and writable) as my user that runs the cbioportal scripts. I believe when Tomcat creates a new logfile, its user and group are set to root. I am no a Unix permission expert I am afraid. What I am I doing wrong?

The setting for the directory is seen below where my group is called "cbioportal":
drwxrwxr-x 2 root cbioportal 8192 Dec 1 11:03 logs/


--
Bob Lanese
Data Architect; Institute for Computational Biology and Case Comprehensive Cancer Center
6-102A Wolstein Research Building  / 2103 Cornell Rd. / Cleveland, OH USA 44106

"I don't know how the world works, like somehow I missed that day in school" - J. Abumrad
"This is the dumbest idea I've ever heard, and I'm definitely in." K. Thompson
"Big data is like teenage sex: everyone talks about it, nobody really knows how to do it, everyone thinks everyone else is doing it, so everyone claims they are doing it..." - Dan Ariely

cBioPortal for Cancer Genomics Discussion Group

unread,
Dec 7, 2017, 10:57:46 AM12/7/17
to cBioPortal for Cancer Genomics Discussion Group

Hi Bob,

What are all the permissions of the folders upstream to that logs/ folder. That is:

/usr/
/local/
tomcat7/
logs/

And the file itself

public-portal.log 

The reason why I'm asking is that the user should be able to traverse the entire directory path, otherwise you will still get a permission denied error if one of those folders is not accessible by the user. 

Best wishes,
Ino

Pieter Lukasse

unread,
Dec 8, 2017, 3:31:30 AM12/8/17
to cBioPortal for Cancer Genomics Discussion Group
Have you tried changing your log4j  configuration to point to a folder where you have access rights? Maybe that helps ? 

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+unsubscribe@googlegroups.com.
To post to this group, send email to cbiop...@googlegroups.com.
Visit this group at https://groups.google.com/group/cbioportal.
To view this discussion on the web visit https://groups.google.com/d/msgid/cbioportal/48f2c377-c05d-40e2-8b41-021e3e0a1ded%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages