Code Monkey home page Code Monkey logo

Comments (7)

colearendt avatar colearendt commented on August 10, 2024

Thanks so much for reporting this @adRn-s !! What an annoying error. I can definitely see how this would concern users. I will pass this along upstream and see what we can do to make this a bit better 😄

from rstudio-docker-products.

gaborcsardi avatar gaborcsardi commented on August 10, 2024

@adRn-s To see where this is coming from can you please run this in a new R session, and show us the output?

options(warn = 2)
library(tidyverse)
# error happens here
traceback()

Thanks!

from rstudio-docker-products.

adRn-s avatar adRn-s commented on August 10, 2024

Sure. This is what I got,

> options(warn = 2)

> library(tidyverse)
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Error: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: NULL
  error: package or namespace load failed for ‘lubridate’:
 .onLoad failed in loadNamespace() for 'lubridate', details:
  call: system("timedatectl", intern = TRUE)
  error: (converted from warning) running command 'timedatectl' had status 1

> library(lubridate)
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Error: package or namespace load failed for ‘lubridate’:
 .onLoad failed in loadNamespace() for 'lubridate', details:
  call: system("timedatectl", intern = TRUE)
  error: (converted from warning) running command 'timedatectl' had status 1

> Sys.timezone()
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Error in system("timedatectl", intern = TRUE) : 
  (converted from warning) running command 'timedatectl' had status 1

:) I will next check customizing the Renviron.site with TZ env-var. Hopefully that solves the issue (following, tidyverse/lubridate#957 (comment) ). Before opening this issue here, I did try to set TZ env-var because I read it somewhere else, but it failed because I set it on our Dockerfile, and it wasn't really inherited into the rsession processes of the users on workbench (I tested with env in the built-in Terminal of the IDE). Anyway, let me come back to you soon.

Btw, I'm running the repon from commit b11f202 (november 2023).

from rstudio-docker-products.

gaborcsardi avatar gaborcsardi commented on August 10, 2024

Can you please run the last line as well, after the error? I.e.

traceback()

That's show us where the error is coming from. It is almost surely from base R, but still worth to include proof here.

from rstudio-docker-products.

adRn-s avatar adRn-s commented on August 10, 2024

Interestingly, Sys.timezone only fails after I loaded lubridate, and according to the traceback it's calling timedatectl. Else, without having lubridate, it returns UTC. Anyway, I will close the issue now. The issue is fixed after setting TZ at Renviron. Thanks!

from rstudio-docker-products.

colearendt avatar colearendt commented on August 10, 2024

Thanks for reporting this @adRn-s ! Setting the TZ variable in #725 should hopefully mean that this error message will not be shown to hundreds of folks in the future 😄 Appreciate your help making things better every day 🎉

from rstudio-docker-products.

adRn-s avatar adRn-s commented on August 10, 2024

Before opening this issue here, I did try to set TZ env-var because I read it somewhere else, but it failed because I set it on our Dockerfile, and it wasn't really inherited into the rsession processes of the users on workbench (I tested with env in the built-in Terminal of the IDE).

You're welcome. Btw, keep in mind that the fix on your PR won't work really. There's a reason why I decided on using Renviron.site... it's the only way I found to pass env-vars down to the users' R process/ console/ session.

from rstudio-docker-products.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.