You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Angelika Schulz <an...@bralug.de> on 2008/05/26 18:38:27 UTC

Configuration help needed

Hi there,

I am using lenya version 2.0 and I could not get any clue on how to do / 
enhance these things. I am running lenya on an OpenSuSE 10.2 with JDK 1.6 
(not an rpm) and tomcat5(rpm). I got to create, edit and delete pages, but as 
soon as it gets to the manual configuration with the help of the xml files I 
am definitely stupid ... at least I think I am. :)

1) LDAP Users
When I am running an ldapsearch like this: 'ldapsearch -x -b 
dc=intern "(uid=ans)" -h ldap' I am usually getting a response telling me 
that the user ans is existing. Unfortunately the LDAP module for lenya keeps 
telling me, that this is not the case. Where can I get a good tutorial (for 
dummies) so I can understand what I am doing wrong?
======================================
provider-url=ldap://ldap:389/dc=intern
base-dn=dc=intern
usr-branch=
usr-attr=uid
usr-authentication=simple
security-authentication=none
mgr-dn=
mgr-pw=
key-store=.keystore
security-protocol=ssl
======================================
PS: Yes, this server can be searched for users without the need to 
authenticate first.

2) Enhance Search
Right now I was able to create a search page, but I am not very good at 
configuring it. I want to be able to search for meta data, e.g. 
like "author". I can imagine that I only have to add a new search in the 
configuration file, but I do not know exactly why it does not work for me. 
<index id="default-authoring" analyzer="stopword_en" directory="lenya/pubs/def
ault/work/lucene/index/authoring/index">
  <structure>
    <field id="url" type="keyword"/>
    <field id="title" type="text" storetext="true"/>
    <field id="description" type="text" storetext="true"/>
    <field id="subject" type="keyword" storetext="true" />
    <field id="body" type="text" storetext="true"/>
    <field id="creator" type="text" storetext="true"/>
  </structure>
</index>
PS: One user would like to be able to search for all articles a specific user 
created or edited ... 

I really googled around, but I could not find that much information I can 
understand. I found the wiki and tried to read it, but ... I could not find 
good examples on how to do the things I really need to do. It only said 
something like "You can enable LDAP" and nothing about which values can be 
entered in the configuration file. "You can search sites" but nothing about 
which values are allowed for which configuration file. Is there any chance to 
get some kind of schema to see which values are possible and which values are 
needed in any case?

I am new to lenya, cocoon and so on, so I really would appreciate all of your 
help You have enough time to give me. ... I would like to RTFM, but I don't 
know where to find the best. ;)

Thanks a lot, 
Angie.
-- 
I know it all.  I just can't remember it all at once.

Re: Configuration help needed

Posted by Richard Frovarp <ri...@sendit.nodak.edu>.
Angelika Schulz wrote:
> Hi there,
>
> I am using lenya version 2.0 and I could not get any clue on how to do / 
> enhance these things. I am running lenya on an OpenSuSE 10.2 with JDK 1.6 
> (not an rpm) and tomcat5(rpm). I got to create, edit and delete pages, but as 
> soon as it gets to the manual configuration with the help of the xml files I 
> am definitely stupid ... at least I think I am. :)
>
> 1) LDAP Users
> When I am running an ldapsearch like this: 'ldapsearch -x -b 
> dc=intern "(uid=ans)" -h ldap' I am usually getting a response telling me 
> that the user ans is existing. Unfortunately the LDAP module for lenya keeps 
> telling me, that this is not the case. Where can I get a good tutorial (for 
> dummies) so I can understand what I am doing wrong?
> ======================================
> provider-url=ldap://ldap:389/dc=intern
> base-dn=dc=intern
> usr-branch=
> usr-attr=uid
> usr-authentication=simple
> security-authentication=none
> mgr-dn=
> mgr-pw=
> key-store=.keystore
> security-protocol=ssl
> ======================================
> PS: Yes, this server can be searched for users without the need to 
> authenticate first.
>   

You don't set the usr-name-attr field. That may be your problem. I also 
notice you have security-protocol set to ssl. 389 is not typically the 
ssl ldap port. What sort of errors are you getting? You may need to look 
in the logs for the real problem.

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Andreas Hartmann <an...@apache.org>.
Angelika Schulz schrieb:
> Hi Jann,
>> Running only an hour is not very long for a web application :-) Did you
>> already increase the heap size for Tomcat using the  -Xmx option for the
>> jvm.
> Erm, yes. I am using JAVA_OPTS="-Xms=128 -Xmx=256" ... The machine itself has 
> 1024 MB of memory  ... There is no message saying "Out of memory" or "Not 
> enough heap space", only the CPU is working hard after around an hour, 
> looking as if it would really have to do loads of jobs.

This could be related to the continuation issue:

https://issues.apache.org/bugzilla/show_bug.cgi?id=43248
https://issues.apache.org/bugzilla/show_bug.cgi?id=44473
https://issues.apache.org/bugzilla/show_bug.cgi?id=44676

