[3.5.0-rc.1] plugin will not install
-
I rebuilt my plugin (DuetLapse3) for 3.5.0-rc.1. I am getting this error:
That file does not exist
The relevent error in the journal appears to be:
Sep 04 21:46:17 srsender DuetWebServer[725]: DuetWebServer.Controllers.MachineController[0] [InstallPlugin] Failed to upload ZIP file to /tmp/tmpGXAufZ.tmp DuetAPI.InternalServerException: Access to the path '/opt/dsf/sd/www/css/DuetLapse3.6e428bb0.css' is denied. at DuetAPIClient.BaseConnection.PerformCommand(BaseCommand command, CancellationToken cancellationToken) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetAPIClient/BaseConnection.cs:line 156 at DuetWebServer.Controllers.MachineController.InstallPlugin(ISessionStorage sessionStorage) in /home/runner/work/DuetSoftwareFramework/DuetSoftwareFramework/src/DuetWebServer/Controllers/MachineController.cs:line 885
The only change I made since 3.5.0-beta.4 were to the dependencies specifid in plugin.json (now set to 3.5.0-rc.1).
I'm installing on a freshly built Debian Bullseye.
The only thing that seems a little wierd is that the permissions on /opt/dsf are as follows:
pi@srsender:/opt/dsf $ ls -l total 52 drwxr-xr-x 2 1001 spi 36864 Sep 4 14:02 bin drwxrwxr-x 2 dsf dsf 4096 Sep 4 14:03 conf drwxr-xr-x 6 1001 spi 4096 Sep 4 14:02 dwc drwxr-xr-x 3 dsf dsf 4096 Sep 4 21:27 plugins drwxrwxr-x 8 dsf dsf 4096 Sep 4 14:02 sd
The contets of /opt/dsf/sd/www/css are:
pi@srsender:/opt/dsf/sd/www/css $ ls -l total 908 -rw-rw-r-- 1 1001 spi 780107 Sep 1 01:27 app.fe2db741.css -rw-rw-r-- 1 1001 spi 14601 Sep 1 01:27 GCodeViewer.5cfc7b82.css -rw-rw-r-- 1 1001 spi 498 Sep 1 01:27 HeightMap.a997084c.css -rw-rw-r-- 1 1001 spi 449 Sep 1 01:27 InputShaping.3cce14a7.css -rw-rw-r-- 1 1001 spi 109290 Sep 1 01:27 monaco-editor.455cd23e.css -rw-rw-r-- 1 1001 spi 6762 Sep 1 01:27 ObjectModelBrowser.562feac3.css -rw-rw-r-- 1 1001 spi 3625 Sep 1 01:27 OnScreenKeyboard.918d8fee.css
-
Is this better posted in the plugins section ?
-
@stuartofmt I don't know why those www files are owned by
spi
, they should be owned bydsf
. The plugin service runs asdsf
, too. Also, user1001
doesn't seem legit. -
@chrishamm said in [3.5.0-rc.1] plugin will not install:
@stuartofmt I don't know why those www files are owned by
spi
, they should be owned bydsf
. The plugin service runs asdsf
, too. Also, user1001
doesn't seem legit.Setting everything under /opt/dsf with
chown -R dsf:dsf *
fixed it but ...I have seen this with another recent install where the owner was
1001:colord
. So it seems a bit random.This was on a fresh install of bullsey and using the following script to install. Maybe something in the underlying duet3d install script ? P.S. I just noticed I had apt-get in the last few instructions but doubt that is the culprit.
#! /bin/bash # Instrucions from here : # https://docs.duet3d.com/User_manual/Machine_configuration/DSF_Other # Enable SPI sudo raspi-config nonint do_spi 0 sudo ls -l /dev/spidev* echo "Do you wish to install the beta version? (select number)" select yn in "Yes" "No"; do case $yn in Yes ) break;; No ) exit;; esac done # Update sudo apt update sudo apt dist-upgrade # remove stable feed sudo rm -f /etc/apt/sources.list.d/duet3d.list # download unstable packages wget -q https://pkg.duet3d.com/duet3d.gpg wget -q https://pkg.duet3d.com/duet3d-unstable.list sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/ sudo mv duet3d-unstable.list /etc/apt/sources.list.d/duet3d-unstable.list sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list # install and update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install duetsoftwareframework