# dsBase can not be installed on opal server

**URL:** <https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281>\
**Category:** Analyst Support\
**Created:** [20 October 2020 16:37 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281 "2020-10-20T16:37:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [20 October 2020 16:37 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/1 "2020-10-20T16:37:01Z")

</div>

Dear all,

One of our server has successfully installed opal, but we found the dsBase is not the default installed package.

Thus, we try to install it ourself with opalr, but can not success. See below:

```
> opal=opal.login(url = "xxxx:xxx", user = "xxx", password = "xxx")
> dsadmin.installed_package(opal, pkg = "dsBase")
[1] FALSE
> dsadmin.install_package(opal, pkg = "dsBase")
[1] FALSE
> dsadmin.installed_package(opal, pkg = "dsBase")
[1] FALSE
> dsadmin.installed_package(opal, pkg = "resourcer")
[1] TRUE

```

By the way, resourcer is the only default installed package.

It is appreciated if anyone have any suggestions.

Regards, Hank

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [20 October 2020 17:45 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/2 "2020-10-20T17:45:10Z")

</div>

Hi Hank,

Which version of Opal are you using? New versions of Opal, 2.16 and after (if memory serves me right), you should use “DSI” and “DSOpal” R packages to interact with the Opal server.

If you are seeing “resourcer” package I suspect you are running a relatively new version of Opal, which I suspect ‘opal’ and ‘opaladmin’ R packages will only partially work.

Stuart

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 October 2020 09:09 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/4 "2020-10-21T09:09:33Z")

</div>

Hank,

I think the best way to proceed is to initially confirm which version of Opal you are using. The way I do this would be to log into the Opal Web Portal (usually on port 8080) with my web browser and (after login in) check the version which is displayed in the bottom right corner of the page.

Stuart

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 09:21 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/5 "2020-10-21T09:21:52Z")

</div>

Dear Stuart,

Thanks a lot, I found the information, this server installed 3.0.3 version opal.

Regards, Hank

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 October 2020 09:37 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/6 "2020-10-21T09:37:11Z")

</div>

Hank, In that case you will need to use the ‘DSI’ and ‘DSOpal’ R packages. I would advice uninstalling the ‘opal’ and ‘opaladmin’ packages if they are installed on your client.

Are you trying to login to the Opal server using ‘https’ or ‘http’? The error messages does look like a SSL certificate issue.

Stuart

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 09:45 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/7 "2020-10-21T09:45:29Z")

</div>

Dear Stuart,

Sorry for confusing you. I have three opal servers, two of them have problems for using but different issues.

For this server, the issue is the missing dsBase package. I can login but cannot install dsBase from opalr. For DSI and DSOpal, I still can login but cannot find functions to install server-side packages. Could you please suggest one?

Regards, Hank

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 October 2020 10:26 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/8 "2020-10-21T10:26:15Z")

</div>

Hank,

If you have access to the administrative account, I find the easiest way to install the ‘dsBase’ package is via the Opal Web Portal: “Administration” -\> “DataSHIELD” then use “+ Add Package” button.

Stuart

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 10:58 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/9 "2020-10-21T10:58:46Z")

</div>

Hi Stuart,

This is the first way I tried, but it did not work. Even there is no error messages returned.

Regards, Hank

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [21 October 2020 11:40 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/10 "2020-10-21T11:40:01Z")

</div>

Hi,

dsBase fails at being installed in your R server. You should check the R server logs for error messages: in Opal, go to **Administration \> R** and then click **Download**.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 13:49 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/11 "2020-10-21T13:49:50Z")

</div>

Hi Yannick,

Great information!

There are indeed errors when instaling the dependency. See below:

