RocketChat / server-snap

Rocket.Chat server snap
MIT License
18 stars 17 forks source link

[ERROR] your public ip doesn't match the one resolved for siteurl #30

Closed NotifierMan closed 2 years ago

NotifierMan commented 2 years ago

Today my rocketchat-server snap did an automatic refresh from version 4.1.2 to 4.2.2. Afterwards the service was no longer available. Neither the server's IP address or the DNS settings were changed.

When I trigger a manual refresh i get the following error:

$ snap refresh
error: cannot perform the following tasks:
- Run configure hook of "rocketchat-server" snap if present (run hook "configure": [ERROR] your public ip doesn't match the one resolved for siteurl)

$ snap get rocketchat-server
Key                               Value
backup-on-refresh                 disable
caddy                             enabled
caddy-url                         https://chat.heimathafen-nf.de
db-feature-compatibility-version  3.6
https                             enabled
mongo-oplog-url                   mongodb://localhost:27017/local
mongo-url                         mongodb://localhost:27017/parties
port                              3000
siteurl
snap-refreshing                   true

Also setting the siteurl confuguration seems to have no effect:

$ snap get rocketchat-server
Key                               Value
backup-on-refresh                 disable
caddy                             enabled
caddy-url                         https://chat.heimathafen-nf.de
db-feature-compatibility-version  3.6
https                             enabled
mongo-oplog-url                   mongodb://localhost:27017/local
mongo-url                         mongodb://localhost:27017/parties
port                              3000
siteurl
snap-refreshing                   true

$ snap set rocketchat-server siteurl="https://chat.heimathafen-nf.de"

$ snap get rocketchat-server
Key                               Value
backup-on-refresh                 disable
caddy                             enabled
caddy-url                         https://chat.heimathafen-nf.de
db-feature-compatibility-version  3.6
https                             enabled
mongo-oplog-url                   mongodb://localhost:27017/local
mongo-url                         mongodb://localhost:27017/parties
port                              3000
siteurl
snap-refreshing                   true

Here my current snap info:

$ snap info rocketchat-server
name:      rocketchat-server
summary:   Rocket.Chat server
publisher: Rocket.Chat (rocketchat✓)
store-url: https://snapcraft.io/rocketchat-server
contact:   https://open.rocket.chat/channel/ubuntu-snap
license:   unset
description: |
  Have your own Slack like online chat, built with Meteor. https://rocket.chat/
commands:
  - rocketchat-server.backupdb
  - rocketchat-server.initcaddy
  - rocketchat-server.mongo
  - rocketchat-server.restoredb
services:
  rocketchat-server.rocketchat-caddy: simple, enabled, active
  rocketchat-server.rocketchat-mongo: simple, enabled, active
  rocketchat-server:                  simple, enabled, inactive
snap-id:      wdBUbiEuMNHmAHLBCXQXOcXaOCvbWS1e
tracking:     4.x/stable
refresh-date: today at 10:46 UTC
channels:
  3.x/stable:       3.18.3 2021-11-28 (1491) 289MB -
  3.x/candidate:    3.18.3 2021-11-28 (1491) 289MB -
  3.x/beta:         3.18.3 2021-11-28 (1491) 289MB -
  3.x/edge:         3.18.3 2021-11-28 (1491) 289MB -
  latest/stable:    3.18.3 2021-12-06 (1491) 289MB -
  latest/candidate: 3.18.3 2021-12-06 (1491) 289MB -
  latest/beta:      3.18.3 2021-12-06 (1491) 289MB -
  latest/edge:      4.1.2  2021-12-06 (1497) 285MB -
  4.x/stable:       4.2.2  2021-12-15 (1501) 255MB -
  4.x/candidate:    4.2.2  2021-12-15 (1501) 255MB -
  4.x/beta:         4.2.2  2021-12-15 (1501) 255MB -
  4.x/edge:         4.2.2  2021-12-15 (1502) 255MB -
  2.x/stable:       2.4.14 2020-12-23 (1453) 267MB -
  2.x/candidate:    2.4.14 2020-12-23 (1453) 267MB -
  2.x/beta:         2.4.14 2020-12-23 (1453) 267MB -
  2.x/edge:         ↑
installed:          4.1.2             (1497) 285MB -
kaincenteno commented 2 years ago

experienced the same issue, had to revert to a backup on the latest 3.x channel

NotifierMan commented 2 years ago

Today i noticed that the issue kind of resolved itself. This morning my RocketChat server was running at version 4.2.2 without any further interaction on my side since yesterday 🤷‍♂️