Skip to content

Commit a724353

Browse files
committed
Self-Hosted: TOTP Time-drift Troubleshooting
1 parent 3c4eb81 commit a724353

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

docs/self-hosted/troubleshooting.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the logs in this file yourself as well.
1414
You can generate a support bundle from the Replicated Management Console on
1515
port 8800 by navigating to the Support tab and clicking on the "Download
1616
Support Bundle" button. Alternatively you can use replicated's command line
17-
interface to generate the support bundle on your host system:
17+
interface to generate the support bundle on your host system:
1818

1919
`replicatedctl support-bundle`
2020

@@ -55,7 +55,7 @@ management console). Look up the container id using `docker ps -as` and then
5555
view the logs using `docker logs <container-id>`. If the health check is
5656
failing the log will contain a JSON structure with all system checks and their
5757
respective status and error messages.
58-
58+
5959
#### devicemapper I/O errors on docker service
6060

6161
If you are using RedHat Enterprise Linux RHEL 7.x, try setting the option
@@ -110,8 +110,29 @@ update the host IP and the NO_PROXY environment.
110110

111111
#### Reset Replicated Management Console authentication
112112

113-
If you cannot log into the Replicated Management Console anymore, then you can reset LDAP and password authentication on the host system by running the following command:
113+
If you cannot log into the Replicated Management Console anymore, then you can
114+
reset LDAP and password authentication on the host system by running the
115+
following command:
114116

115117
```
116118
replicatedctl console-auth reset
117119
```
120+
121+
#### Issues with Multi-factor Authentication
122+
123+
If you have set up MFA and you can't log in with your generated codes, there may
124+
be a time-drift issue with either the Self-hosted Private Packagist server or
125+
the device you are using to generate the codes.
126+
127+
To make sure that the Self-hosted Private Packagist server is correctly
128+
synchronized to the correct time, you should check that both the current server
129+
time and timezone are set to correct values. If you can enable Network Time
130+
Protocol (NTP) for the server, we also recommend doing that.
131+
132+
The methods for doing so will vary depending on the underlying server Operating
133+
System.
134+
135+
> Please be aware that offline-based TOTP hardware can drift up to a few minutes
136+
> a year. As Private Packagist only allows time-drift of up to one (1) minute, we
137+
> recommend using TOTP devices that have the ability to stay synchronized with
138+
> the correct time (such as a phone, or re-programmable TOTP hardware devices).

0 commit comments

Comments
 (0)