Shinyapps.io can't deploy apps built with R 4.0.0

I'm trying to make a new deploy of an App I started last night (before updating to R 4.0.0 this morning). I am now getting the following message in the RStudio Deploy tab

Seems to me like shinyapps.io has no images of R 4.0.0. Any idea when it's going to be available?

7 Likes

I had the same error just now as well; hopefully they'll resolve this soon!

1 Like

The major version number change has exposed some places where we had made assumptions. We are working through those issues and aim to be able support R 4.0.0 on shinyapps.io later this week.

12 Likes

Thanks Josh! Appreciate the help and am looking forward to it!

Hi Rstudio.

Any update on this one?

3 Likes

Hi @josh, could we have an update on this? We need to update a few operational dashboards so this is a top priority for us! Do you have an ETA on this?

2 Likes

@emilyv I don't know when RStudio is going to have updates on this. I "solved" my deployment issue by just going back to R 3.6. Not ideal, but it gets the job done.

2 Likes

@daczarne true true. Just did that instead and it worked! thanks!

Hi Rstudio,

I am trying to deploy my Shiny app, but I get the following error. I updated recently to R 4.0.0 and my app works fine when run locally.

Deploying bundle: 3095672 for application: 2183251 ...
Waiting for task: 725184423
  building: Parsing manifest
  building: Installing system dependencies
  error: Building package: viridisLite
################################ Begin Task Log ################################ 
[2020-05-03T04:37:28.683578834+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (6424 kB/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119702 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
[2020-05-03T04:37:32.242060156+0000] Execute script: packages/build/odbc.sh
+ set -e
+ curl -O https://drivers.rstudio.org/7C152C12/odbc-install.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17169  100 17169    0     0  33614      0 --:--:-- --:--:-- --:--:-- 33598
+ chmod +x odbc-install.sh
+ mkdir -p /opt/rstudio-drivers
+ ./odbc-install.sh --install /opt/rstudio-drivers --eula
Installing amazonredshift
--2020-05-03 04:37:32--  https://s3-us-west-2.amazonaws.com/rstudio-odbc/7C152C12/1.4/amazonredshift-linux-x64.tar.gz
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.228.208
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.228.208|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19873067 (19M) [application/gzip]
Saving to: 'amazonredshift-linux-x64.tar.gz'

     0K .......... .......... .......... .......... ..........  0%  338K 57s
      ............. .......... .......... ........... .......... ...............
 19400K .......                                               100%  319M=1.3s

2020-05-03 04:37:34 (14.2 MB/s) - 'amazonredshift-linux-x64.tar.gz' saved [19873067/19873067]

Installing hive
--2020-05-03 04:37:34--  https://s3-us-west-2.amazonaws.com/rstudio-odbc/7C152C12/1.4/hive-linux-x64.tar.gz
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.228.208
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.228.208|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20443273 (19M) [application/gzip]
Saving to: 'hive-linux-x64.tar.gz'

     0K .......... .......... .......... .......... ..........  0%  352K 57s
      .............. .......... .......... ........... .......... ...............
     19950K .......... ....                                       100%  534M=1.3s

2020-05-03 04:37:36 (15.2 MB/s) - 'hive-linux-x64.tar.gz' saved [20443273/20443273]

Installing impala
--2020-05-03 04:37:36--  https://s3-us-west-2.amazonaws.com/rstudio-odbc/7C152C12/1.4/impala-linux-x64.tar.gz
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.228.208
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.228.208|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19108125 (18M) [application/gzip]
Saving to: 'impala-linux-x64.tar.gz'
     0K .......... .......... .......... .......... ..........  0%  312K 60s
     .............. .......... .......... ........... .......... ...............
  1050K .......... .......... .......... .......... ..........  5%  233M 8s
  1100K .......... .......... .......... ........
################################# End Task Log #################### ############# 
Error: Unhandled Exception: Child Task 725184434 failed: Error building image: Error building viridisLite (0.3.0). Build exited with non-zero status: 127
Execution halted

I also seem to be having this problem--- R app that works locally failing to deploy after installing R 4.0. Mine fails trying to build the rlang package:

[2020-05-05T00:23:59.767913838+0000] Building R package: rlang (0.4.6)
/mnt/packages/build /mnt
/opt/R/4.0.0/lib/R/bin/exec/R: error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 726112095 failed: Error building image: Error building rlang (0.4.6). Build exited with non-zero status: 127
Execution halted

On windows 10

@josh Could you please update us? The lack of communication is worrying.

Would love to get an update on this... its been a while since R4 was released. Give us some guidance - should we uninstall 4 and go back to 3.6 or is a solution close?

I know everyone is excited to be able to use R 4.0.0 on shinyapps.io, and I apologize for the delay.
Late last week we fixed the assumptions that were in the way, we are now updating our base images with additional dependencies required by R 4.0.0. Once we have built and tested, we will release it to production. I expect this to occur in the next day or two, barring unforeseen snags.

2 Likes

Support for R 4.0.0 is now available.
The package cache is not populated, so initial deploys may be slower than usual while packages are compiled and placed into the cache.

8 Likes

amazing!!! thanks for the update josh!! :grinning:

Hi, thanks for adding support to R 4.0 .
However, I am still having issues. It appears it's the rJava package

collect2: error: ld returned 1 exit status
Makefile.all:35: recipe for target 'libjri.so' failed
make[2]: *** [libjri.so] Error 1
make[2]: Leaving directory '/tmp/Rtmpuywchq/R.INSTALL481eef4c5e/rJava/jri/src'
Makefile.all:19: recipe for target 'src/JRI.jar' failed
make[1]: *** [src/JRI.jar] Error 2
make[1]: Leaving directory '/tmp/Rtmpuywchq/R.INSTALL481eef4c5e/rJava/jri'
Makevars:14: recipe for target 'jri' failed
make: *** [jri] Error 2
make: Leaving directory '/tmp/Rtmpuywchq/R.INSTALL481eef4c5e/rJava/src'
make: Entering directory '/tmp/Rtmpuywchq/R.INSTALL481eef4c5e/rJava/src'
make: Leaving directory '/tmp/Rtmpuywchq/R.INSTALL481eef4c5e/rJava/src'
ERROR: compilation failed for package ‘rJava’
 removing ‘/opt/R/4.0.0/lib/R/library/rJava’
1 Like

I also have this issue @josh. rJava is broken when deploying with R 4.0.0. It's the same error response on mac, windows and also tried with rstudio.cloud.

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

Hi @mrfixg,

We believe the issue with rJava + R 4.0.0 should now be resolved. Please try deploying your application. Since this topic is closed, if you continue to have trouble please open a new community post for further discussion.

Thanks!
Steve