# Mender Installation in local server fails

**URL:** https://hub.mender.io/t/mender-installation-in-local-server-fails/1793
**Category:** General Discussions
**Created:** [April 16, 2020, 2:45am UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793 "2020-04-16T02:45:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vikram](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/vikram/32/572_2.png) [@vikram](https://hub.mender.io/u/vikram)
#### Post date: [April 16, 2020, 2:45am UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793/1 "2020-04-16T02:45:50Z")

</div>

I followed the steps mentioned in the link [[Production installation | Mender documentation](https://docs.mender.io/2.3/administration/production-installation)] for open source prod deployment in one of my company’s servers. I got the error after executing ‘./run up’ command.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/c5d43fcdc06f45b091156f0099c4acafffef2e1b.png)

I have skipped some steps in the process as its an internal server and we dont have public internet access to it. First i copied the git project manually to the server and i have also pulled the required images in to the required server( by pushing it from company laptop to our internal repo and pulling those same images to our internal server)  
The following are the steps used in mender deployment. I have also skipped some steps. Kindly check comments for the reason and help

> #! /bin/bash  
> cd mender-server/production  
> cp config/prod.yml.template config/prod.yml
> 
> #skipped as git is not installed  
> git add .  
> git commit -m ‘production: initial template’
> 
> #already pulled manually so skipped this  
> ./run pull
> 
> API\_GATEWAY\_DOMAIN\_NAME=“our dns”  
> STORAGE\_PROXY\_DOMAIN\_NAME=“our dns”
> 
> CERT\_API\_CN=$API\_GATEWAY\_DOMAIN\_NAME CERT\_STORAGE\_CN=$STORAGE\_PROXY\_DOMAIN\_NAME …/keygen
> 
> #skipped  
> git add keys-generated  
> git commit -m ‘production: adding generated keys and certificates’
> 
> echo “creating volumes for mender”  
> docker volume create --name=mender-artifacts  
> docker volume create --name=mender-db  
> docker volume create --name=mender-elasticsearch-db  
> docker volume create --name=mender-redis-db
> 
> #since pwgen is not installed, i have manually generated generated Random number online using  
> #[https://www.pwdgen.org/](https://www.pwdgen.org/) ; Generated key as OYQjK5N3JGfD0TaY  
> INIO\_SECRET\_KEY\_GENERATED=$(pwgen 16 1) && echo $MINIO\_SECRET\_KEY\_GENERATED
> 
> sed -i.bak “s/MINIO\_ACCESS\_KEY:._/MINIO\_ACCESS\_KEY: mender-deployments/g" config/prod.yml  
> sed -i.bak "s/MINIO\_SECRET\_KEY:._/MINIO\_SECRET\_KEY: $MINIO\_SECRET\_KEY\_GENERATED/g” config/prod.yml  
> sed -i.bak “s/DEPLOYMENTS\_AWS\_AUTH\_KEY:._/DEPLOYMENTS\_AWS\_AUTH\_KEY: mender-deployments/g" config/prod.yml  
> sed -i.bak "s/DEPLOYMENTS\_AWS\_AUTH\_SECRET:._/DEPLOYMENTS\_AWS\_AUTH\_SECRET: $MINIO\_SECRET\_KEY\_GENERATED/g” config/prod.yml  
> sed -i.bak “s/https://set-my-alias-here.com/https://$STORAGE\_PROXY\_DOMAIN\_NAME:9000/g” config/prod.yml  
> sed -i.bak “s/set-my-alias-here.com/$STORAGE\_PROXY\_DOMAIN\_NAME/g” config/prod.yml  
> sed -i.bak “s/my-gateway-dns-name/$API\_GATEWAY\_DOMAIN\_NAME/g” config/prod.yml
> 
> #skipped  
> git add config/prod.yml  
> git commit -m ‘production: configuration’  
> git log --oneline 2.3.0…HEAD
> 
> # Received an error ERROR: for storage-proxy Container “5ac3476f2eee” is unhealthy

after running ./run up -d.

The container logs are here

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/4624b9199ab84692308ce4dadca51a7a5e67923d.png)

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [April 16, 2020, 6:32am UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793/2 "2020-04-16T06:32:38Z")

</div>

Would be interesting to see [container logs](https://docs.mender.io/2.3/troubleshooting/mender-server#container-logs) of the failing service.

---

<div class="post-metadata">

### Author: ![vikram](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/vikram/32/572_2.png) [@vikram](https://hub.mender.io/u/vikram)
#### Post date: [April 16, 2020, 6:46am UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793/3 "2020-04-16T06:46:33Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/e124328be3b73687af2a3e02382ecda2d5d4f909.png)

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [April 16, 2020, 8:32pm UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793/4 "2020-04-16T20:32:11Z")

</div>

Hi @vikram it looks like you have a version mismatch somewhere. You seem to be running an older minio instance with the newer config files.

---

<div class="post-metadata">

### Author: ![vikram](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/vikram/32/572_2.png) [@vikram](https://hub.mender.io/u/vikram)
#### Post date: [April 17, 2020, 3:00am UTC](https://hub.mender.io/t/mender-installation-in-local-server-fails/1793/5 "2020-04-17T03:00:59Z")

</div>

Hi drewmoseley,  
This issue is fixed and now i have another one. Kindly help

> [@Redis:5-alpine3.8 container failing during mender prod deployment](https://hub.mender.io/t/redis-5-alpine3-8-container-failing-during-mender-prod-deployment/1797):
>
> Hi, Im trying to deploy mender prod server locally in my office dev network. I followed the process mentioned in [https://docs.mender.io/2.3/administration/production-installation](https://docs.mender.io/2.3/administration/production-installation). All containers seems to be up except for redis:5-alpine3.8 which is restarting continuously and mendersoftware/mender-conductor:1.6.0 containers which keeps on checking health. Log for redis Log for mender-conductor # this is a template file for production setup, consult # https://docs.dock…
