# Problem Compiling mattermost-push-proxy

**URL:** <https://forum.mattermost.com/t/problem-compiling-mattermost-push-proxy/4829>\
**Category:** Troubleshooting\
**Created:** [April 21, 2018, 10:45pm UTC](https://forum.mattermost.com/t/problem-compiling-mattermost-push-proxy/4829 "2018-04-21T22:45:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithg](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@keithg](https://forum.mattermost.com/u/keithg)\
**Post date:** [April 21, 2018, 10:45pm UTC](https://forum.mattermost.com/t/problem-compiling-mattermost-push-proxy/4829/1 "2018-04-21T22:45:54Z")

</div>

Hello all  
I am in the process of launching our own MPNS server using [https://github.com/mattermost/mattermost-push-proxy](https://github.com/mattermost/mattermost-push-proxy). I can pull the compiled version down from github and launch the server and it pushes great. However, we are going to need to add in a small extra function to the android\_notification\_server.go and apple\_notification\_server.go for something in our application. So I have pulled down the source code (ie [https://github.com/mattermost/mattermost-push-proxy/archive/v4.4.tar.gz](https://github.com/mattermost/mattermost-push-proxy/archive/v4.4.tar.gz)), extracted to my go environment, included our pem file and updated json. When i then run make all … it runs successfully and tests pass. But when I then upload the package to our server and go to start the service we receive

bin/mattermost-push-proxy: 1: bin/mattermost-push-proxy: Syntax error: “)” unexpected

in the /var/log/upstart/mattermost-push-proxy.log file.

This is after building the code without editing anything.

So I am curious is anyone has tried this … and if there is a solution out there.

We are somewhat in an urgent need of support as we were hoping to have this live this weekend …

Thank you to anyone who can provide any assistance or guidance on this one.

Keith

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [April 24, 2018, 10:03am UTC](https://forum.mattermost.com/t/problem-compiling-mattermost-push-proxy/4829/2 "2018-04-24T10:03:58Z")

</div>

Hi @keithg,

Thanks for your feedback,

Have you taken a look at [this documentation](https://docs.mattermost.com/mobile/mobile-compile-yourself.html)?
