-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baikal 0.2.7 : HTTP 500 #381
Comments
same other here |
This tells me that there is a database error. Are you still having this issue? |
My installation has not changed since then .... the error is still there |
The curl statement you are using doesn't really do a normal supported request. What are you trying to achieve exactly? Does this error prevent you from using the software? |
The curl statement was a way for me to reproduce the error. Of course my DAV client on Android or Evolution on Gnome makes requests to the server that are also failing. other_vhosts_access.log:my.server.com:443 89.92.172.41 - - [21/Jan/2016:19:47:56 +0100] "OPTIONS /cal.php/calendars/bestuser/default/ HTTP/1.1" 500 620 "-" "Evolution/3.12.9" |
Could you post the full curl response to:
|
curl: (6) Could not resolve host: OPTIONS And server side log on Apache is : |
From DAVDroid Client there are more debug logs :
|
Alright, the error at least seems very consistent everywhere... Would you be able to share the schema and perhaps even do a dump of the 'principals' table. Either there's something broken in that database table, or that table doesn't exist at all. It's unfortunate that we can't see the real underlying MySQL error :( |
Sorry about that, the same thing applies then to sqlite. You can get the information by running:
from the sqlite3 console. |
I found
|
Perhaps is it |
I think it should be the latter, yes.. the schema looks fine here though. Are there any entries inside of the table ( |
|
Nothing out of the ordinary... what are the file permissions for that database file? Both the file as well as the parent directory of the file need to be accessible by the webserver. The easiest way to do this is:
But don't do this if this is a shared server and you are concerned about other users on the same user accessing that database. |
|
What about its parent folder? Same thing? |
Yes up to install directory
|
Could it have anything to do with apache 2.4 ? It was running smoothly on apache 2.2 |
I think that's highly doubtful, you're getting a clear PHP error. |
I'm running out of ideas :( I guess there's nothing interesting in the error logs either? |
|
On most systems php errors would just appear in the apache error log. The thing I'm really looking for is an error thrown specifically by PDO /Sqlite3. |
There are many lines in logs file but they don't contain more information than in my original post.
|
Alright, I do have a hunch. I looks like baikal copies over a default sqlite database (from Db/Sqlite/db.sqlite) and uses that as a 'starting database'. I don't know how good of an idea that is. I have a feeling it could mess up if the sqlite used to create the file is not identical to the sqlite that you are running. Since you are just getting started, I think I would recommend just re-creating the database manually. You can do so by running:
Make sure you move the original database out of the way. This might fix the problem, but I'm not 100% sure. If it does, we need to make sure that Baikal does this by default during installation. |
|
wow wtf.. there's somethign really weird going on with that output! |
Looks like I agree with you ;) |
no, wait.. I gave you the wrong command:
Note the missing 'ite' at the end. We need the orginal text .sql file |
It did the trick !!! Thank you very much. I'll make some real-life test cases and I'll tell you. |
Great to hear. I'm keeping this ticket open because we need to prevent this from ever happening. |
When accessing to card.php an error is raised.
curl -so - --digest --user 'user:password' https://myserver/card.php/addressbooks/myuser/default/ -k -S
Fatal error: Call to a member function execute() on boolean in /var/www/baikal/vendor/sabre/dav/lib/Sabre/DAVACL/PrincipalBackend/PDO.php on line 161
In Apache logs:
500 Internal Server Error
/cal.php/calendars/myuser/default/: 25 Time(s)
/card.php/addressbooks/myuser/default/: 8 Time(s)
/: 2 Time(s)
/card.php/addressbooks/myuser/default/0C6 ... 0A-6908F533.vcf: 2 Time(s)
/card.php/addressbooks/myuser/default/643 ... C6-6B8B4567.vcf: 1 Time(s)
The text was updated successfully, but these errors were encountered: