SOLVED-How to run Radicale calendar hosting program in Puppy

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

SOLVED-How to run Radicale calendar hosting program in Puppy

#1 Post by Subito Piano »

Hi all -- i want to test radicale to use puppy on another box to host a caldev calendar for personal use. I installed radicale and the related pyton package via PPM bt upon runnning it i receive this:

Code: Select all

sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
    log.start()
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
    logging.config.fileConfig(filename)
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/radicale/radicale.log'
sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/radicale/radicale.log'
Running TahrPup 6.0.5. In terminal, "python -v" shows version 2.7 installed. Any ideas what i need to do? Thoughts appreciated!
Last edited by Subito Piano on Mon 26 Dec 2016, 18:21, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Great, Subito_Piano! :) But euh... what is "radicale"?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#3 Post by OscarTalks »

I don't know what radicale is either. This is just a long shot, but looking at the code you posted it looks like the program is trying to write to a log file that doesn't exist (or maybe it is blocked because of permissions). I have seen programs error out when this happens (eg when I compiled IceCast server). Try creating manually the path and blank file /var/log/radicale/radicale.log if it doesn't exist. If it does exist then try to change the permissions to allow the program to write to it.
Oscar in England
Image

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#4 Post by Subito Piano »

I'll give it a spin and report back. Thanks, Oscar.

Musher -- Radicale is hailed as a lightweight and simple calendar hosting program. Right now i've a server here at home using TurnKey Linux to host my calendars and to backup my files with OwnCloud. I'd like to see if i can do this all through a Puppy setup, hopefully with radicale for the calendars and pbackup for the syncing. More info on Radicale here.
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

Aaaah!!! Now he tells us!!! :lol:
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#6 Post by Subito Piano »

Ah, yes Musher -- obviously the suspense WASN'T killing you... ;-)

Progress, i suppose -- i create said file and open all permissions. Next i attempt to open it in terminal and get -- a blinking cursor! :roll:

I recall a similar problem when attempting to get rednotebook working in Slacko -- too many python issues and i didn't have the chops/time to figure out how to make it work so i stayed with Tahr.
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#7 Post by LazY Puppy »

# Config file for Radicale - A simple calendar server
# Place it into ~/.config/radicale/config (user)

[server]
base_prefix = /
can_skip_base_prefix = False
dns_lookup = False

[encoding]
request = utf-8
stock = utf-8

[auth]
type = None

[rights]
type = None

[storage]
type = filesystem
custom_handler =
filesystem_folder = ~/.config/radicale/collections

[logging]
config = ~/.config/radicale/logging
debug = False
full_environment = False

[loggers]
keys = root

[handlers]
keys = file

[formatters]
keys = full

[logger_root]
level = INFO
handlers = file

[handler_file]
class = FileHandler
args = ('/home/pacs/xyz00/users/cal/var/radicale.log',)
formatter = full

[formatter_full]
format = %(asctime)s - %(levelname)s: %(message)s
Found a example config file for Radicale on the web.
https://wiki.hostsharing.net/index.php? ... figuration
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#8 Post by Subito Piano »

Created said file. No good. Went to said web page and created the "logging" file listed on that page below the suggested configuration file in the same folder....then i get:

Code: Select all

sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
    log.start()
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
    logging.config.fileConfig(filename)
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/home/pacs/xyz00/users/cal/var/radicale.log'
Soooo....i created /hone/pacsxyzoo/users/cal/var/radicale.log and open permissions up wide and....

sans joie :( -- back to the blinking cursor!

Lifeline, anyone?
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#9 Post by amigo »

args = ('/home/pacs/xyz00/users/cal/var/radicale.log',)
That is an example path which should be substitued with something more reasonable like:
~/cal/var/radicale.log
but you need to at least create that directory, if not an empty log file to start with.

That said, I think you could go back to using no config file at all, if you create the dir /var/log/radicale and possibly empty radicale.log file therein.

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#10 Post by Subito Piano »

Thanks for idea -- will try. Probably i'd best be smart and try this on a plain vanilla Puppy (i.e., pfix=ram). Trying to squeeze this little project in among work and other "hings..."
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#11 Post by Subito Piano »

AMIGO said:
That said, I think you could go back to using no config file at all, if you create the dir /var/log/radicale and possibly empty radicale.log file therein.
Now that things have settled down and I've some free time, I tried your suggestion. Thanks amigo! That seems to have done the trick -- just by creating the directory. The log file was created automatically when starting radicale.
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

User avatar
Subito Piano
Posts: 731
Joined: Mon 28 May 2007, 03:12
Location: UPSTATE New York
Contact:

#12 Post by Subito Piano »

For anyone trying to install Radicale: after much effort, i discovered version 0.8 is available through the Puppy Package Manager but does not work. Radicale version 1.1.1 and python-radicale 1.1.1 are both available here and work. It's Debian "strech" not "wheezy," but that didn't seem to bother my TahrPup. All other dependencies seem to already installed.
To get it configured for use, i followed the simple directions here.
[color=green]"God is love" - [url=https://www.esv.org/1+John+4/]I John 4:12[/url][/color]
ðŸ￾§ ðŸ￾§ ðŸ￾§ Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! :D
(A/V Linux for live digital synth needs)

Post Reply