Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied: '/sys/class/rtc/rtc0/wakealarm' #19

Open
hewfish opened this issue Mar 15, 2022 · 9 comments
Open

Permission denied: '/sys/class/rtc/rtc0/wakealarm' #19

hewfish opened this issue Mar 15, 2022 · 9 comments

Comments

@hewfish
Copy link

hewfish commented Mar 15, 2022

I'm seeing a repeating error in the log PiKVM web log that seems linked to the RTC module. I'm running the latest v3 hat image of PiKVM

PermissionError: [Errno 13] Permission denied: '/sys/class/rtc/rtc0/wakealarm'

Full error log:

[2022-03-16 00:25:07 kvmd-watchdog.service] --- kvmd.apps.watchdog INFO --- Running watchdog loop on RTC0 ...
[2022-03-16 00:25:07 kvmd-watchdog.service] --- Traceback (most recent call last):
[2022-03-16 00:25:07 kvmd-watchdog.service] --- File "/usr/bin/kvmd-watchdog", line 9, in
[2022-03-16 00:25:07 kvmd-watchdog.service] --- main()
[2022-03-16 00:25:07 kvmd-watchdog.service] --- File "/usr/lib/python3.10/site-packages/kvmd/apps/watchdog/init.py", line 119, in main
[2022-03-16 00:25:07 kvmd-watchdog.service] --- options.cmd(config.watchdog)
[2022-03-16 00:25:07 kvmd-watchdog.service] --- File "/usr/lib/python3.10/site-packages/kvmd/apps/watchdog/init.py", line 80, in _cmd_run
[2022-03-16 00:25:07 kvmd-watchdog.service] --- _reset_alarm(config.rtc, config.timeout)
[2022-03-16 00:25:07 kvmd-watchdog.service] --- File "/usr/lib/python3.10/site-packages/kvmd/apps/watchdog/init.py", line 65, in _reset_alarm
[2022-03-16 00:25:07 kvmd-watchdog.service] --- _write_int(rtc, "wakealarm", wake)
[2022-03-16 00:25:07 kvmd-watchdog.service] --- File "/usr/lib/python3.10/site-packages/kvmd/apps/watchdog/init.py", line 55, in _write_int
[2022-03-16 00:25:07 kvmd-watchdog.service] --- with open(_join_rtc(rtc, key), "w") as value_file:
[2022-03-16 00:25:07 kvmd-watchdog.service] --- PermissionError: [Errno 13] Permission denied: '/sys/class/rtc/rtc0/wakealarm'

@hzzfly
Copy link
Collaborator

hzzfly commented Mar 16, 2022

@hewfish
Copy link
Author

hewfish commented Mar 16, 2022 via email

@hewfish
Copy link
Author

hewfish commented Mar 21, 2022

As per my previous comment:

[root@pikvm boot]# cat config.txt 
# See /boot/overlays/README for all available options
initramfs initramfs-linux.img followkernel

hdmi_force_hotplug=1
gpu_mem=128
enable_uart=1
dtoverlay=tc358743
dtoverlay=disable-bt
dtoverlay=dwc2,dr_mode=peripheral
#dtparam=act_led_gpio=13

# HDMI audio capture
dtoverlay=tc358743-audio

# SPI (AUM)
dtoverlay=spi0-1cs

# I2C (display)
dtparam=i2c_arm=on

# Clock
#dtoverlay=i2c-rtc,pcf8563
dtoverlay=i2c-rtc,ds1307
[kvmd-webterm@pikvm rtc0]$ ls
device  subsystem  dev      max_user_freq  since_epoch  uevent
power   date       hctosys  name           time
[kvmd-webterm@pikvm rtc0]$ pwd
/sys/class/rtc/rtc0
[kvmd-webterm@pikvm rtc0]$ 

There is clearly no wakealarm under that tree. Any ideas?

@nmaster2042
Copy link

Same issue here.

How to solve this ?

@Martin-HiPi
Copy link

That's what happens when your software is meant for PiKVM v3 but used on BliKVM...

The PiKVM v3 team #wontfix since it's not their problem!

@DerTFL
Copy link

DerTFL commented Apr 17, 2022

You can completely disable kvmd-watchdog by

rw
systemctl disable --now kvmd-watchdog
ro

@hewfish
Copy link
Author

hewfish commented Apr 18, 2022 via email

@nmaster2042
Copy link

nmaster2042 commented Apr 18, 2022

I think it only removes the ability to power on the pi at a defined hour.
To be checked and confirmed.

@hewfish
Copy link
Author

hewfish commented Apr 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants