Re: [Dspace-tech] Must I Build/Install as Tomcat service user?

2014-12-19 Thread Chris Gray
You will run into many problems along the way.  I started that way and 
had to revert.


DSpace seems to be programmed under the assumption that $CATALINA_BASE 
is the same as $CATALINA_HOME (which it isn't under the Ubuntu/Debian 
package) and that Tomcat is run by the dspace user.  You'll have 
problems with DSpace looking in the wrong place for files and with file 
permission conflicts between the tomcat7 and dspace user.


If you don't want to fight with Ubuntu or with DSpace (and you won't win 
anyway),  then install Tomcat from a binary distribution from the Apache 
Tomcat site and install it as the dspace user.


Good luck,

Chris Gray
Systems Analyst
519-888-4567, ext. 35764
cpg...@uwaterloo.ca
University of Waterloo

On 14-12-19 03:33 PM, Baker, David A. wrote:


I’m doing some testing using Ubuntu server 14.04.1 and DSpace 4.2

Ubuntu’s package manager creates a service user, tomcat7, for running 
Tomcat. So instead of fighting with Ubuntu, I am using that user to 
run the Tomcat service. Also, I have created a Linux user account, 
dspace, that I log into the server with.


Is it OK that I did my Maven/Ant build/install using my normal user, 
dspace, and then gave ownership and permissions of  all of my dspace 
files to the Tomcat user, tomcat7?


Ubuntu gives the tomcat7 user a home directory of “/usr/share/tomcat7” 
and a shell of “/bin/false”, so without changing the user I am unable 
to do any building with it. Would it be better if I were to assign 
“/home/tomcat7” to my Tomcat service user so it can do the build, or 
is there some reason that the Ubuntu package manager has assigned 
“/usr/share/tomcat7” as the home directory? I don’t want to break the 
service user account, and I don’t want to cause some problem down the 
road by doing the build/install with a normal user.


Thanks for any info!

--

David Baker

Digital Resources & Web Development Specialist

Milligan College – P.H. Welshimer Memorial Library

423-461-8703 | library.milligan.edu 

sig



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk


___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Must I Build/Install as Tomcat service user?

2014-12-19 Thread Baker, David A.
I'm doing some testing using Ubuntu server 14.04.1 and DSpace 4.2

Ubuntu's package manager creates a service user, tomcat7, for running Tomcat. 
So instead of fighting with Ubuntu, I am using that user to run the Tomcat 
service. Also, I have created a Linux user account, dspace, that I log into the 
server with.

Is it OK that I did my Maven/Ant build/install using my normal user, dspace, 
and then gave ownership and permissions of  all of my dspace files to the 
Tomcat user, tomcat7?

Ubuntu gives the tomcat7 user a home directory of "/usr/share/tomcat7" and a 
shell of "/bin/false", so without changing the user I am unable to do any 
building with it. Would it be better if I were to assign "/home/tomcat7" to my 
Tomcat service user so it can do the build, or is there some reason that the 
Ubuntu package manager has assigned "/usr/share/tomcat7" as the home directory? 
I don't want to break the service user account, and I don't want to cause some 
problem down the road by doing the build/install with a normal user.

Thanks for any info!

--
David Baker
Digital Resources & Web Development Specialist
Milligan College - P.H. Welshimer Memorial Library
423-461-8703 | library.milligan.edu

[sig]

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] ERROR HANDLE SERVER

2014-12-19 Thread Fernando Casas Osorio
Hello,
 
Can you help me please with the next error when I start the handle server?, I 
execute the command "dspace dsrun net.handle.server.Main 
E:\DSpace\handle-server"
 
"2014/12/19 02:05:07 COT" 25 Started new run.
"2014/12/19 02:05:19 COT" 50 unspecified max_handlers count, using default: 200
"2014/12/19 02:05:19 COT" 50 unspecified max_handlers count, using default: 200
"2014/12/19 02:05:19 COT" 50 unspecified max_handlers count, using default: 200
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlHttpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: JVM_Bind
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlHttpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: JVM_Bind
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlUdpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: Cannot bind
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlUdpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: Cannot bind
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlTcpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: JVM_Bind
"2014/12/19 02:05:19 COT" 100 class net.handle.server.HdlTcpInterface: Error 
setting up server socket: java.net.BindException: Cannot assign requested 
address: JVM_Bind
"2014/12/19 02:05:19 COT" 25 Shutting down server at Fri Dec 19 14:05:19 COT 
2014

Thanks
Fernando Casas Osorio 
  --
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette