midgardproject / midgard-core

The base library of the Midgard Content Repository
http://midgard-project.org/docs/
Other
37 stars 6 forks source link

Error creating user specific configuration directory '/var/www/.local/share/libgda' midgard-core #186

Open seydu opened 11 years ago

seydu commented 11 years ago

Hi. I am trying some of the bundles of Symfony CMF in an existing Symfony2 projet. I tried using Midgard instead of Jackrabbit. But i get this error: Error creating user specific configuration directory '/var/www/.local/share/libgda' midgard-core (in Apache error log)

flack commented 11 years ago

I think this is the same problem as https://github.com/midgardproject/midgard-php5/issues/90

seydu commented 11 years ago

Yes I think it is.

piotras commented 11 years ago

Creating '/var/www/.local/share/libgda' directory might be the best workaround. Error comes from libgda and there's nothing we can do.

flack commented 11 years ago

So the solution from https://bugzilla.gnome.org/show_bug.cgi?id=683262#c2 won't work in midgard?

piotras commented 11 years ago

It's not a solution.

  1. We do not use Gda Config.
  2. It doesn't resolve issue for exisiting installations.

In other words, we need to start to use fake gda config and "fix" the problem in development branch only.

seydu commented 11 years ago

Sorry for closing it accidentally !

seydu commented 11 years ago

I think Midgard shouldn’t be writing there ! If it does this location should be configurable at run time. When I saw this error in my logs my first reaction was "Did I catch a virus, is my server being attacked ?". Hope other people wont react the same way, if they do it won't help Midgard (many people want to use Java only as last resort)

flack commented 11 years ago

Creating the directory doesn't seem to solve the problem, because now I get:

PHP Warning:  Unknown: I/O warning : failed to load external entity "/var/www/.local/share/libgda/config" in Unknown on line 0
flack commented 11 years ago

creating an empty config file doesn't help either:

PHP Warning:  Unknown: /var/www/.local/share/libgda/config:1: parser error : Document is empty in Unknown on line 0
flack commented 11 years ago

This removed the error for me:

https://friendpaste.com/21WFtusmIesUcgQ8eqe8xQ

seydu commented 11 years ago

Thanks. Where should I put this XML content ?

flack commented 11 years ago

/var/www/.local/share/libgda/config

seydu commented 11 years ago

Thanks, I will try it.