# DS Aggregate Method Error

**URL:** https://datashield.discourse.group/t/ds-aggregate-method-error/416
**Category:** Developer support
**Created:** [9 July 2021 15:55 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416 "2021-07-09T15:55:51Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)
#### Post date: [9 July 2021 15:55 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/1 "2021-07-09T15:55:51Z")

</div>

Hello,

I’m following the December 2020 R Markdown with the use of my own servers. Everything seems to be working fine(with the same code through “connections ← DSI::datashield.login(logins = logindata, assign = TRUE)” ) until I try to run a method (ie. ds.colnames) I am getting:

"“Command ‘exists(“D”)’ failed on ‘opal\_server\_1’: No such DataSHIELD ‘AGGREGATE’ method with name: exists”

I ran devtools:session info and the required packages DSI, DSOpal, dsBaseClient and opalr are listed. I’d like advice on how else to troubleshoot this?

Thanks

---

<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: [9 July 2021 16:30 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/2 "2021-07-09T16:30:56Z")

</div>

Hi, could please indicate which version of dsBaseClient, dsBase and Opal you are using.

Thanks,

Stuart

---

<div class="post-metadata">

### Author: ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)
#### Post date: [9 July 2021 19:35 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/3 "2021-07-09T19:35:35Z")

</div>

I’m using opalr 3.0.0, DSOpal 1.3.0, dsBaseClient 6.1.1.

In the case that I was supposed to define aggregate methods elsewhere, it might be worth mentioning I made a custom docker-compose file based on the documentation that didn’t specify anything about methods

---

<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: [9 July 2021 21:06 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/4 "2021-07-09T21:06:16Z")

</div>

Hi,

Your datashield environment is probably not configured, i.e. allowed methods are not declared. You need to ‘initialize’ it.

See documentation: [https://opaldoc.obiba.org/en/latest/web-user-guide/administration/datashield.html](https://opaldoc.obiba.org/en/latest/web-user-guide/administration/datashield.html)

Regards Yannick

---

<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: [10 July 2021 05:19 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/5 "2021-07-10T05:19:20Z")

</div>

If you have setup the runtime with docker-compose, make sure to use the R server image that contains the dsBase package: use `datashield/rock-base` instead of `obiba/rock`.

Yannick

---

<div class="post-metadata">

### Author: ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)
#### Post date: [12 July 2021 14:08 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/6 "2021-07-12T14:08:30Z")

</div>

My docker compose file looks almost identical to: [Installation — Opal documentation](https://opaldoc.obiba.org/en/latest/admin/installation.html) (with exception of my custom image name and changing the rock image at the bottom to what you suggested), and it isn’t working. Is there an additional configuration step past this? I’m noticing when I log into the opal web interface, one server says that the DS profile is ready for use but when I log into my other one it says “The R server cluster associated to this profile is missing: default”.

---

<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: [12 July 2021 14:37 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/7 "2021-07-12T14:37:16Z")

</div>

Hi,

Does your R server belong to the “default” cluster?

Could you share your docker-compose file and your datashield login script? Otherwise it is difficult to tell what is wrong.

Regards Yannick

---

<div class="post-metadata">

### Author: ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)
#### Post date: [12 July 2021 15:01 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/8 "2021-07-12T15:01:57Z")

</div>

Yes it belongs to the default cluster.

Docker compose for server:

 ![Screen Shot 2021-07-12 at 10.59.21 AM](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/d5ca075fa6b37a2b98484e34744e9cccec485079.png)

---

<div class="post-metadata">

### Author: ![sbellamy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sbellamy](https://datashield.discourse.group/u/sbellamy)
#### Post date: [12 July 2021 15:02 UTC](https://datashield.discourse.group/t/ds-aggregate-method-error/416/9 "2021-07-12T15:02:32Z")

</div>

Rscript for DataSHIELD login:

 ![Screen Shot 2021-07-12 at 11.00.47 AM](https://global.discourse-cdn.com/free1/uploads/datashield1/original/1X/1d4e64ba07284c8aae20368f24ecb37f33c93462.png)
