500 errors from API service when postgres restarted
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Landscape Server | Status tracked in Beta | |||||
24.04 |
Fix Released
|
High
|
Mitch Burton | |||
24.10 |
Fix Released
|
High
|
Mitch Burton | |||
Beta |
Fix Released
|
Critical
|
Mitch Burton |
Bug Description
To reproduce:
sudo add-apt-repository ppa:landscape/
sudo apt install landscape-
Go to your web UI, set up your first admin, then go to /new_dashboard. It should function properly.
sudo systemctl restart postgresql
Now clicking around the web UI in the new portal will result in 500 errors. /var/log/
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
body = resrc.render(self)
File "/opt/canonical
request.
File "/opt/canonical
root_url = get_root_url()
File "/opt/canonical
url = db_config.
File "/opt/canonical
result = store.execute(
File "/usr/lib/
return self._connectio
File "/usr/lib/
return Connection.
File "/usr/lib/
self.
File "/usr/lib/
raise DisconnectionEr
storm.exception
Testing has revealed that 23.03 is not affected by this bug, so I've dropped it from the targeted series.