Increased context timeout for orborus
This commit is contained in:
@@ -333,7 +333,7 @@ const LoginDialog = (props) => {
|
||||
<b>1.</b> Make sure shuffle-database folder has correct access, and that you have a minimum of <b>2Gb of RAM available</b>:{" "}
|
||||
<br />
|
||||
<br />
|
||||
sudo chown 1000:1000 -R shuffle-database
|
||||
sudo chown -R 1000:1000 shuffle-database
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="body2"
|
||||
|
||||
@@ -1055,7 +1055,7 @@ func getOrborusStats(ctx context.Context) shuffle.OrborusStats {
|
||||
// Use the docker API to get the CPU usage of the docker engine machine
|
||||
pers, err := dockercli.Info(ctx)
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] Failed getting docker info: %s", err)
|
||||
log.Printf("[ERROR] Failed getting docker info: %s. This is normal IF there are many containers running.", err)
|
||||
return newStats
|
||||
} else {
|
||||
newStats.TotalContainers = pers.Containers
|
||||
@@ -1407,7 +1407,7 @@ func main() {
|
||||
// Should find data to send (memory etc.)
|
||||
|
||||
// Create timeout of max 4 seconds just in case
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
// Marshal and set body
|
||||
|
||||
Reference in New Issue
Block a user