Skip to content

Commit

Permalink
Merge pull request #546 from aau-network-security/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtrkmn authored Nov 14, 2020
2 parents ab3051f + 5b603e2 commit 5d83f6c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
13 changes: 8 additions & 5 deletions daemon/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d83f6c

Please sign in to comment.