mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
Handle some more error situations
This commit is contained in:
@@ -100,9 +100,10 @@ Some log files to check in case of issues are:
|
||||
* /home/labca/logs/commander.log
|
||||
* cd /home/labca/boulder; docker-compose logs labca
|
||||
* cd /home/labca/boulder; docker-compose logs boulder
|
||||
* /var/log/labca.err
|
||||
* possibly /var/log/nginx/error.log
|
||||
|
||||
If you get "No valid IP addresses found for <hostname>" in /etc/nginx/ssl/acme_tiny.log, solve it by entering the hostname in your local DNS.
|
||||
If you get "No valid IP addresses found for <hostname>" in /etc/nginx/ssl/acme_tiny.log, solve it by entering the hostname in your local DNS. Same for "Could not resolve host: <hostname>" in /var/log/labca.err.
|
||||
|
||||
### NOTE
|
||||
|
||||
|
||||
12
gui/main.go
12
gui/main.go
@@ -1499,11 +1499,13 @@ func _hostCommand(w http.ResponseWriter, r *http.Request, command string, params
|
||||
return true
|
||||
}
|
||||
|
||||
tail := message[len(message)-4:]
|
||||
if strings.Compare(string(tail), "\nok\n") == 0 {
|
||||
msg := message[0 : len(message)-4]
|
||||
log.Printf("Message from server: '%s'", msg)
|
||||
return true
|
||||
if len(message) >= 4 {
|
||||
tail := message[len(message)-4:]
|
||||
if strings.Compare(string(tail), "\nok\n") == 0 {
|
||||
msg := message[0 : len(message)-4]
|
||||
log.Printf("Message from server: '%s'", msg)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
log.Printf("ERROR: Message from server: '%s'", message)
|
||||
|
||||
Reference in New Issue
Block a user