# \[Discussion\] Teleport Setup Group

**URL:** https://publichappinessmovement.com/t/topic/3476
**Category:** Sys Admin, Backend, DB and Security
**Tags:** webdev, discussion, sys-admin
**Created:** [19 May 2023 20:53 UTC](https://publichappinessmovement.com/t/topic/3476 "2023-05-19T20:53:47Z")
**Posts on this page:** 17
**Page:** 2

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 July 2023 15:04 UTC](https://publichappinessmovement.com/t/topic/3476/23 "2023-07-05T15:04:28Z")

</div>

@zhna123 these are the two urls. Fantastic work, it’s great to see that the React app is loading!

> [@AndyatFocallocal](#):
>
> From memory there were two issues.
> 
> 1. First was that there is some kind of hard coded redirect in the sever code for the testing server, forcing a redirect to the old url: [https://testing.publichappinessmovement.com](https://testing.publichappinessmovement.com)
> 
> This one doesn’t redirect, but also doesn’t run: [https://testing-maps.publichappinessmovement.com](https://testing-maps.publichappinessmovement.com)

There seems to be a redirect somewhere in the setup still for master, redirecting to the old url: [https://testing-happiness.ga/](https://testing-happiness.ga/)

Its probable that the server behind it is running just fine, we just need to take out that redirect and then i can set to work updating Discourse and all the plugins once we are able to access it to get us a live copy of the current platform to work with 🙂

---

<div class="post-metadata">

### Author: ![zhna123](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/zhna123/32/1195_2.png) [@zhna123](https://publichappinessmovement.com/u/zhna123)
#### Post date: [5 July 2023 23:45 UTC](https://publichappinessmovement.com/t/topic/3476/24 "2023-07-05T23:45:14Z")

</div>

Well the settings.json still has the old url.

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/a/a1409fd144df33a4bfbdeee1297138c4f86ae24d.png)

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [6 July 2023 00:47 UTC](https://publichappinessmovement.com/t/topic/3476/25 "2023-07-06T00:47:47Z")

</div>

Awesome. I’ve updated it and it’ll be finished rebuilding in about 11mins

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [6 July 2023 01:04 UTC](https://publichappinessmovement.com/t/topic/3476/26 "2023-07-06T01:04:44Z")

</div>

Seems to be looking for a file that we’ve changed since the testing server was running.

```auto
The command "mup setup" exited with 0.
0.33s$ mup deploy
Unable to load settings.json at /home/travis/build/focallocal/fl-maps/.deployment/testing/settings.json
It does not exist.
You can create the file with "mup init" or add the option
"--settings path/to/settings.json" to load it from a
different location.
The command "mup deploy" exited with 1.
cache.2
store build cache
Done. Your build exited with 1.

```

I believe the path it should now be looking for is: /fl-maps/blob/master/.deployment/testing/settings.enc.json

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [6 July 2023 01:22 UTC](https://publichappinessmovement.com/t/topic/3476/27 "2023-07-06T01:22:21Z")

</div>

Actually, i’m not sure that’s right as it was loading it before i changed the url in the Github settings.enc.json.

Is it perhaps that the settings.json file on Github needs to match the one on the server exactly? Or me changing the url stopped the encrypted strings from matching correctly, so now it won’t build?

---

<div class="post-metadata">

### Author: ![zhna123](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/zhna123/32/1195_2.png) [@zhna123](https://publichappinessmovement.com/u/zhna123)
#### Post date: [7 July 2023 00:20 UTC](https://publichappinessmovement.com/t/topic/3476/29 "2023-07-07T00:20:41Z")

</div>

The settings seem stored in the `/opt/[app]/config/` directory. But as you can see, it was not updating since Apr 11 2020. So my guess is that the deployment is using the old settings every time because there’s no changes been made to it. Now your change somehow triggered it to reload the settings but it couldn’t find the file.

You’ve also changed the app name in the 2nd commit, which had created a new app folder, but it didn’t have the settings in `config` directory (I suppose this config  
folder content is generated based on settings.json).

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/4/44ec790a46408105004689f6264cd05cf580813e.png)

But I don’t really see why it couldn’t find the settings.json file..

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [7 July 2023 01:40 UTC](https://publichappinessmovement.com/t/topic/3476/30 "2023-07-07T01:40:36Z")

</div>

Thanks for looking at that. I can’t see what’s going on, but i think we’re close. I’ll DM Tom and Marvelous to try and get some quick thoughts on the issue

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [7 July 2023 13:52 UTC](https://publichappinessmovement.com/t/topic/3476/31 "2023-07-07T13:52:43Z")

</div>

Maybe not so quick… 😅

---

<div class="post-metadata">

### Author: ![Marvelxy](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/marvelxy/32/696_2.png) [@Marvelxy](https://publichappinessmovement.com/u/Marvelxy)
#### Post date: [8 July 2023 11:45 UTC](https://publichappinessmovement.com/t/topic/3476/32 "2023-07-08T11:45:19Z")

</div>

So, I saw this. This looks like a docuss thing. I don’t know if this is related to the current issue, but what do you guys think?

 ![image](https://publichappinessmovement.com/uploads/default/original/2X/e/e9de72238d97e56b24779b46312ae88b361c9266.png)

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [8 July 2023 12:03 UTC](https://publichappinessmovement.com/t/topic/3476/33 "2023-07-08T12:03:50Z")

</div>

Difficult to say. It’ll be an old version of Docus installed on an old version of Discourse, so can’t say for sure what version of each is doing what.

I need the Discourse server running so I can access the admin area and update both

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [8 July 2023 12:06 UTC](https://publichappinessmovement.com/t/topic/3476/34 "2023-07-08T12:06:47Z")

</div>

Perhaps the redirect is the issue. It is looking for Discourse on the old server. If we remove the redirect then this might resolve itself

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [8 July 2023 12:14 UTC](https://publichappinessmovement.com/t/topic/3476/35 "2023-07-08T12:14:59Z")

</div>

@Marvelxy It might be a good idea to run a search on all the code in the master branch, and on the docus repo for ‘happiness.ga’

To see if there’s still any code pointing at the wrong place.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [14 July 2023 16:51 UTC](https://publichappinessmovement.com/t/topic/3476/36 "2023-07-14T16:51:01Z")

</div>

[@WebDev](https://publichappinessmovement.com/groups/webdev) It seems we’re a bit stuck on getting the server to load. Tom suspects its because the settings.enc.json is encrypted via SOPS and doesn’t like if something in that file is changed. I can change it back to the old and the site should build again, but we are still being redirected to the wrong url, and that redirect might be coming from this file.

Anyone have any thoughts on what we could do next?

---

<div class="post-metadata">

### Author: ![zhna123](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/zhna123/32/1195_2.png) [@zhna123](https://publichappinessmovement.com/u/zhna123)
#### Post date: [14 July 2023 23:08 UTC](https://publichappinessmovement.com/t/topic/3476/37 "2023-07-14T23:08:08Z")

</div>

Just some thoughts about things to try:

1.Is it possible to log on to travis server and check the deployment folder?  
2. The error complains about settings.json doesn’t exist, and suggests creating one or `add the option "--settings path/to/settings.json" to load it from a different location.` So how about try

- create a new encrypted settings.json file OR
- use `mup deploy --settings new_settings.json` option in the script in `.travis.yml` file instead of `mup deploy` (the new\_settings.json could be a renamed version or re-encrypted version of the original one)

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [15 July 2023 01:25 UTC](https://publichappinessmovement.com/t/topic/3476/38 "2023-07-15T01:25:19Z")

</div>

1. As you’re a member of our team in Github you should have access to Travis (as should anyone else here), please do have a look and see if you can find anything: [Travis CI - Test and Deploy with Confidence](https://app.travis-ci.com/github/focallocal/fl-maps/branches)  
Let me know if you aren’t able to access it.

2. 

- Tom has handled encryption in the past, but if its not locked to one person and someone else can create a new encrypted the file, here’s the documentation: [Database passwords and secrets](https://publichappinessmovement.com/t/topic/2053). If you can create the file but lack permissions anywhere send it to me and i’ll add it.
- Its not a bad idea to keep the old file just in case we have a reason to roll back… then again its nice to avoid clutter. If the site loads i’m not too concerned either way.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 July 2023 15:57 UTC](https://publichappinessmovement.com/t/topic/3476/39 "2023-07-21T15:57:01Z")

</div>

No movement on getting that side of the testing server to load, unfortunately.

I reached out to @zofrex over on Slack as i think he set up the keys and encryption there. I was thinking it was Tom, but it looks like i was mistaken. Hoping we find a solution soon 🙂

---

<div class="post-metadata">

### Author: ![zhna123](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/zhna123/32/1195_2.png) [@zhna123](https://publichappinessmovement.com/u/zhna123)
#### Post date: [21 July 2023 18:09 UTC](https://publichappinessmovement.com/t/topic/3476/40 "2023-07-21T18:09:43Z")

</div>

Didn’t get time to look at this the past week… I’ll also have a look again soon.

[Previous page](https://publichappinessmovement.com/t/topic/3476.md?page=1)
