# \[Important\] Bahmni Release repo migration

**URL:** <https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306>\
**Category:** Bahmni\
**Tags:** development, bahmni, developers-forum\
**Created:** [May 1, 2021, 10:22am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306 "2021-05-01T10:22:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 1, 2021, 10:22am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/1 "2021-05-01T10:22:18Z")

</div>

Hello All,

With JFrog Bintray services being deprecated from Today 1 May 2021, we have migrated our repos. Right now they are hosted at our AWS S3, and in a few days we will try to deliver through AWS CloudFront as well.

Bahmni. 0.93 is going to come bundled with the repo pointing to the new locations, but if you are trying to get any older version of Bahmni (e.g. 0.91 or 0.92), then please be advised that you need to follow the following steps.

1. in /etc/bahmni-installer/setup.yml, update/add the following configuration

> bahmni\_repo\_url: [http://repo.mybahmni.org/releases/](http://repo.mybahmni.org/releases/)

2.While installing, you need to mention the ansible installer

> bahmni -i local -aru [http://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm](http://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm) install

All other pre-requisites and instructions remain the same. e.g. zlib, epel-release, Click etc

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 1, 2021, 10:26am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/2 "2021-05-01T10:26:53Z")

</div>

attn: @arjun @mksrom @ramashish @shivarachakonda @binduak @swetha184 @laxman @sushilp @sushmit @vmalini @akhilmalhotra @dipakthapa @ramashish @pradipta @rrameshbtech @mddubey @iadksd@michaelbontyes @buvaneswariarun @praveenad @sanjayap @apaule@som.bhattacharyya @tejakancherla @rabbott @gsluthra @nidhro @rakib @mwelazek @mozzy @tapologo @mksd @apuda @tarunshettygari @praveenad

---

<div class="post-metadata">

**Author:** ![apuda](https://talk.openmrs.org/user_avatar/talk.openmrs.org/apuda/32/12225_2.png) [@apuda](https://talk.openmrs.org/u/apuda)\
**Post date:** [May 4, 2021, 12:00pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/3 "2021-05-04T12:00:02Z")

</div>

Thanks so much for this vital information @angshuonline

---

<div class="post-metadata">

**Author:** ![akshaybirajdar](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akshaybirajdar/32/10388_2.png) [@akshaybirajdar](https://talk.openmrs.org/u/akshaybirajdar)\
**Post date:** [May 6, 2021, 3:52pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/4 "2021-05-06T15:52:02Z")

</div>

I tried installing 0.93-105 with above instruction

> “No package matching ‘bahmni-emr-0.93-95’ found available”

---

<div class="post-metadata">

**Author:** ![vinay](https://talk.openmrs.org/user_avatar/talk.openmrs.org/vinay/32/327_2.png) [@vinay](https://talk.openmrs.org/u/vinay)\
**Post date:** [May 7, 2021, 4:58am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/5 "2021-05-07T04:58:55Z")

</div>

@angshuonline I am not sure why, but the bahmni installer rpm downloaded from S3 cannot be installed.

```auto
$ wget http://repo.mybahmni.org.s3.amazonaws.com/releases/bahmni-installer-0.92-155.noarch.rpm
$ rpm -ivh bahmni-installer-0.92-155.noarch.rpm
error: bahmni-installer-0.92-155.noarch.rpm: tag[42]: BAD, tag 1096 type 5 offset 31312 count 500 len 2000
error: bahmni-installer-0.92-155.noarch.rpm cannot be installed
$ rpm --checksig bahmni-installer-0.92-155.noarch.rpm

bahmni-installer-0.92-155.noarch.rpm:error: bahmni-installer-0.92-155.noarch.rpm: tag[42]: BAD, tag 1096 type 5 offset 31312 count 500 len 2000

```

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 7, 2021, 5:20am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/6 "2021-05-07T05:20:49Z")

</div>

Just tried that @vinayNot getting the above error. Also many have been trying with the new repo. What OS version are you trying this on?

---

<div class="post-metadata">

**Author:** ![vinay](https://talk.openmrs.org/user_avatar/talk.openmrs.org/vinay/32/327_2.png) [@vinay](https://talk.openmrs.org/u/vinay)\
**Post date:** [May 7, 2021, 5:25am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/7 "2021-05-07T05:25:57Z")

</div>

@angshuonline Thanks for the update. I was on Centos 8.x, thats probably why. I will downgrade OS and verify.

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 7, 2021, 9:49am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/8 "2021-05-07T09:49:46Z")

</div>

Btw, if you want to try out the 0.93-beta, then make sure your repo points to

> bahmni\_repo\_url: [http://repo.mybahmni.org/rpm/bahmni](http://repo.mybahmni.org/rpm/bahmni)

---

<div class="post-metadata">

**Author:** ![tapologo](https://talk.openmrs.org/letter_avatar/tapologo/32/6_22734026db12803ebb3e059622ac3534.png) [@tapologo](https://talk.openmrs.org/u/tapologo)\
**Post date:** [May 7, 2021, 10:10am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/9 "2021-05-07T10:10:22Z")

</div>

@angshuonline @buvaneswariarun[This wiki documentation](https://bahmni.atlassian.net/wiki/spaces/BAH/pages/33128505/Install+Bahmni+on+CentOS#InstallBahmnionCentOS-Step2:PerformthefollowingstepstoinstalltheRPMs) needs updating, it still refers to the old repo

---

<div class="post-metadata">

**Author:** ![buvaneswariarun](https://talk.openmrs.org/letter_avatar/buvaneswariarun/32/6_22734026db12803ebb3e059622ac3534.png) [@buvaneswariarun](https://talk.openmrs.org/u/buvaneswariarun)\
**Post date:** [May 7, 2021, 10:13am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/10 "2021-05-07T10:13:32Z")

</div>

Done. Thanks for letting us know

---

<div class="post-metadata">

**Author:** ![akshaybirajdar](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akshaybirajdar/32/10388_2.png) [@akshaybirajdar](https://talk.openmrs.org/u/akshaybirajdar)\
**Post date:** [May 8, 2021, 6:10pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/11 "2021-05-08T18:10:40Z")

</div>

I am trying to install 0.93-105 Beta, and my repo is pointing to [http://repo.mybahmni.org/rpm/bahmni](http://repo.mybahmni.org/rpm/bahmni), I am getting “No package matching ‘bahmni-emr-0.93-95’ found available” error. Please verify this with 0.93-105

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 10, 2021, 9:00am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/12 "2021-05-10T09:00:53Z")

</div>

the package is available at the location. I installed 0.93 yesterday, so it should work. Try putting a trailing slash

> bahmni\_repo\_url: [http://repo.mybahmni.org/rpm/bahmni/](http://repo.mybahmni.org/rpm/bahmni/)

---

<div class="post-metadata">

**Author:** ![munnavhai](https://talk.openmrs.org/user_avatar/talk.openmrs.org/munnavhai/32/4527_2.png) [@munnavhai](https://talk.openmrs.org/u/munnavhai)\
**Post date:** [May 31, 2021, 12:58pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/13 "2021-05-31T12:58:46Z")

</div>

No HTTPS repo available?

---

<div class="post-metadata">

**Author:** ![ramses](https://talk.openmrs.org/letter_avatar/ramses/32/6_22734026db12803ebb3e059622ac3534.png) [@ramses](https://talk.openmrs.org/u/ramses)\
**Post date:** [May 31, 2021, 2:53pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/14 "2021-05-31T14:53:49Z")

</div>

Hi all, @angshuonline

I am a bit surprised to see that in 2021, given the general availability of free and fully-automated CAs, we still put websites online without TLS. This is doubly worrying when said website is a repository for delivering code.

I would have a hard time explaining to anyone reviewing my deployment scripts, that I am downloading code that will be run in our production environments, and dealing with very sensitive medical data, over an unsecured connection.

Can this please be reconsidered ASAP?

Thanks for your consideration, Ramses

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 31, 2021, 3:23pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/15 "2021-05-31T15:23:07Z")

</div>

@ramses agree.

1. we do have a TLS URL for the S3 repo but little convoluted
2. to resolve the above, we had used route53, and used letsEncrypt. but we need to renew frequently.
3. we are trying to make some changes like serving through cloudfont and leveraging the CDN to allow faster downloads. We have a https endpoint on cloudfront, but unfortunately we can’t retain the same repo.bahmni, and a random subdomain is given. There are some workarounds, and thats what we are trying to resolve.

Give us a few days, if we can’t configure cloudfront URL, we will just go ahead with the older approach.

---

<div class="post-metadata">

**Author:** ![ramses](https://talk.openmrs.org/letter_avatar/ramses/32/6_22734026db12803ebb3e059622ac3534.png) [@ramses](https://talk.openmrs.org/u/ramses)\
**Post date:** [May 31, 2021, 3:39pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/16 "2021-05-31T15:39:59Z")

</div>

@angshuonline great news, thanks!

Regarding LE, the renewal should happen automatically, if you use Route53, you should be able to use DNS challenges to have LE automatically validate your domain.

I have some experience with this, don’t hesitate contacting me directly if needed.

Cheers and thanks for your efforts! Ramses

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [May 31, 2021, 3:49pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/17 "2021-05-31T15:49:51Z")

</div>

@ramses sure thanks, will reach out if we need. My pref would be to use cloudfront, it can significantly bring down the download time.

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [June 10, 2021, 7:18am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/18 "2021-06-10T07:18:43Z")

</div>

Hi All, Bahmni repos are now available over HTTPS.

Please do as applicable in your cases.

- update repo URL in “/etc/yum.repos.d/bahmni.repo” - update baseurl to **https** scheme

> baseurl=[https://repo.mybahmni.org/releases/](https://repo.mybahmni.org/releases/)

- setup.yml - if you have overridden the repo URL, please change to HTTP in /etc/bahmni-installer/setup.yml file - “bahmni\_repo\_url” value
- Ansible can be downloaded through the bahmni command itself, and If you are using 0.92, then please use as

> bahmni -i local -aru **https** ://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm install

the repo is available over [https://repo.mybahmni.org](https://repo.mybahmni.org) but it is not browse-able yet. So if you want to check what is available on the repo you can use the [S3 static URL](http://repo.mybahmni.org.s3-website-ap-southeast-1.amazonaws.com/)

---

<div class="post-metadata">

**Author:** ![akshaybirajdar](https://talk.openmrs.org/user_avatar/talk.openmrs.org/akshaybirajdar/32/10388_2.png) [@akshaybirajdar](https://talk.openmrs.org/u/akshaybirajdar)\
**Post date:** [July 19, 2021, 5:34pm UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/19 "2021-07-19T17:34:11Z")

</div>

@angshuonlineBahmni 0.93-168 failing on Postgres

> “Failure talking to yum: failure: repodata/repomd.xml from pgdg-common: [Errno 256] No more mirrors to try.\n[https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86\_64/repodata/repomd.xml:](https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7-x86_64/repodata/repomd.xml:) [Errno -1] repomd.xml signature could not be verified for pgdg-common”}

`bahmni_repo_url: http://repo.mybahmni.org/rpm/bahmni/` and running this command

`bahmni -i local -aru http://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm install`

Even tried with changing the base\_url.

---

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [July 21, 2021, 10:57am UTC](https://talk.openmrs.org/t/important-bahmni-release-repo-migration/33306/20 "2021-07-21T10:57:13Z")

</div>

hmmm … Its weird. Because on the lastest build it has been changed to the path as metioned in postgers install guide you can see [here](https://github.com/Bahmni/bahmni-playbooks/blob/master/group_vars/local#L79)

And both our QA instances actually have the changes.

Did you change any files under " /opt/bahmni-installer/bahmni-playbooks/"? or override setup.yml with the below variables?

```
> postgres_repo_rpm_name: pgdg-redhat-repo-latest.noarch.rpm
> postgres_repo_download_url: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/{{postgres_repo_rpm_name}}
```

We will take another deployment tonight on QA03 … will keep an eye.
