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
Currently, the SageMaker plugin SDK cannot properly start without a code patch to the SDK. The following is the error they get:
2022-06-28T16:29:02.737432Z [rstudio-sagemaker-launcher] INFO Received signal: 2
2022-06-28T16:29:02.737790Z [rstudio-sagemaker-launcher] INFO Stopping plugin...
2022-06-28T16:29:56.703204Z [rstudio-sagemaker-launcher] ERROR SystemError error 1 (Operation not permitted) [subcategory: system]; OCCURRED AT temporarilyDropPrivileges /local/home/jedambr/RStudioUpdate2022/src/Rstudio-launcher-plugin-sdk/third-party-src/sdk/src/system/PosixSystem.cpp:262
2022-06-28T16:29:56.703568Z [rstudio-sagemaker-launcher] ERROR Could not lower privilege to server user: sagemaker-user.
Possible causes:
Early during startup, we check the scratch path and drop privileges from root -> server user. This also was how things worked before the new SDK release:
CHECK_ERROR(error, "Could not lower privilege to server user: " + in_serverUser.getUsername() + ".")
In the new version, in addition, we need to setup the file log destination with root privileges to ensure we can initially create the file under /var/log. We restore root
CHECK_ERROR(error, "Could not lower privilege to server user: " + serverUser.getUsername() + ".")
}
From the SageMaker logs, it looks like maybe the call to restoreRoot is not allowing them to again call temporarilyDropPrivileges again. In the previous version, there was one restoreRoot() -> temporarilyDropPrivileges() call. In the new version, there are two.
SageMaker is working around the issue by commenting out the following code in AbstractMain.cpp:
So far I haven't reproduced this locally. I've tried a few configurations of user ownership to see if it would arise, but everything is working well. I did notice that the binary lives in a different user directory than the server user
ERROR SystemError error 1 (Operation not permitted) [subcategory: system]; OCCURRED AT temporarilyDropPrivileges /local/home/jedambr/RStudioUpdate2022/src/Rstudio-launcher-plugin-sdk/third-party-src/sdk/src/system/PosixSystem.cpp:262
Where sagemaker is the server user.
If that directory has group permissions for the server-user all looks well.
I can still go ahead and remove the second restoreRoot call. But to really see why this happening, we should see the user configurations and permissions of the sagemaker environment.
Currently, the SageMaker plugin SDK cannot properly start without a code patch to the SDK. The following is the error they get:
Possible causes:
rstudio-launcher-plugin-sdk/sdk/src/AbstractMain.cpp
Lines 92 to 94 in b0b55f4
rstudio-launcher-plugin-sdk/sdk/src/AbstractMain.cpp
Lines 221 to 226 in b0b55f4
rstudio-launcher-plugin-sdk/sdk/src/AbstractMain.cpp
Lines 244 to 250 in b0b55f4
From the SageMaker logs, it looks like maybe the call to
restoreRoot
is not allowing them to again calltemporarilyDropPrivileges
again. In the previous version, there was onerestoreRoot() -> temporarilyDropPrivileges()
call. In the new version, there are two.SageMaker is working around the issue by commenting out the following code in
AbstractMain.cpp
:rstudio-launcher-plugin-sdk/sdk/src/AbstractMain.cpp
Lines 244 to 250 in 6c676dd
The text was updated successfully, but these errors were encountered: