I have just purchased a RevPi Connect 5 and, following the standard RevPi procedure, I've enabled Node-RED, updated all the software and configured the RevPi DO in order to enable the outputs and inputs I need for my application. Initially I thought I should enable also the Node-RED user password access and did so: nevertheless, later I found that, for the application I was developing, this is not important thus I disabled it from the Cockpit Console and then proceed with the development.
Then the problem.
I want to drive a group of 24V actuators (maybe LED lamps or relays) and correspondingly I should play a video on a monitor connected to the RevPi Connect 5 HDMI output. The part of code driving the actuators works perfectly, while the video player does not.
It is not a problem of the RevPi itself, nor a problem of the code: indeed if I login to the pi console (ssh pi@RevPixxxxxx) and launch the following command (to play one of the videos)
Code: Select all
mpv --fs /home/pi/Videos/video1.mp4
where the "Video Player" node is a "exec" node whose the embedded command is exactly the above one and the injected payloads are "home/pi/Videos/video1.mp4", "home/pi/Videos/video2.mp4", etc. and everything works perfectly.
Nevertheless, running it on the RevPi Node-RED gives me the following error message:
Code: Select all
[file] Cannot open file '/home/pi/Videos/video1.mp4': Permission denied
Failed to open /home/pi/Videos/video1.mp4.
Exiting... (Errors when loading file)Code: Select all
1/10/2025, 09:55:33node: video out
msg.payload : string[1279]
string[1279]
(+) Video --vid=1 (*) (h264 640x360 30.000fps)
(+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[vo/gpu] Can't open TTY for VT control: No such device or address
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/opengl] No primary DRM device could be picked!
[vo/gpu/opengl] Failed to find a usable DRM primary node!
[vo/gpu/opengl] Failed to create KMS.
[vo/gpu-next] Can't open TTY for VT control: No such device or address
[vo/gpu-next/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu-next/opengl] No primary DRM device could be picked!
[vo/gpu-next/opengl] Failed to find a usable DRM primary node!
[vo/gpu-next/opengl] Failed to create KMS.
[vo/sdl] Using opengl
[vo/sdl] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the sdl VO.
[ao/pipewire] Could not connect to context '(null)': Host is down
[ao/alsa] Playback open error: No such file or directory
[ao/jack] canno...Code: Select all
1/10/2025, 09:55:33node: video err
msg.payload : string[7164]
string[7164]
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Opening /dev/dri/renderD128 failed: Permission denied
TU: error: ../src/freedreno/vulkan/tu_knl.cc:315: failed to open device /dev/dri/renderD128 (VK_ERROR_INCOMPATIBLE_DRIVER)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Opening /dev/dri/renderD128 failed: Permission denied
TU: error: ../src/freedreno/vulkan/tu_knl.cc:315: failed to open device /dev/dri/renderD128 (VK_ERROR_INCOMPATIBLE_DRIVER)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
libEGL warning: failed to open /dev/dri/card0: Permission denied
Failed to create random directory /tmp/pulse-PKd...