Bug 16028 - radicale can not be launched as single user
Summary: radicale can not be launched as single user
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-23 18:59 CEST by papoteur
Modified: 2015-05-23 20:35 CEST (History)
0 users

See Also:
Source RPM: radicale
CVE:
Status comment:


Attachments

Description papoteur 2015-05-23 18:59:37 CEST
Description of problem:
When radicale is launched as single user, it crashes because of access permission not allowed on /var/log/radicale/radicale.log

Documentation says that radicale as to be launched as simple user.

Version-Release number of selected component (if applicable):
radicale-0.7.1-4.mga4


How reproducible:


Steps to Reproduce:
1. Install radicale
2. launch it in console with the command "radicale"
3. get the error:
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/site-packages/radicale/__main__.py", line 90, in run
    radicale.log.start()
  File "/usr/lib/python2.7/site-packages/radicale/log.py", line 43, in start
    logging.config.fileConfig(FILENAME)
  File "/usr/lib64/python2.7/logging/config.py", line 78, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib64/python2.7/logging/config.py", line 156, in _install_handlers
    h = klass(*args)
  File "/usr/lib64/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 926, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/radicale/radicale.log'


Reproducible: 

Steps to Reproduce:
Rémi Verschelde 2015-05-23 19:15:07 CEST

Assignee: bugsquad => jani.valimaa

Comment 1 Jani Välimaa 2015-05-23 19:18:31 CEST
Which documentation? Radicale (in mga) is supposed to be run as system service.
Comment 2 Jani Välimaa 2015-05-23 19:21:56 CEST
Also, radicale is currently pretty outdated. I'll look if I've time/motivation to update it if Cauldron reopens someday.
Comment 3 Jani Välimaa 2015-05-23 19:32:18 CEST
If you want to run radicale as a normal user, you'll have to copy files from /etc/radicale/ to ~/.config/radicale/ and edit paths etc such way you can run radicale as a normal user.
Comment 4 Jani Välimaa 2015-05-23 19:35:17 CEST
Closing as INVALID.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 5 papoteur 2015-05-23 19:43:13 CEST
Hi Jani,
The only documentation I found is:
http://radicale.org/user_documentation/#idstarting-the-server
which doesn't refer to service.
Ok, I tried systemctl start radicale, but it doesn't seem to be active.
What is to check?
Papoteur

Resolution: INVALID => FIXED

Comment 6 Jani Välimaa 2015-05-23 20:12:29 CEST
Use your favorite web browser and browse to address http://localhost:5232/ to see if it's working.

Resolution: FIXED => INVALID

Comment 7 papoteur 2015-05-23 20:35:35 CEST
After uninstalling and reinstalling, I get:
Radicale works!

Thanks
Where can a Mageia user find the information that radicale is configured as service?
The README sends to the radicale.org documentation.

Note You need to log in before you can comment on or make changes to this bug.