Skip to content

Commit 142b070

Browse files
authored
Merge pull request #68 from packagist/z/totp-time-drift
Self-Hosted: TOTP Time-drift Troubleshooting
2 parents 3c4eb81 + 5b4e8d7 commit 142b070

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

docs/self-hosted/troubleshooting.md

Lines changed: 25 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,30 @@ 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 are having problems setting up MFA, or are unable to login via MFA, with
124+
your generated codes, there may be a time-drift issue with either the
125+
Self-hosted Private Packagist server or the device you are using to generate the
126+
codes.
127+
128+
To make sure that the Self-hosted Private Packagist server is synchronized to
129+
the correct time, you should check that both the current server time and
130+
timezone are set to correct values. If you can enable Network Time Protocol
131+
(NTP) for the server, we also recommend doing that.
132+
133+
The methods for doing so will vary depending on the underlying server Operating
134+
System.
135+
136+
> Please be aware that offline-based TOTP hardware can drift up to a few minutes
137+
> a year. As Private Packagist only allows time-drift of up to one (1) minute, we
138+
> recommend using TOTP devices that have the ability to stay synchronized with
139+
> the correct time (such as a phone, or re-programmable TOTP hardware devices).

0 commit comments

Comments
 (0)