From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: org-caldav problem; used to work Date: Thu, 13 Nov 2014 15:41:44 +0100 Message-ID: <20141113154144.3c3e9d20@gaia> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xovb1-0003Cs-Kd for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 09:42:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xovaw-00054E-FE for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 09:42:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:51470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xovaw-000549-7v for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 09:41:58 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xovat-0005dC-97 for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 15:41:55 +0100 Received: from gaia.unibw-hamburg.de ([139.11.181.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2014 15:41:55 +0100 Received: from detlef.steuer by gaia.unibw-hamburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2014 15:41:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi! Finally I want to put my org-calendar into owncloud for easy access everywhere. I tried before, but had difficulties with UIDs maybe a year before and gave up. Nevertheless: Last time I tried the basics were easy and I had a script working for small files. Now I get an error and am running out of steam after a few hours of trying: == testtodo.org looks like this: * Test1 SCHEDULED: <2014-11-20 Mi 19:00-20:00> == If now I enter M-x org-caldav-sync I get the following in *Messages* Contacting host: CORPORATESERVER:443 auth-source-search: found 1 results (max 1) matching (:max 1 :host "CORPORATESERVER:443" :port "https") auth-source-search: found 1 CACHED results matching (:max 1 :host "CORPORATESERVER:443" :port "https") Contacting host: CORPORATESERVER:443 org-check-agenda-file: Wrong type argument: stringp, nil gnutls.c: [0] (Emacs) fatal error: The TLS connection was non-properly terminated. And in *org-caldav-debug* ========== Started sync. Check connection for https://cloud.unibw-hamburg.de/owncloud/remote.php/caldav/calendars/steuer/testtodo/. Generating ICS file /tmp/org-caldav-70960sU. The ICS file is empty. My minimal init.el used for these experiments: ;;;; Org Mode ;;; (setq load-path (cons "~/.emacs.d/org-mode/lisp" load-path)) (setq load-path (cons "~/.emacs.d/org-mode/contrib/lisp" load-path)) (require 'org) ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (add-hook 'org-mode-hook 'turn-on-font-lock) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (setq org-directory "~/Test/Orgmodetest/CaldavKalender") (setq org-default-notes-file (concat org-directory "/inbox.org")) (define-key global-map "\C-cc" 'org-capture) (setq org-agenda-files (quote("~/Test/Orgmodetest/CaldavKalender/testtodo.org"))) (require 'auth-source) (setq auth-sources '((:source "~/.netrc" :host t :protocol t))) (setq auth-source-debug t) ; for org-caldav ;;(setq org-icalendar-include-todo t) ;;(setq org-icalendar-use-deadline '(todo-due)) ;;(setq org-icalendar-use-scheduled '(event-if-not-todo)) (setq org-icalendar-timezone "Europe/Berlin") (setq load-path (cons "~/.emacs.d/org-caldav" load-path)) (setq org-caldav-url "https://CORPORATESERVER/owncloud/remote.php/caldav/calendars/steuer") (setq org-caldav-calendar-id "testtodo") (setq org-caldav-files '("~/Test/Orgmodetest/CaldavKalender/testtodo.org") ) (setq org-caldav-inbox "~/Test/Orgmodetest/CaldavKalender/caldav-inbox.org") (require 'org-caldav) --- emacs is invoked as emacs -Q -l init.el testtodo.org emacs-24.4.1 org 8.3beta from today The server (and the paths) works. At least I can sync my mobile. Any obvious mistake on my side? Where does org-check-agenda-file happen? How can I debug any further? Any help appreciated! Detlef