DAViCal/Upgrading to 2.0.0

56 views
Skip to first unread message

j...@cr0well.ca

unread,
Jan 3, 2017, 4:31:56 PM1/3/17
to AgenDAV general
I have had AgenDAV (1.2.6.2) working with DAViCal and have just tried upgrading to 2.0.0.  After upgrade AgenDAV is unable to load calendar events.  I am able to login/load all calendars/create calendars/delete calendars and even create new events, but no events are ever loaded.  Does anyone have this combination working?  Any advice to make this work?  What logs can I provide to help troubleshoot this?


All I have found so far is the events calls v2.0.0 vs v1.2.6.2.

1.2.6.2
/public/index.php/event/all?calendar=jon/test&start=1483228800&end=1486252800&_=1483472963815

2.0.0
/public/events?calendar=/dav/caldav.php/jon/test/&start=2017-01-01&end=2017-02-12&timezone=America/Winnipeg&_=1483470933104


My DAViCal install is located in the /dav/ subdirectory.


If I manual enter that 2.0.0 events URL into my browser I get response of:

{
  • "result": "EXCEPTION",
  • "message": "Invalid value"
}

I have tried changing the 'calendar' parameter to just 'jon/test' like the 1.2.6.2 format, but that returns the same response.

Jorge López Pérez

unread,
Jan 5, 2017, 8:26:33 AM1/5/17
to agendav...@googlegroups.com
Hi Jon,

On Tue, Jan 3, 2017, at 22:31, j...@cr0well.ca wrote:

> If I manual enter that 2.0.0 events URL into my browser I get response
> of:
>
> {
>
> - "result": "EXCEPTION",
> - "message": "Invalid value"
>
> }
>

This is usually caused by missing input parameters on the URL, but I can
see them on your requests.

What web server are you running AgenDAV on? Is it configured using the
guide from http://silex.sensiolabs.org/doc/master/web_servers.html ?

Best regards.

--
Jorge López Pérez
http://adobo.org

j...@cr0well.ca

unread,
Jan 5, 2017, 9:19:49 PM1/5/17
to AgenDAV general
I'm using nginx as a web server, but I'm accessing my agendav installation from a subdirectory (https://server.com/public), this might be the issue with my nginx config.
This is what I have been using that was working with 1.2.6.2 (I'm not sure where I originally found this config):

        set $controller /public/index.php;

        location /public {
                root /srv/agendav/web;
                index index.php;

                try_files $uri $uri/ $controller;

                location ~ ^(?<script>.*\.php)(?<pathinfo>.*)$ {
                        try_files $script $controller;

                        include /etc/nginx/fastcgi_params;
                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                        fastcgi_param PATH_INFO $pathinfo;
                        fastcgi_pass unix:/var/run/php5-fpm.sock;

#                       fastcgi_param AGENDAV_ENVIRONMENT dev;

Jorge López Pérez

unread,
Jan 11, 2017, 3:52:40 AM1/11/17
to agendav...@googlegroups.com
Hi Jon,

On Fri, Jan 6, 2017, at 03:19, j...@cr0well.ca wrote:

> This is what I have been using that was working with 1.2.6.2 (I'm not
> sure
> where I originally found this config):
> [...]

I would try adapting the suggested configuration from
http://silex.sensiolabs.org/doc/2.0/web_servers.html#nginx .

Hope that helps.
Reply all
Reply to author
Forward
0 new messages