emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-caldav problem; used to work
@ 2014-11-13 14:41 Detlef Steuer
  2014-11-16 21:53 ` David Engster
  0 siblings, 1 reply; 8+ messages in thread
From: Detlef Steuer @ 2014-11-13 14:41 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-16 23:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 14:41 org-caldav problem; used to work Detlef Steuer
2014-11-16 21:53 ` David Engster
2014-11-16 22:15   ` Detlef Steuer
2014-11-16 22:24     ` Rasmus
2014-11-16 23:00       ` Detlef Steuer
2014-11-16 22:37     ` David Engster
2014-11-16 22:58       ` Detlef Steuer
2014-11-16 23:12         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).