Error deploying shiny app utilizing hydromad

27 views
Skip to first unread message

Matt

unread,
Apr 24, 2020, 2:53:26 AM4/24/20
to hydromad users
Preparing to deploy application...DONE
Uploading bundle for application: 2120925...DONE
Deploying bundle: 3058356 for application: 2120925 ...
Waiting for task: 720810692
  building: Parsing manifest
  building: Building image: 3408182
  building: Installing system dependencies
  building: Fetching packages
  error: Building package: hydromad
################################ Begin Task Log ################################ 
[2020-04-24T06:51:09.225825780+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 114 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 ... 119718 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) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 720810693 failed: Error building image: Error fetching hydromad (0.9-26) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: hydromad (0.9-26)
In addition: Warning message:
In FUN(X[[i]], ...) :
  Package 'hydromad 0.9-26' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted




Can anyone help me resolve this error . How can I deploy this app to shiny.apps.io with hydromad?

Alex

unread,
Apr 24, 2020, 3:04:11 AM4/24/20
to hydromad users
It isn't clear, but the error suggests you are trying to install hydromad from CRAN (where it is not available). Make sure it is trying to install hydromad from the correct repo:

install.packages("hydromad", repos="http://hydromad.catchment.org")

Matt

unread,
Apr 24, 2020, 3:22:57 AM4/24/20
to hydromad users
I did add the hydromad repos in .r profile.Still the error is persisting

Joseph Guillaume

unread,
Apr 24, 2020, 3:26:42 AM4/24/20
to hydromad users
Hi Matt,

Could you the share the file you used to do that?
Is it possible that dependencies are not being resolved because they are in a different repository?

Cheers,

Joseph


--
You received this message because you are subscribed to the Google Groups "hydromad users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydromad-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hydromad-users/6977f274-1cbc-4c40-bf6c-f2242e4f7b4b%40googlegroups.com.

Matt

unread,
Apr 24, 2020, 3:35:11 AM4/24/20
to hydromad users

Here is the .Rprofile file
To unsubscribe from this group and stop receiving emails from it, send an email to hydroma...@googlegroups.com.
.Rprofile

Syed Abdul Mateen

unread,
Apr 24, 2020, 7:53:10 AM4/24/20
to hydroma...@googlegroups.com
Maybe the case but even then most dependencies are already on cran

Matt

unread,
Apr 25, 2020, 2:05:07 AM4/25/20
to hydromad users
By installing the package from Github the problem resolved. Thanks for the help. The thread can be closed


On Friday, April 24, 2020 at 12:23:26 PM UTC+5:30, Matt wrote:
Reply all
Reply to author
Forward
0 new messages