You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
we are using whitebox-tools through the R-client from within a shiny-application.
Installation on our shiny-server was performed as documented here by
running install.packages("whitebox") as root (package directory is "/usr/local/lib/R/site-library")
running whitebox::install_whitebox() likewise as root which installs the WBT executable into the folder of the R-package
So far it was possible to use the app as a non-root user.
Today when calling wbt_slope (or any other function) the app crashed with the following error message in the log: thread 'main' panicked at 'Error creating output settings.json file.: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', whitebox-common/src/configs/mod.rs:57:46 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
To make sure that this is not related to the application itself I executed the code below on the same server in an R session as root user and in another session as non-root user (typically shiny users do not have root privileges) outside the application.
library(whitebox)
dem <- system.file("ex", "elev.tif", package="terra")
wbt_slope(dem, "/home/shiny/slope.tif")
In root mode the code calculates slope as expected and produces the output file.
In user mode I get the same error as when running the application.
I do not know if this is related to a recent update (the app was tested and running stable so far) and I am also not sure if it is related to the R-client or the exe.
Thankful for any hints on this.
Best,
Hendrik
The text was updated successfully, but these errors were encountered:
Ok, I just came across the NEWS of the R-client.
For version 2.1.1 it states: Updated how --compress_rasters parameter is passed via command line. Now the flag is added to all commands regardless of whether the value is TRUE or FALSE. This allows update of settings.json accordingly when --compress_rasters=FALSE. RE: https://github.com/jblindsay/whitebox-tools/issues/233#issuecomment-1065955783
This causes the issue. I downgraded the R-package to version 2.1.0 which resolves the issue. Should the issue stay here or be moved to the R client?
Hi,
we are using whitebox-tools through the R-client from within a shiny-application.
Installation on our shiny-server was performed as documented here by
install.packages("whitebox")
as root (package directory is"/usr/local/lib/R/site-library"
)whitebox::install_whitebox()
likewise as root which installs the WBT executable into the folder of the R-packageSo far it was possible to use the app as a non-root user.
Today when calling
wbt_slope
(or any other function) the app crashed with the following error message in the log:thread 'main' panicked at 'Error creating output settings.json file.: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', whitebox-common/src/configs/mod.rs:57:46 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Error running WhiteboxTools (slope) whitebox.exe_path: '/usr/local/lib/R/site-library/whitebox/WBT/whitebox_tools'; File exists? TRUE Arguments: --run=slope --dem='' --output='/home/shiny/slope.tif' --units=degrees --compress_rasters=FALSE -v --max_procs=-1
To make sure that this is not related to the application itself I executed the code below on the same server in an R session as root user and in another session as non-root user (typically shiny users do not have root privileges) outside the application.
In root mode the code calculates slope as expected and produces the output file.
In user mode I get the same error as when running the application.
I do not know if this is related to a recent update (the app was tested and running stable so far) and I am also not sure if it is related to the R-client or the exe.
Thankful for any hints on this.
Best,
Hendrik
The text was updated successfully, but these errors were encountered: