Location | Description |
/harbor/harbor.cfg | Configuration file of Harbor |
/var/log/harbor/firstboot.log | Display the Harbor's status after the first boot |
/var/log/harbor/subsequentboot.log | Display the Harbor's status after the last reboot of the VM |
/var/log/YYYY-MM-DD/ui.log | Logs generated by the Harbor's UI service |
Known Errors in ui.log | Resolution |
[DEBUG] [authenticator.go:57]: Current AUTH_MODE is ldap_auth
[DEBUG] [ldap.go:53]: ldapURL:ldap://ldap_ip_or_fqdn:389
[DEBUG] [ldap.go:64]: baseDn:cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:68]: Search DN: cn=John Doe,cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:72]: Bind search dn errorLDAP::Bind() error (-1) : Can't contact LDAP server
[ERROR] [base.go:186]: Error occurred in UserLogin: LDAP::Bind() error (-1) : Can't contact LDAP server
|
Check if the AD/LDAP endpoint is reachable from Harbor.
|
[DEBUG] [authenticator.go:57]: Current AUTH_MODE is ldap_auth
[DEBUG] [ldap.go:53]: ldapURL:ldap://ldap_ip_or_fqdn:389
[DEBUG] [ldap.go:64]: baseDn:cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:68]: Search DN: cn=John Doe,cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:72]: Bind search dn errorLDAP::Bind() error (49) : Invalid credentials
[ERROR] [base.go:186]: Error occurred in UserLogin: LDAP::Bind() error (49) : Invalid credentials
|
Check if the user's credentials exist in the ldap database.
Check if Search DN is correct. Queries with ldapsearch from a Linux machine, ldap.exe on AD and so on.
Example to test the connectivity to the ldap endpoint and capability to retrieve data:
From a linux machine:
ldapsearch \
-x -hldap_ip_or_fqdn\
-D <username_allowed_to_query_ldap>@<yourdomain.com> \
-w <username_allowed_password> \
-b dc=<yourdomain>,dc=<com> \
-s sub '(cn=<user_cn_that_you_look_for>)' dn cn email sAMAccountName
From a Windows machine command line:
dsquery user -name your_username
Example:
dsquery user -name John*
|
[DEBUG] [authenticator.go:57]: Current AUTH_MODE is ldap_auth
[DEBUG] [ldap.go:53]: ldapURL:ldap://ldap_ip_or_fqdn:389
[DEBUG] [ldap.go:64]: baseDn:cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:68]: Search DN: cn=John Doe,cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:84]: one or more filter(sAMAccountName=jdoe)
LDAP::Search() error : 32 (No such object)
[ERROR] [base.go:186]: Error occurred in UserLogin: LDAP::Search() error : 32 (No such object)
|
Check if Base DN are correct. Queries with the ldapsearch, ldap.exe on AD and so on.
Example to test the connectivity to the ldap endpoint and capability to retrieve data:
From a Linux machine:
ldapsearch \
-x -hldap_ip_or_fqdn\
-D <username_allowed_to_query_ldap>@<yourdomain.com> \
-w <username_allowed_password> \
-b dc=<yourdomain>,dc=<com> \
-s sub '(cn=<user_cn_that_you_look_for>)' dn cn email sAMAccountName
From a Windows machine command line:
dsquery user -nameyour_username
eg:</u> dsquery user -name John*
|
[DEBUG] [authenticator.go:57]: Current AUTH_MODE is ldap_auth
[DEBUG] [ldap.go:53]: ldapURL:ldap://ldap_ip_or_fqdn:389
[DEBUG] [ldap.go:64]: baseDn:cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:68]: Search DN: cn=John Doe,cn=Users,dc=mydomain,dc=com
[DEBUG] [ldap.go:84]: one or more filter(sAMAccountNdame=jdoe)
[WARNING] Not found an entry.
|
Check if the username used reflects to the ldap_uid
Check if he ldap_scoop is deep enough to reach the entry
ldap_scope = 1 for the least scope to search for users. ldap_scope = 3 for the deepest scope to search for users. |
[DEBUG] [ldap.go:53]: ldapURL:ldap://ldap_ip_or_fqdn:389 [DEBUG] [ldap.go:64]: baseDn:cn=Users,dc=mydomain,dc=com [DEBUG] [ldap.go:68]: Search DN: cn=John Doe,cn=Users,dc=mydomain,dc=com [DEBUG] [ldap.go:84]: one or more filter(sAMAccountName=jdoe) [DEBUG] [ldap.go:109]: found entry:{<nil> <nil> 0 <nil> CN=John Doe,CN=Users,DC=mydomain,DC=com[{cn [John Doe]} {mail [[email protected]]}]} |
Check if the email address of the user that you are using to log into the web interface is already used by an user in Harbor.
If yes, change these two email addresses. |
For more information, see Uploading diagnostic information for VMware (1008525).