rserver-monitor ERROR system error 13 (Permission denied)

Dera RStudio Community

After updating RStudio Server Pro to version 1.3.959-1 on RHEL 7 it works as expected on a browser.
However, sudo rstudio-server status returns a bunch of errors:

Jul 03 14:33:56 SERVER_NAME_HERE rserver-monitor[93840]: ERROR system error 13 (Permission denied) [description: Failed to get user details., user-value: 692030694]; OCCURRED AT rstudio::core::Error rstudio::core::system::User::Impl::populateUser(rstudio::core::system::User::Impl::GetPasswdFunc<T>&, T) [with T = unsigned int rstudio::core::system:

The logs in /var/lib/rstudio-server/monitor/log/rstudio-server.log are crippled by many instances of the following error:

03 Jul 2020 12:39:57 [rserver-monitor] ERROR system error 13 (Permission denied) [description: Failed to get user details., user-value: 692033105]; OCCURRED AT rstudio::core::Error rstudio::core::system::User::Impl::populateUser(rstudio::core::system::User::Impl::GetPasswdFunc<T>&, T) [with T = unsigned int rstudio::core::system::User::Impl::GetPasswdFunc<T> = std::function<int(unsigned int, passwd*, char*, long unsigned int, passwd**)>] src/cpp/shared_core/system/User.cpp:77; LOGGED FROM: rstudio::monitor::metrics::ProcessesByUser rstudio::monitor::metrics::getProcessesByUser(const string&) src/cpp/monitor/metrics/ProcessInfo.cpp:381

Is it becasue the rstudio-monitor is trying to write into a folder for which the user has no writing rights? is it not run by root? I can see the following is being run by the service and it has the same process ID as the one showing the error:

/usr/lib/rstudio-server/bin/rserver-monitor --monitor-domain-socket /var/run/rstudio-server/rstudio-rserver/rserver-monitor.socket --monitor-data-path /var/lib/rstudio-server/monitor --monitor-rstudio-session-metrics 1 --monitor-stderr-enabled 0 --monitor-rrd-enabled 1 --monitor-graphite-enabled 0 --monitor-interval-seconds 60 --audit-data-path /var/lib/rstudio-server/audit --audit-r-console none --audit-r-console-user-limit-months 0 --audit-r-consol...

Best regards,
Alessandro Pirrotta

Data Science Engineer

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.