r-在macOS上设置rstudio服务器



我想在iMac上设置rstudio服务器,支持多用户和远程登录。我遵循了INSTALL教程中的步骤:我构建了源代码,设置了配置文件和launchd守护进程。起初,它工作得很好,但过了一段时间,我在绘图时收到了以下警告/错误:

2022-06-09 08:02:29.438 rsession[3050:139329] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2022-06-09 08:02:29.438 rsession[3050:139329] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2022-06-09 08:02:29.438 rsession[3050:139329] XType: unable to make a connection to the font daemon!
2022-06-09 08:02:29.438 rsession[3050:139329] XType: XTFontStaticRegistry is enabled as fontd is not available.

然后,除非我重新启动R并重新运行我的代码,否则我无法再进行绘图。你知道问题出在哪里吗?在rstudio服务器github上打开一个问题时,我无法得到任何帮助,因为MacOS不受官方支持。

我也在考虑通过docker运行rstudio服务器,但我找不到一个好的方法来将用户名称空间从macOS映射到容器。

如有任何帮助或建议,我们将不胜感激!

EDIT:我似乎能够通过使用启动fontd守护进程来解决这个问题

sudo launchctl load -w /System/Library/LaunchAgents/com.apple.fontd.useragent.plist

这似乎是MacOS字体守护进程的问题,而不是RStudio本身的问题。

有人在PhantomJS上报告了类似的问题。重启为他们解决了这个问题。

这个答案报告了不同版本的相同错误,并且他们能够通过安装正确的";苹果全球开发者关系认证机构";在钥匙链中:

我的那份有效期为2023年2月。我删除了那个,然后来到这里,下载了一个名为";全球开发者关系-G3(到期时间:2030年2月20日00:00:00 UTC(";,然后重试构建并成功。

最新更新