ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 30 forks source link

The documentation on the dbm extension doesn't work #26

Open kit-ty-kate opened 10 years ago

kit-ty-kate commented 10 years ago

I wanted to test dbm as a replacement of sqlite for Cumulus and I ran into problem, first the configuration and the documentation is not very explicit and I don't really know what its configuration does exactly (or I didn't look very far). Second, I tried with the following configuration:

<extension findlib-package="ocsigen.ext.ocsipersist-dbm">
  <store dir="/tmp"/>
  <ocsidbm name="ocsidbm"/>
</extension>

and when I run, I got the following console message:

ocsigenserver: main: Initializing Ocsipersist-dbm
ocsigenserver: main: Launching a new Ocsidbm process: ocsidbm on directory /tmp.
ocsigenserver: main: Launching a new Ocsidbm process: ocsidbm on directory /tmp.

and if I tried to load a page, it loops and gives nothing. If I ^C the process, a zombie process remains and holds the network port.

balat commented 10 years ago

We are using ocsidbm on ocsigen.org without problem. Is the ocsidbm process running? Do you have something in the logs? Our config is just:

    <extension findlib-package="ocsigenserver.ext.ocsipersist-dbm">
      <store dir="/var/lib/ocsidbm/site/"/>
    </extension>
kit-ty-kate commented 10 years ago

It works fine with this, thanks. The ocsidbm process didn't seems to run and I've nothing in the logs except the console messages I've already given. So I guess there is something wrong in the documentation: https://ocsigen.org/ocsigenserver/manual/libraries

But still, there is a problem I think.

kit-ty-kate commented 10 years ago

Oh and you were right ! The dbm backend is MUCH faster ! :)

kit-ty-kate commented 9 years ago

Mmmh why this issue has been closed ? The documentation is not fixed :/

Drup commented 9 years ago

Hum ? It seemed the problem was solved. What should be changed in the doc ?

kit-ty-kate commented 9 years ago

Well it worked for me because I changed the config but it still doesn't work using the config from the documentation.