The continuations consume quite a lot of memory. They are removed after 
a certain period of time, but if the authors visit a lot of the 
problematic usecases, continuations can quickly become a problem. If the 
application approaches the maximum memory consumption, the garbage 
collector is constantly working, which generates quite a lot of CPU 
load. This situation will improve in an upcoming release (2.0.2 will be 
better, but not perfect yet), we're working on it.

Apart from that, I'd recommend about Xmx=1024 for the application to get 
started, and increase that if it's not sufficient. 1024 MB of RAM is 
certainly the lower limit for a production server.


>> You can find Apache Cocoon performance tips at the cocoon website:
>> http://cocoon.apache.org/2.1/performancetips.html

BTW, here are some more hints:
http://lenya.apache.org/docs/2_0_x/tutorials/production.html

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Andreas Hartmann <an...@apache.org>.
Rainer Schöpf schrieb:
> Hi Angie,
> 
>  > Hi Jann,
>  > > Running only an hour is not very long for a web application :-) Did you
>  > > already increase the heap size for Tomcat using the  -Xmx option for the
>  > > jvm.
>  > Erm, yes. I am using JAVA_OPTS="-Xms=128 -Xmx=256" ... The machine itself has 
>  > 1024 MB of memory  ... There is no message saying "Out of memory" or "Not 
>  > enough heap space", only the CPU is working hard after around an hour, 
>  > looking as if it would really have to do loads of jobs.
> 
> You could try the jconsole tool that comes with JDK to inspect a running Java 
> VM. To connect to tomcat, you need to either run jconsole as the tomcat user, or 
> configure access (not much fun ;-))
> 
> Some info can be found here:
> 
>  http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html


Another nice tool is the YourKit profiler: http://www.yourkit.com/
They provide free licenses for open source developers and just ask for a 
testimonial in turn (which is easy to write because the tool is really 
good).

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Rainer Schöpf <ra...@proteosys.com>.
Hi Angie,

 > Hi Jann,
 > > Running only an hour is not very long for a web application :-) Did you
 > > already increase the heap size for Tomcat using the  -Xmx option for the
 > > jvm.
 > Erm, yes. I am using JAVA_OPTS="-Xms=128 -Xmx=256" ... The machine itself has 
 > 1024 MB of memory  ... There is no message saying "Out of memory" or "Not 
 > enough heap space", only the CPU is working hard after around an hour, 
 > looking as if it would really have to do loads of jobs.

You could try the jconsole tool that comes with JDK to inspect a running Java 
VM. To connect to tomcat, you need to either run jconsole as the tomcat user, or 
configure access (not much fun ;-))

Some info can be found here:

 http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

 Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Angelika Schulz <an...@bralug.de>.
Hi Jann,
> Running only an hour is not very long for a web application :-) Did you
> already increase the heap size for Tomcat using the  -Xmx option for the
> jvm.
Erm, yes. I am using JAVA_OPTS="-Xms=128 -Xmx=256" ... The machine itself has 
1024 MB of memory  ... There is no message saying "Out of memory" or "Not 
enough heap space", only the CPU is working hard after around an hour, 
looking as if it would really have to do loads of jobs.

> You can find Apache Cocoon performance tips at the cocoon website:
> http://cocoon.apache.org/2.1/performancetips.html
Ok, I will try to reread it, perhaps I oversaw a very good hint, because 
sometimes it is hard to understand. I will fetch me some fresh cappuccino to 
make sure my brain keeps working. *g*

Thanks,
Angie.
-- 
I know it all.  I just can't remember it all at once.

Re: Configuration help needed

Posted by ru...@uniklinik-freiburg.de.
Hi Angelika,
>
>
>I will try to find out whether the LDAP server can be accessed via
>SSL as well
>just to enhance security... Now I nearly know where to do the
>changes. :)

I just had a talk with the guy who manages our ldap server. He assumes
that there is a problem with the ssl-key (the key-stroke parameter) on your
system.
He is very busy at the moment, but when he has time I'll try to test the
ssl configuration on my system.

>
>By the way: do you perhaps know where I can find all possible fields
>and
>corresponding values for the ldap.properties file

The only source for the ldap.properties file I know is the example file,
but I think there are no more parameters  needed for the setup.

>or any other
>configuration
>files for lenya? I haven't found such things yet, but it would be a
>great
>help.
>
There are many different places where you can adjust lenya. i.E if you want
to change the layout of the default  publication you have to change the
xslt/page2xhtml.xsl file. If you want to understand Lenya, the Technical
Reference at
http://lenya.apache.org/docs/2_0_x/reference/lenya-sitemaps.html may help,
but you need basic Cocoon knowledge.

If you are more specific about the things you want to do, we may be able to
show you a way how to do it.

Rudolf





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Jann Forrer <ja...@id.uzh.ch>.
Hi Angelika

[ ... ]
> 
> At the moment lenya is running well for nearly an hour of editing and playing 
> around ... but after that hour it is getting slower because tomcat is eating 
> all cpu power it can get as soon as you only want to look onto one page in 
> the authoring area. So I have to enhance performance a lot, that's why I need 
> more documentation. 
>
Running only an hour is not very long for a web application :-) Did you
already increase the heap size for Tomcat using the  -Xmx option for the
jvm.
You can find Apache Cocoon performance tips at the cocoon website:
http://cocoon.apache.org/2.1/performancetips.html

