I try to deploy my Shiny App, but I receive the error below. I feel it's related to the 'viridisLite' package and have tried to install a previous version of that package. But without results. I updated recently to R 4.0.0. My app works fine when run locally. R session info is provided below the error code.
EDIT: I've tried uploading a very basic app, like the one provided here: https://shiny.rstudio.com/articles/build.html. This also didn't work, but resulted in an error about the 'fastmap'-package instead of 'viridisLite'.
Preparing to deploy application...DONE
Uploading bundle for application: 2228858...DONE
Deploying bundle: 3093968 for application: 2228858 ...
Waiting for task: 724960486
building: Processing bundle: 3093968
building: Parsing manifest
building: Building image: 3451936
building: Installing system dependencies
error: Building package: viridisLite
################################ Begin Task Log ################################
[2020-05-02T15:53:35.120739984+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 (0 B/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-02T15:53:39.964224777+0000] Building R package: viridisLite (0.3.0)
/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 724960487 failed: Error building image: Error building viridisLite (0.3.0). Build exited with non-zero status: 127
Execution halted
Interested to see what the cause is with this because I am also seeing a similar error:
error: Building package: viridisLite
################################ Begin Task Log ################################
[2020-05-03T04:09:48.379910898+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 (0 B/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:09:53.043807229+0000] Building R package: viridisLite (0.3.0)
/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 725177982 failed: Error building image: Error building viridisLite (0.3.0). Build exited with non-zero status: 127
Execution halted
Same problem here. Recently updated to R 4.0. It works locally. And it used to work on shinyapps before the update. Not related to ViridisLite I think but to the missing libpcre2-8.so.0 library.
My error message is:
/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 725264489 failed: Error building image: Error building rlang (0.4.5). Build exited with non-zero status: 127
I am also seeing similar problem after updating R to 4.0.0 .
My error message is:
`building: Building package: withr
################################ Begin Task Log ################################
[2020-05-03T11:25:35.271898486+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 (0 B/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-03T11:25:39.956404520+0000] Building R package: withr (2.2.0)
/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 725292505 failed: Error building image: Error building withr (2.2.0). Build exited with non-zero status: 127`
I also received the same error after updating to R 4.0 on a Windows 10 machine.
My error messgae is:
building: Building package: plogr
################################ Begin Task Log ################################
[2020-05-03T11:50:55.184718435+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 (0 B/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-03T11:51:34.554375814+0000] Building R package: plogr (0.2.0)
/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 725300244 failed: Error building image: Error building plogr (0.2.0). Build exited with non-zero status: 127
Execution halted