Skip to content

Commit 1a9c4fc

Browse files
Merge pull request #13 from NextronSystems/v2
V2
2 parents 8d6a534 + 0d22ba7 commit 1a9c4fc

File tree

4 files changed

+65
-8
lines changed

4 files changed

+65
-8
lines changed

admin/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ continuing.
1111
:caption: Contents
1212

1313
updates
14-
upgrade
14+
upgrade
15+
password

admin/password.rst

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Password Reset
2+
==============
3+
4+
Since the password for the admin user is stored only on the Backend,
5+
you have to reset the password via console. To reset the password for
6+
the ``admin`` user on the **Security Center Backend**, run the following
7+
command via console:
8+
9+
.. code-block:: console
10+
11+
nextron@sc-back:~$ sudo asgard-security-center-backend set-password
12+
Please enter password for user `admin`:
13+
Please re-enter password for user `admin`:
14+
nextron@sc-back:~$

issues/issue_1.rst

+47-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,58 @@
1-
ABN#001: Placeholder
2-
====================
1+
ASC#001: Backend is down after Upgrade to v2
2+
============================================
33

44
.. list-table::
55
:header-rows: 1
66
:widths: 50, 50
77

88
* - Introduced Version
99
- Fixed Version
10-
* - x
11-
- y
10+
* - 2.x
11+
- N/A
1212

13-
Placeholder Text.
13+
There is currently a rare issue where the backend is not starting
14+
after upgrading to v2. This is due to insufficient permissions for
15+
the MySQL Trigger.
1416

15-
ABN#001: Workaround
17+
If you upgraded your Security Center to version 2 and everything
18+
seems to be working fine, you can ignore this advisory.
19+
20+
We are currently working on a more robust upgrade process to prevent
21+
this from happening in the future.
22+
23+
ASC#001: Workaround
1624
-------------------
1725

18-
Placeholder Text.
26+
After a successful upgrade to version 2 ("Upgrade finished" message can be
27+
seen, see :ref:`admin/upgrade:performing the upgrade`), you might encounter
28+
the following error message in ``/var/log/asgard-security-center-backend/server.log``:
29+
30+
.. code-block:: json
31+
32+
{
33+
"level": "FATAL",
34+
"time": "2024-04-03T18:49:16+02:00",
35+
"message": "failed to init database schema",
36+
"error": "Error 1142 (42000): TRIGGER command denied to user 'securitycenter-model'@'localhost' for table `asgard-security-center-backend`.`assets`"
37+
}
38+
39+
To fix this problem, run the following commands on your backend.
40+
41+
Drop the MySQL trigger (no data will be lost):
42+
43+
.. code-block:: console
44+
45+
nextron@backend:~$ sudo mysql asgard-security-center-backend -e "DROP TRIGGER IF EXISTS assets_updated_fields;"
46+
47+
Restart the backend service. This will recreate the trigger with the correct permissions
48+
automatically:
49+
50+
.. code-block:: console
51+
52+
nextron@backend:~$ sudo systemctl restart asgard-security-center-backend.service
53+
54+
Check if the service is running:
55+
56+
.. code-block:: console
57+
58+
nextron@backend:~$ sudo systemctl status asgard-security-center-backend.service

setup/components.rst

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ focuses on the ``ASGARD Security Center (All-in-one)``):
2727
* ASGARD Gatekeeper
2828
* ASGARD Lobby
2929

30+
- Master ASGARD
31+
3032
- ASGARD Analysis Cockpit; alternatively:
3133

3234
* Elasticsearch Cluster Node for ASGARD Analysis Cockpit

0 commit comments

Comments
 (0)