From 9304701d5425693937b19b732efb5c526ded9d71 Mon Sep 17 00:00:00 2001 From: Ahmet Turkmen Date: Wed, 11 Nov 2020 14:27:45 +0100 Subject: [PATCH 1/2] updaate guac 500 error solution Signed-off-by: Ahmet Turkmen --- docs/troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index ac0567aee..da50c0106 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -192,6 +192,15 @@ This error might happen for some reasons which are; If there is an error happened restart VM which throws the error. +- Guacamole mysql is NOT able to run. (Crashing) + +Mysql requires following configuration file to be placed. + + - [https://help.directadmin.com/item.php?id=529](https://help.directadmin.com/item.php?id=529) + + - [https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_use_native_aio](https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_use_native_aio) + + ## Pool overlaps with other one on this address space This error is directly related with docker containers and network, in order to overcome this error, docker related clean up From 5b603e271111bd5bfd033e7536957afad57b48f5 Mon Sep 17 00:00:00 2001 From: Ahmet Turkmen Date: Sat, 14 Nov 2020 20:01:02 +0100 Subject: [PATCH 2/2] check if lab is nil or not - #543 Signed-off-by: Ahmet Turkmen --- daemon/team.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/daemon/team.go b/daemon/team.go index 40ecd6729..129f083f2 100644 --- a/daemon/team.go +++ b/daemon/team.go @@ -116,11 +116,14 @@ func checkTeamLab(ch chan guacamole.Event, wg *sync.WaitGroup) { Msgf("Error on team lab suspend/GetLabByTeam") } log.Info().Msgf("Suspending resources for team %s", t.Name()) - // check if it is already suspended or not. - for _, instanceInfo := range lab.InstanceInfo() { - if instanceInfo.State != virtual.Suspended { - if err := lab.Suspend(context.Background()); err != nil { - log.Error().Msgf("Error on team lab suspend: %v", err) + // check if lab might be nil ! + if lab != nil { + // check if it is already suspended or not. + for _, instanceInfo := range lab.InstanceInfo() { + if instanceInfo.State != virtual.Suspended { + if err := lab.Suspend(context.Background()); err != nil { + log.Error().Msgf("Error on team lab suspend: %v", err) + } } } }