emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: org-caldav problem; used to work
Date: Thu, 13 Nov 2014 15:41:44 +0100	[thread overview]
Message-ID: <20141113154144.3c3e9d20@gaia> (raw)

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

             reply	other threads:[~2014-11-13 14:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 14:41 Detlef Steuer [this message]
2014-11-16 21:53 ` org-caldav problem; used to work 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141113154144.3c3e9d20@gaia \
    --to=detlef.steuer@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).