FS#16704 - [lirc] 0.8.6 lircd daemon will not start

Attached to Project: Arch Linux
Opened by David Spicer (azleifel) - Saturday, 17 October 2009, 07:49 GMT
Last edited by Jan de Groot (JGC) - Thursday, 22 October 2009, 14:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

After the update to lirc 0.8.6 the lircd daemon will not start:

:: Starting LIRC Daemon [BUSY]
lircd: can't open or create /var/run/lirc/lircd.pid
lircd: No such file or directory

Creating /var/run/lirc fixes the problem but I'm not certain that I should have had to have done that!


Steps to reproduce:

sudo /etc/rc.d/lircd start
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 22 October 2009, 14:23 GMT
Reason for closing:  Fixed
Comment by Gean Marcos Geronymo (gean_geronymo) - Saturday, 17 October 2009, 19:06 GMT
I had this problem too, it happens because of these changes in lirc 0.8.6:

* moved default lircd, lircmd and lircrcd config file locations to
/etc/lirc/lircd.conf, /etc/lirc/lircmd.conf and /etc/lirc/lircrc
* moved lircd socket from /dev/lircd to /var/run/lirc/lircd
* moved default pid file location from /var/run/lircd.pid to
/var/run/lirc/lircd.pid

So I created the dirs /etc/lirc and /var/run/lirc , and moved /etc/lircd.conf to /etc/lirc/lircd.conf . Now it's working again.
Comment by Hugo Doria (hdoria) - Sunday, 18 October 2009, 02:04 GMT
Gean,

Are you getting errors when do you start lircd daemon? Something like this:

lircd: error in configfile line 5
lircd: reading of file '/etc/lirc/lircd.conf' failed
lircd: reading of config file failed
Comment by Gean Marcos Geronymo (gean_geronymo) - Sunday, 18 October 2009, 03:18 GMT
Hi Hugo,

No, after I moved lircd.conf to /etc/lirc/lircd.conf and created the folder /var/run/lirc, the daemon starts without any errors.
Comment by Per Hellevik (Perre) - Monday, 19 October 2009, 19:48 GMT
  • Field changed: Percent Complete (100% → 0%)
Problem is not completely fixed with lirc-utlis-0.8.6-2. The daemon starts, but when using irw using the remote gives no response.
Comment by Hugo Doria (hdoria) - Monday, 19 October 2009, 19:52 GMT
Do you know what can be wrong, Per? Unfortunatelly i do not have a way to try what you said.
Comment by Gean Marcos Geronymo (gean_geronymo) - Monday, 19 October 2009, 22:56 GMT
When I updated to lirc-utils-0.8.6-2, it stopped working too. I guess there are big changes in lirc 0.8.6 configuration. I had to move /etc/conf.d/lircd.pacsave to /etc/lirc/lircd.conf, and in the line " LIRC_CONFIGFILE="" " specify the path do my remote's config file. Appears that before the /etc/lircd.conf was the remote config file, and /etc/conf.d/lircd was the lirc conf file, now the conf file is /etc/lirc/lircd.conf .
Comment by Per Hellevik (Perre) - Tuesday, 20 October 2009, 16:35 GMT
I've copied the lirc conf file to /etc/lirc/lircd.conf and I've tried putting the remote config file in both /etc/conf.d/lircd.conf and /home/per/.lirc/lircd.conf and then specified in the "LIRC_CONFIGFILE="The appropriate path". I can start the daemon without errors but it doesn't seem to recognize my remote config file. When I've got irw running and press buttons on the remote nothing happens.

(I've created the folder /var/run/lirc and both lircd and lircd.pid are present.)
Comment by Per Hellevik (Perre) - Tuesday, 20 October 2009, 18:58 GMT
I got help in the arch forums and now I got the remote working when testing with irw. I'm using the lirc file for /etc/rc.d/lircd found here: http://bbs.archlinux.org/viewtopic.php?pid=640745#p640745
Comment by Hugo Doria (hdoria) - Tuesday, 20 October 2009, 19:14 GMT
Coudl you try lirc-utils-0.8.6-3?
Comment by Per Hellevik (Perre) - Tuesday, 20 October 2009, 19:57 GMT
I first got
[per@arch packages]$ sudo pacman -U lirc-utils-0.8.6-3-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [#####################] 100%
error: failed to prepare transaction (conflicting files)
lirc-utils: /etc/conf.d/lircd.conf exists in filesystem

After removing /etc/conf.d/lircd.conf and installing the deamon won't start
[per@arch ~]$ sudo /etc/rc.d/lircd start
sudo: /etc/rc.d/lircd: command not found
Comment by Hugo Doria (hdoria) - Tuesday, 20 October 2009, 20:00 GMT
Did you created these files by hand, before this update?
Comment by Hugo Doria (hdoria) - Tuesday, 20 October 2009, 20:04 GMT
$ sudo pacman -U lirc-utils-0.8.6-3-i686.pkg.tar.gz

loading package data...
checking dependencies...
(1/1) checking for file conflicts [###############] 100%
(1/1) upgrading lirc-utils [###############] 100%

looks fine here. could someone confirm the conflicts?
Comment by Per Hellevik (Perre) - Wednesday, 21 October 2009, 16:33 GMT
Did a complete removal, reinstalled lirc and lirc-utils and this is what I got:

[per@arch /]$ sudo /etc/rc.d/lircd start
:: Starting LIRC Daemon [BUSY]
ln: creating symbolic link `/dev/lircd': File exists
[FAIL]
Comment by Per Hellevik (Perre) - Wednesday, 21 October 2009, 16:39 GMT
Sorry, removed the symbolic link and I now get:

[per@arch /]$ sudo /etc/rc.d/lircd start
:: Starting LIRC Daemon [FAIL]
Comment by Per Hellevik (Perre) - Wednesday, 21 October 2009, 16:46 GMT
Did a reboot and now it works!
Thanks for the help Hugo, it's greatly appreciated! :)

Loading...