Replies: 15 comments 11 replies
-
I have just come back to this to rebuild a new Raspberry Pi box to run some x-10 stuff . i see my old instruction i crearted for my self points to 2.11RC3. I know very little (nothing about all of this) more than following tutorials on how to do stuff. Which should I be using many thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, 2.10.3 is the latest stable release. Almost all fixes against 2.10.2 have also been applied to the master branch which is based on 2.11.rc3. There is also a branch named topic/locking which contains one more fix supposed to resolve issues with stale lock files. If possible, please download a snapshot of that branch and give it a try -- I need some feedback before I can decide if it may be merged to master as is and possibly submitted as a new release, or it needs more work. If you have issues with it, please report and use a snapshot of the master branch. Thanks, |
Beta Was this translation helpful? Give feedback.
-
There is nothing special with sapshots from git branches. Those are just ZIP archives of patched Heyu soruces. Unpack one and follow standard installation instructions (see README file for details). Thanks, |
Beta Was this translation helpful? Give feedback.
-
i am trying today heyu info ..go past that now "heyu info " just stops everything can leave it 2-3 minutes..just stops with blinking cursor Will do another clean rebuild of Raspberry OS on to a fresh SD card and try again ..but I do have other jobs to do today |
Beta Was this translation helpful? Give feedback.
-
OK, so each attempt I started with a Fresh 'install of Raspbian Stretch Lite if i use https://github.com/HeyuX10Automation/heyu/archive/v2.11-rc3.tar.gz it works ..heyu drives the CM11 I can issue commands like heyu on a6 and the X-10 device responds if I use then there is no Configure.sh file and the command sh ./Configure.sh does not work If I use https://github.com/HeyuX10Automation/heyu/archive/refs/heads/topic/locking.zip then everything goes this same as it does for 11rc3...until the command "heyu info" Then the cursor just blinks and nothing further I will try with the master version you linked to earlier this afternoon. but so far. on an RPi2 with Stretch Lite Yes master version works and 11 RC3 works .. no others work for me |
Beta Was this translation helpful? Give feedback.
-
the locking branch on a Raspberry Pi 2 I get ..as below..it jsut gets stuck in that loop until I Ctrl-C out of it pi@litepi:~/src/heyu-topic-locking $ heyu -v info |
Beta Was this translation helpful? Give feedback.
-
2.10.3.... ** Now become root and run 'make install' ** pi@litepi:~/src/heyu-2.10.3 $ sudo su [email protected]'s password: The programs included with the Debian GNU/Linux system are free software; Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent root@litepi:/home/pi/src/heyu-2.10.3# make install I did not find a Heyu configuration file.
I will add the TTY port for your CM11 to the config file |
Beta Was this translation helpful? Give feedback.
-
@npaisnel thanks a lot for testing and reporting. You effort has helped me to identify a bug in the topic/locking branch: lockpid function is using a malformed name of the lock file. I'll take a closer look at the code and submit a fix. Regarding the issue with make install, there is a recommendation to stop running heyu processes before an update / downgrade attempt. With that in mind, both 2.10.3 and master snapshot seem working correctly for you. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for continuing the heyu development! I recently installed heyu 2.10.3 on a Centos 7 system running Asterisk and have been successfully executing heyu commands from the Asterisk dialplan (as user asterisk group asterisk) until today, when the system was shut off abruptly by a power failure. Now the commands from Asterisk fail with a message in /var/log/messages "heyu: The lock directory /var/lock is not writable." I can still execute heyu commands as root. I've power cycled and rebooted but neither fixed the problem. Here's /var/run/lock (which /var/lock points to): drwx------ 2 root root 60 Jun 15 22:30 iscsi The Asterisk dialplan runs heyu.sh (owned by asterisk) which consists of: #!/bin/bash Before I start changing things blindly, I thought I'd better ask the experts. Thanks. --ghutib |
Beta Was this translation helpful? Give feedback.
-
The problem with insufficient permissions to /var/lock is distribution specific, beyond the scope of Heyu source code. |
Beta Was this translation helpful? Give feedback.
-
Hi Janusz,
Thanks—that worked! I edited /usr/lib/tmpfiles.d/legacy.conf and changed the line with:
d /run/lock 0755 root root -
to:
d /run/lock 0777 root root -
Now I have another problem. You may remember that I’m running Heyu on my Asterisk box with the dialplan invoking Heyu.
When invoking Heyu from Asterisk (user asterisk), it fails due to the permissions on /dev/ttyS0 being:
crw-rw---- 1 root dialout 4, 64 Jul 16 21:02 /dev/ttyS0
First, I tried adding asterisk to the dialout group, but that didn’t work.
Then I tried changing the ttyS0 permissions from:
crw-rw---- 1 root dialout 4, 64 Jul 16 21:02 /dev/ttyS0
to:
crw-rw-rw- 1 root dialout 4, 64 Jul 16 21:02 /dev/ttyS0
…and that worked.
But then intermittently, somebody is changing the permissions for ttyS0 back to:
crw-rw---- 1 root dialout 4, 64 Jul 16 21:02 /dev/ttyS0
Is there a better, persistent fix?
Thanks.
Regards,
Steve
From: Janusz Krzysztofik ***@***.***>
Sent: Wednesday, June 16, 2021 3:35 PM
To: HeyuX10Automation/heyu ***@***.***>
Cc: Stephen Diamond ***@***.***>; Comment ***@***.***>
Subject: Re: [HeyuX10Automation/heyu] Heyu 2.10.3 (#36)
The problem with insufficient permissions to /var/lock is distribution specific, beyond the scope of Heyu source code.
Quoting https://forums.centos.org/viewtopic.php?t=65936 ("Permission problem when using lock files"):
"The solution to this is that your app should ship a /etc/tmpfiles.d config file that tells systemd-tmpfiles to create a /run/lock/yourapp directory, owned by your app user. So, don't create your lockfile directly under /run/lock but in a subdorectory off that that is created by systemd-tmpfiles for you at boot time (or when systemd-tmpfiles --create /etc/tmpfiles.d/yourapp.conf is run)."
You can use this method to either change group ownership and group permissions of /var/run/lock, or use a dedicated heyu subdir as suggested and build heyu with -DLOCKDIR=/var/lock/heyu added to CFLAGS. If the latter then either edit Heyu ./Configure script and re-run it or edit Makefile created by ./Configure, then rebuild Heyu with make.
Thanks,
Janusz
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#36 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADKTMS44JBS4BWDDVDESDODTTERHRANCNFSM43442ISQ>.
|
Beta Was this translation helpful? Give feedback.
-
Hi Janusz,
Thanks for pointing me to udev. I haven’t been able to figure out where udev on CentOS 7 is told to set the mode for /dev/ttyS0 to 660, although udevadm says that it does:
udevadm test /devices/pnp0/00:06/tty/ttyS0 gives this (partial) output:
GROUP 18 /usr/lib/udev/rules.d/50-udev-default.rules:22
no db file to read /run/udev/data/+pnp:00:06: No such file or directory
handling device node '/dev/ttyS0', devnum=c4:64, mode=0660, uid=0, gid=18
preserve permissions /dev/ttyS0, 020660, uid=0, gid=18
preserve already existing symlink '/dev/char/4:64' to '../ttyS0'
created db file '/run/udev/data/c4:64' for '/devices/pnp0/00:06/tty/ttyS0'
What am I missing?
Thanks.
Regards,
Steve
From: Janusz Krzysztofik ***@***.***>
Sent: Saturday, July 17, 2021 2:42 PM
To: HeyuX10Automation/heyu ***@***.***>
Cc: Stephen Diamond ***@***.***>; Comment ***@***.***>
Subject: Re: [HeyuX10Automation/heyu] Heyu 2.10.3 (#36)
On modern distributions udev is used to maintain ownership and permissions of device files. Read 'man udev' to identifiy directories where udev rule files are stored, find one with rules for serial devices, place a copy of that file in a udev rules directory under /etc and modify it as needed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#36 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADKTMS6MLNZJF5FUXW6LIOTTYH2LFANCNFSM43442ISQ>.
|
Beta Was this translation helpful? Give feedback.
-
Hi Janusz,
Here’s /usr/lib/udev/rules.d/50-udev-default.rules line 22:
KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
I’m also attaching 50-udev-default.rules.
Regards,
Steve
From: Janusz Krzysztofik ***@***.***>
Sent: Saturday, July 24, 2021 5:27 PM
To: HeyuX10Automation/heyu ***@***.***>
Cc: Stephen Diamond ***@***.***>; Comment ***@***.***>
Subject: Re: [HeyuX10Automation/heyu] Heyu 2.10.3 (#36)
From the above I conclude file permissions and group ownership of /dev/ttyS0 are defined in /usr/lib/udev/rules.d/50-udev-default.rules line 22 on your system
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#36 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADKTMS2ODQ23INLJ2FOYAZDTZNK5FANCNFSM43442ISQ>.
|
Beta Was this translation helpful? Give feedback.
-
Hi Janusz,
You’re right, I should have tried that first--it worked.
I was focused on figuring out where the /dev/ttyS0 permissions had been set to 0660 in the first place.
Thank you!
Regards,
Steve
From: Janusz Krzysztofik ***@***.***>
Sent: Sunday, July 25, 2021 4:51 AM
To: HeyuX10Automation/heyu ***@***.***>
Cc: Stephen Diamond ***@***.***>; Comment ***@***.***>
Subject: Re: [HeyuX10Automation/heyu] Heyu 2.10.3 (#36)
Have you followed my advice, copied that file to udev rules subdir under /etc and modified that line as needed? E.g., add something like MODE="0666" to it, or change GROUP="dialout" to something else? Instead of copying the whole file and modifying it, you can also create a new file, best with a name starting with 99-z to make sure it will be parsed last and override other rules, with a rule like that for ttyS0 specifically. Changes to /dev/ttyS0 should be visible after reboot.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#36 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADKTMS7LV4C64SHNBZT4XZ3TZP3BJANCNFSM43442ISQ>.
|
Beta Was this translation helpful? Give feedback.
-
Steve and All, |
Beta Was this translation helpful? Give feedback.
-
List of changes since release 2.10.2:
Fredrik Fornwall (1):
Replace rindex(3) with strrchr(3)
Janusz Krzysztofik (2):
Fix gcc 10+ build errors
Heyu 2.10.3
Changelog against last stable release 2.10.2
This discussion was created from the release Heyu 2.10.3.
Beta Was this translation helpful? Give feedback.
All reactions