Hi,
I'm trying to upload my stock optimization finance app to shinyapps.io but it keeps crashing. I use the fPortfolio R package to run these optimizations however fPortfolio is dependent on Rsymphony and it keeps crashing my deployment. I've added the code below. Any help would be greatly appreciated!
library(rsconnect)
deployApp()
Preparing to deploy application...DONE
Uploading bundle for application: 71972...DONE
Deploying bundle: 324237 for application: 71972 ...
Waiting for task: 111386983
building: Parsing manifest
building: Building image: 318566
building: Installing system dependencies
building: Fetching packages
building: Building package: Rsymphony
################################ Begin Task Log ################################
[2015-12-03T22:19:27.568808815+0000] Execute script: packages/build/Rglpk.sh
- set -e
- apt-get -qq update W: GPG error: http://cran.rstudio.com precise/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
- apt-get -qq --force-yes install libglpk-dev debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libglpk0. (Reading database ... 84966 files and directories currently installed.) Unpacking libglpk0 (from .../libglpk0_4.45-1build1_amd64.deb) ... Selecting previously unselected package libglpk-dev. Unpacking libglpk-dev (from .../libglpk-dev_4.45-1build1_amd64.deb) ... Setting up libglpk0 (4.45-1build1) ... Setting up libglpk-dev (4.45-1build1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place [2015-12-03T22:20:01.529562966+0000] Installing R package: timeDate (3012.100)
- installing to library ‘/usr/local/lib/R/site-library’
- installing binary package ‘timeDate’ ...
- DONE (timeDate) [2015-12-03T22:20:01.874852455+0000] Building R package: Rsymphony (0.1-21) /mnt/packages/build /mnt
- installing to library ‘/usr/local/lib/R/site-library’
- installing source package ‘Rsymphony’ ... ** package ‘Rsymphony’ successfully unpacked and MD5 sums checked Cannot find SYMPHONY libraries and headers. See https://projects.coin-or.org/SYMPHONY. ERROR: configuration failed for package ‘Rsymphony’
- removing ‘/usr/local/lib/R/site-library/Rsymphony’ ################################# End Task Log ################################# Error: Unhandled Exception: Child Task 111386985 failed: Error building image: Error building Rsymphony (0.1-21). Build exited with non-zero status: 1
--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/54aa9a94-ad46-4fc4-bec4-d5f933a5727c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Preparing to deploy application...DONE
Uploading bundle for application: 275665...DONE
Deploying bundle: 1214834 for application: 275665 ...
Waiting for task: 508529354
building: Building image: 1220470
building: Installing system dependencies
error: Building package: allocator
################################ Begin Task Log ################################
[2018-02-09T07:00:49.001279532+0000] Execute script: packages/build/Rsymphony.sh
+ set -e
+ apt-get update -qq
W: Size of file /var/lib/apt/lists/us-east-
1.ec2.archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_binary-amd64_Packages.gz is not what the server reported 16003 16324
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_binary-amd64_Packages.gz is not what the server reported 16003 16324
+ apt-get install -y coinor-libsymphony-dev coinor-libcgl-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
coinor-libcgl1 coinor-libclp-dev coinor-libclp1 coinor-libcoinutils-dev
coinor-libcoinutils3 coinor-libosi-dev coinor-libosi1 coinor-libsymphony3
The following NEW packages will be installed:
coinor-libcgl-dev coinor-libcgl1 coinor-libclp-dev coinor-libclp1
coinor-libcoinutils-dev coinor-libcoinutils3 coinor-libosi-dev
coinor-libosi1 coinor-libsymphony-dev coinor-libsymphony3
0 upgraded, 10 newly installed, 0 to remove and 35 not upgraded.
Need to get 4886 kB of archives.
After this operation, 22.0 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libcoinutils3 amd64 2.9.10-1ubuntu2 [459 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libosi1 amd64 0.106.4-1ubuntu5 [277 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libclp1 amd64 1.15.5-1ubuntu3 [722 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libcgl1 amd64 0.58.4-2ubuntu2 [415 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libcoinutils-dev amd64 2.9.10-1ubuntu2 [767 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libosi-dev amd64 0.106.4-1ubuntu5 [329 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libclp-dev amd64 1.15.5-1ubuntu3 [870 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libcgl-dev amd64 0.58.4-2ubuntu2 [513 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libsymphony3 amd64 5.5.6-1ubuntu2 [256 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe coinor-libsymphony-dev amd64 5.5.6-1ubuntu2 [279 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 4886 kB in 0s (7813 kB/s)
Selecting previously unselected package coinor-libcoinutils3.
(Reading database ... 104991 files and directories currently installed.)
Preparing to unpack .../coinor-libcoinutils3_2.9.10-1ubuntu2_amd64.deb ...
Unpacking coinor-libcoinutils3 (2.9.10-1ubuntu2) ...
Selecting previously unselected package coinor-libosi1.
Preparing to unpack .../coinor-libosi1_0.106.4-1ubuntu5_amd64.deb ...
Unpacking coinor-libosi1 (0.106.4-1ubuntu5) ...
Selecting previously unselected package coinor-libclp1.
Preparing to unpack .../coinor-libclp1_1.15.5-1ubuntu3_amd64.deb ...
Unpacking coinor-libclp1 (1.15.5-1ubuntu3) ...
Selecting previously unselected package coinor-libcgl1.
Preparing to unpack .../coinor-libcgl1_0.58.4-2ubuntu2_amd64.deb ...
Unpacking coinor-libcgl1 (0.58.4-2ubuntu2) ...
Selecting previously unselected package coinor-libcoinutils-dev.
Preparing to unpack .../coinor-libcoinutils-dev_2.9.10-1ubuntu2_amd64.deb ...
Unpacking coinor-libcoinutils-dev (2.9.10-1ubuntu2) ...
Selecting previously unselected package coinor-libosi-dev.
Preparing to unpack .../coinor-libosi-dev_0.106.4-1ubuntu5_amd64.deb ...
Unpacking coinor-libosi-dev (0.106.4-1ubuntu5) ...
Selecting previously unselected package coinor-libclp-dev.
Preparing to unpack .../coinor-libclp-dev_1.15.5-1ubuntu3_amd64.deb ...
Unpacking coinor-libclp-dev (1.15.5-1ubuntu3) ...
Selecting previously unselected package coinor-libcgl-dev.
Preparing to unpack .../coinor-libcgl-dev_0.58.4-2ubuntu2_amd64.deb ...
Unpacking coinor-libcgl-dev (0.58.4-2ubuntu2) ...
Selecting previously unselected package coinor-libsymphony3.
Preparing to unpack .../coinor-libsymphony3_5.5.6-1ubuntu2_amd64.deb ...
Unpacking coinor-libsymphony3 (5.5.6-1ubuntu2) ...
Selecting previously unselected package coinor-libsymphony-dev.
Preparing to unpack .../coinor-libsymphony-dev_5.5.6-1ubuntu2_amd64.deb ...
Unpacking coinor-libsymphony-dev (5.5.6-1ubuntu2) ...
Setting up coinor-libcoinutils3 (2.9.10-1ubuntu2) ...
Setting up coinor-libosi1 (0.106.4-1ubuntu5) ...
Setting up coinor-libclp1 (1.15.5-1ubuntu3) ...
Setting up coinor-libcgl1 (0.58.4-2ubuntu2) ...
Setting up coinor-libcoinutils-dev (2.9.10-1ubuntu2) ...
Setting up coinor-libosi-dev (0.106.4-1ubuntu5) ...
Setting up coinor-libclp-dev (1.15.5-1ubuntu3) ...
Setting up coinor-libcgl-dev (0.58.4-2ubuntu2) ...
Setting up coinor-libsymphony3 (5.5.6-1ubuntu2) ...
Setting up coinor-libsymphony-dev (5.5.6-1ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
[2018-02-09T07:01:00.726046270+0000] Execute script: packages/build/RODBC.sh
+ set -e
+ debconf-set-selections
+ dpkg-reconfigure -f noninteractive libmyodbc tdsodbc
MySQL has been deleted (if it existed at all) because its usage count became zero
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /etc
FreeTDS has been deleted (if it existed at all) because its usage count became zero
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /etc
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 508529355 failed: Error building image:
Error fetching allocator (0.0.1) source. Error accessing GitHub repository
XXXX/allocator. HTTP 404: Not Found
In addition: Warning messages:
1: invalid uid value replaced by that for user 'nobody'
2: invalid gid value replaced by that for user 'nobody'
Execution haltedError fetching allocator (0.0.1) source. Error accessing GitHub repository
XXXX/allocator. HTTP 404: Not FoundHave you enabled Private Repository Access on y our shinyapps.io Account -> Profile -> Authentication page?
Do you think cloning allocator (private library) to my profile on github would resolve the fetching issue, given the private access on shinyapps.io is enabled using my github account?