HTF

Jann


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Angelika Schulz <an...@bralug.de>.
Hi Rudolf,
> 1) I don't use ssl so security-protcol=none.
> 2) In provider-url and base-dn I use the complete domain path. i.E.
>   
> provider-url=ldap://ldap.ukl.uni-freiburg.de:389/dc=ukl,dc=uni-freiburg,dc=
>de
>
>    base-dn=dc=ukl,dc=uni-freiburg,dc=de
>
> Our LDAP server is a Sun Directory Server.
Cool, this worked. I did not know that I could enter "none" as security 
protocol! Thanks a lot! I could enter the user, logged out the admin account 
and could login the new LDAP User. The LDAP server here is coming with SuSE 
as well.

My current LDAP configuration:
provider-url=ldap://ldap:389/ou=people,dc=intern
base-dn=ou=people,dc=intern
usr-branch=
usr-attr=uid
usr-authentication=simple
security-authentication=none
mgr-dn=
mgr-pw=
key-store=
security-protocol=none

I will try to find out whether the LDAP server can be accessed via SSL as well 
just to enhance security... Now I nearly know where to do the changes. :)

By the way: do you perhaps know where I can find all possible fields and 
corresponding values for the ldap.properties file or any other configuration 
files for lenya? I haven't found such things yet, but it would be a great 
help. 

At the moment lenya is running well for nearly an hour of editing and playing 
around ... but after that hour it is getting slower because tomcat is eating 
all cpu power it can get as soon as you only want to look onto one page in 
the authoring area. So I have to enhance performance a lot, that's why I need 
more documentation. 

Thanks a lot,
Angie

-- 
I know it all.  I just can't remember it all at once.

Re: Configuration help needed

Posted by ru...@uniklinik-freiburg.de.
Hi Angelika,


>1) LDAP Users
>When I am running an ldapsearch like this: 'ldapsearch -x -b
>dc=intern "(uid=ans)" -h ldap' I am usually getting a response
>telling me
>that the user ans is existing. Unfortunately the LDAP module for
>lenya keeps
>telling me, that this is not the case. Where can I get a good
>tutorial (for
>dummies) so I can understand what I am doing wrong?
>======================================
>provider-url=ldap://ldap:389/dc=intern
>base-dn=dc=intern
>usr-branch=
>usr-attr=uid
>usr-authentication=simple
>security-authentication=none
>mgr-dn=
>mgr-pw=
>key-store=.keystore
>security-protocol=ssl
>======================================
>PS: Yes, this server can be searched for users without the need to
>authenticate first.
>
I have a similar confugration also on a OpenSuSE 10.2 with JDK 1.6 running
on the build in jetty webserver. The differences are:

1) I don't use ssl so security-protcol=none.
2) In provider-url and base-dn I use the complete domain path. i.E.
   provider-url=ldap://ldap.ukl.uni-freiburg.de:389/dc=ukl,dc=uni-freiburg,dc=de

   base-dn=dc=ukl,dc=uni-freiburg,dc=de

Our LDAP server is a Sun Directory Server.

Can you tell the complete error message you got and are there some more
messages in the logfiles ? (WEB-INF/logs/..)

Rudolf





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Configuration help needed

Posted by Angelika Schulz <an...@bralug.de>.
Hi Andreas,
> > PS: One user would like to be able to search for all articles a specific
> > user created or edited ...
>
> This will be possible in 2.0.2.
>
> I hope this answer helps a bit :)
Yes, this helps a lot! I will wait for 2.0.2 ... I hope this won't take too 
long. ;)

Thanks, 
Angie

-- 
I know it all.  I just can't remember it all at once.

Re: Configuration help needed

Posted by Andreas Hartmann <an...@apache.org>.
Hi Angelika,

Angelika Schulz schrieb:
> 1) LDAP Users

[… no idea …]

> 2) Enhance Search
> Right now I was able to create a search page, but I am not very good at 
> configuring it. I want to be able to search for meta data, e.g. 
> like "author".

In 2.0, meta data aren't indexed automatically, changing the 
configuration doesn't help. In the upcoming release 2.0.2, all meta data 
are indexed by default.

During the user meeting in Freiburg (June 23+24) I'll give a little 
introduction to the new search capabilities. Would you be interested in 
attending the meeting? Apart from that, I hope I'll find the time to add 
some documentation.

There's also a draft for an extended search API:
https://issues.apache.org/bugzilla/show_bug.cgi?id=44990
Feel free to give it a try and add your comments.

> I can imagine that I only have to add a new search in the 
> configuration file, but I do not know exactly why it does not work for me. 

This won't be sufficient since the indexing infrastructure doesn't 
support custom index configurations (yet).

[…]

> PS: One user would like to be able to search for all articles a specific user 
> created or edited ... 

This will be possible in 2.0.2.

I hope this answer helps a bit :)

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org