Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] eXist port after installing by means of the rpm

Subject: perfsonar development work

List archive

Re: [pS-dev] eXist port after installing by means of the rpm


Chronological Thread 
  • From: Frederic LOUI <>
  • To: Stijn Melis <>
  • Cc: , Guilherme Fernandes <>, "" <>
  • Subject: Re: [pS-dev] eXist port after installing by means of the rpm
  • Date: Tue, 05 Feb 2008 17:48:02 +0100
  • Organization: GIP RENATER


Stijn Melis a écrit :
Hi Frederic,
Hi Stijn,

I am trying to reinstall everything from scratch.
:-(

I installed both perfsonar-tomcat and perfsonar-exist as root (using the
root user).
Sounds good

I then logged in as perfsonar user, and tried installing ssh-telnet mp,
but I get this error message:

[perfsonar@localhost ~]$ rpm -i geant2_java-sshtelnet-mp-1.3RC1-1.i386.rpm
error: can't create transaction lock on /var/lib/rpm/__db.000
telnet-ssh rpm should be built as perfsonar user but installed as root.

I then installed it as root, after which I logged in as perfsonar user,
and tried starting tomcat. This gives me the following error:

[perfsonar@localhost
bin]$ ./startup.sh
Using CATALINA_BASE: /home/perfsonar/perfsonar-tomcat
Using CATALINA_HOME: /home/perfsonar/perfsonar-tomcat
Using CATALINA_TMPDIR: /home/perfsonar/perfsonar-tomcat/temp
Using JRE_HOME: /usr/java/jdk1.5.0_14
touch: cannot touch `/home/perfsonar/perfsonar-tomcat/logs/catalina.out': Permission denied
/home/perfsonar/perfsonar-tomcat/bin/catalina.sh: line 258: /home/perfsonar/perfsonar-tomcat/logs/catalina.out: Permission denied
Normally, all the packages, perfsonar-tomcat and perfsonar-exist
should install files that belongs to perfsonar user. So all the folder perfsonar-tomcat and perfsonar-exist
should have the following UNIX access rights: perfsonar:perfsonar with read/write access for user perfsonar.

When you build your own package (using perfsonar user) make sure that all the files you install
have also the same UNIX access right. (i.e perfsonar:perfsonar with read/write access for perfsonar user)

Make sure that during the telnet/ssh mp rpm building process all these UNIX rights are set accordingly.


Just be careful when executing perfsonar-tomcat as root, because all the files created at this time will be owned by root (e.g root:root). So afterwads if you launch the perfsonar-tomcat as perfsonar user, tomcat won't start because of the files permission ...

If you're not sure, log as root and issue the followinf command:
chown -R perfsonar:perfsonar ~perfsonar
chmod -R u+rw perfsonar:perfsonar ~perfsonar

Hope this help.
Best regards/Frederic

If I start tomcat as root, everything seems to be working fine though, so I'll upload my first RC tomorrow morning.

Cheers,

Stijn

Frederic LOUI wrote:
Seems that something gone wrong with the installation ...
Did you installed perfsonar-tomcat and perfsonar-exist package as root ? (I mean not using perfsonar user id ?)

And then if you run tomcat, you should run tomcat as perfsonar user.

In addition, do you have restarted tomcat once right after having installed the rpms ?

I'm stuck here... Maybe Guilherme could shed some lights upon your issue ?

Regards/Frederic

Stijn Melis a écrit :
Hi Frederic,

I can see the eXist welcome page, but when I click the Admin link on the left I get a NullPointerException :s

I attached the eXist welcome page. You should notice on the right side that there is also a NullPointerException shown there.

Regards,

Stijn

Frederic LOUI wrote:
Hi stijn,

After installation, eXist should be managed using the following URL:
http:<yourhost>:8080/exist/index.xml

And then on the left, search for the Admin link. (which should be http://<yourhost>:8080/exist/admin/admin.xql)
However, in order to make sure the link I provide you is the right one, please check the tomcat server.xml file.

Guilherme,

Don't hesitate to correct me If I'm wrong ! ;-)

Hope this help.
Cheers/Frederic

Stijn Melis a écrit :
Frederic LOUI wrote:
Correction:
The war file is installed along tomcat directory.

However, eXist dir is unpacked and is nested within tomcat folder.

Cheers/Fred

Where can I find this, 'cause I can't seem to find it. When I try to connect to xmldb:exist://127.0.0.1:8080/exist/xmlrpc/db I get the following response :

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: database is not running
org.exist.xmlrpc.RpcServlet.init(RpcServlet.java:90)
...

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.7 logs.


It says the database is not running. Do I have to start the eXist somewhere first before starting tomcat?

Thanks in advance,

Stijn



------------------------------------------------------------------------


--
Frederic LOUI / GIP RENATER

Service de Suivi Operationnel / Metrologie & QoS
Network Operations Service / Metrology & QoS

Tel: +33 1 53 94 20 82 / Fax: +33 1 53 94 20 31

http://www.renater.fr

--
Frederic LOUI / GIP RENATER

Service de Suivi Operationnel / Metrologie & QoS
Network Operations Service / Metrology & QoS

Tel: +33 1 53 94 20 82 / Fax: +33 1 53 94 20 31
http://www.renater.fr



Archive powered by MHonArc 2.6.16.

Top of Page