```
... ...

checking for ranlib... ERROR: no information for variable 'RANLIB'
... ...

libtool: link: ERROR: no information for variable 'AR' cru .libs/libutil.a .libs/mt19937ar.o .libs/sobolseq.o .libs/timer.o .libs/stop.o .libs/redblack.o .libs/qsort_r.o .libs/rescale.o 
../libtool: line 1102: ERROR:: command not found
make[2]: *** [libutil.la] Error 127
make[2]: Leaving directory `/tmp/Rtmpz57bwJ/R.INSTALL743e428fe501/nloptr/src/nlopt_src/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/Rtmpz57bwJ/R.INSTALL743e428fe501/nloptr/src/nlopt_src'
make: *** [all] Error 2
ERROR: configuration failed for package ‘nloptr’
* removing ‘/var/lib/rserver/R/library/nloptr’
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/var/lib/rserver/R/library/lme4’
ERROR: dependency ‘lme4’ is not available for package ‘dsBase’
* removing ‘/var/lib/rserver/R/library/dsBase’
ERROR: dependency ‘dsBase’ is not available for package ‘datashield’
* removing ‘/var/lib/rserver/R/library/datashield’

```

Dpes anyone know how to fix this issue?

Regards, Hank

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [21 October 2020 14:18 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/12 "2020-10-21T14:18:26Z")

</div>

It says that `libtool` command is failing because of ranlib not configured. Seems a bit cryptic but sounds like a compiler error (gcc). How was installed R on this server ?

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [21 October 2020 14:26 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/13 "2020-10-21T14:26:40Z")

</div>

By the way, for your information [the rserver is also available as a docker image](http://opaldoc.obiba.org/en/latest/admin/rserver.html#docker-image-installation), that simplifies system dependencies issues.

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 14:47 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/14 "2020-10-21T14:47:24Z")

</div>

Hi Yannick,

According to this page:

> <https://stackoverflow.com/questions/62900525/install-lme4-from-cran-on-ubuntu>

This error is due to the new version of nloptr not applicable to 3+ version of R.Thus, installation of an older version of nloptr would solve it. For example,

```auto
packageurl<-"https://cran.r-project.org/src/contrib/Archive/nloptr/nloptr_1.2.1.tar.gz"

install.packages(packageurl, repos=NULL, type="source")

```

But I do not know how to do it with datashield packages or web-management? Anyone know?

Regards, Hank

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 October 2020 15:07 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/15 "2020-10-21T15:07:31Z")

</div>

Hi, I don’t know if this helps but on my development VM I have nloptr version 1.2.2.2:

> nloptr \* 1.2.2.2 2020-07-02 [1] CRAN (R 4.0.3)

Stuart

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [21 October 2020 15:35 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/16 "2020-10-21T15:35:11Z")

</div>

@swheater Thanks for this information. My r-server is 3.6.0.

From CRAN page of nloptr([https://cran.r-project.org/web/packages/nloptr/index.html](https://cran.r-project.org/web/packages/nloptr/index.html)), the auther forgot to say the minumum available version of R. Therefore, my r-server tried to install the newest version. However it seams the nloptr 1.2.2.2 is not compitiable with R 3.6

Anyone know how I can install a old-version package into the r-server of opal?

Regards, Hank

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 October 2020 16:42 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/17 "2020-10-21T16:42:31Z")

</div>

Hank,

What operating system (and version) are you deploying your Opal Server to?

Stuart

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [21 October 2020 19:06 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/18 "2020-10-21T19:06:47Z")

</div>

Use something like this to install a specific package version:

```auto
library(opalr)
o <- opal.login(username = "administrator", password = "password", url = "https://opal-demo.obiba.org")
opal.execute(o, script = 'devtools::install_version("rgdal", version = "1.5-12", repos = "https://cloud.r-project.org", upgrade = "never")')
opal.logout(o)

```

But why not using R 4.x ?

Regards Yannick

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [22 October 2020 06:38 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/19 "2020-10-22T06:38:33Z")

</div>

Dear Yannick,

Brilliant idea!

Do we just need to update R software on server, then opal can use automatically?

Regards, Hank

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [22 October 2020 06:54 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/20 "2020-10-22T06:54:56Z")

</div>

Opal has no requirements regarding the R server (as soon as it is accessible), and is also not responsible for the R server failures by the way… Then update whatever you want in R, just make sure you have a clean install (i.e. not mixing R 3.x and R 4.x packages).

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [22 October 2020 07:23 UTC](https://datashield.discourse.group/t/dsbase-can-not-be-installed-on-opal-server/281/21 "2020-10-22T07:23:38Z")

</div>

Great, thanks for the information

Hank
