On Thu, Aug 27, 2020 at 7:07 PM Takahiro SUZUKI <[email protected]> wrote:
> > Hello Nick. > > > Please help me again. > Sorry for the questions related to docker. > > I haven't solved WOL yet. > > However, since it was necessary to be able to use WOL on docker and > guacamole, > I had to separate it. > > > I have pulled other WOL docker images, > When I built docker-compose in network mode host mode > The magic host was sent and the target host started. > Ie WOL worked. > > Based on that, > Similarly, in the created guacamole docker-compose.yaml file, changed the > network mode to host mode. > After changing it, launching docker-compose and accessing the browser, > The following log was output and an error was output on the browser. > > > ---------------------------------------------------------------------------- > guacamole_compose2 | 21:36:12.198 [http-nio-8080-exec-6] WARN > oageAuthenticationProviderFacade-The "postgresql" authentication provider > has encountered an internal error which will halt the authentication > process.If this is unexpected or you are the developer of If this is > expected and you wish to ignore such failures in the future, please set > "skip-if-unavailable: postgresql" within your guacamole.properties. this > authentication provider, you may wish to enable debug-level logging. > guacamole_compose2 | 21:36:12.199 [http-nio-8080-exec-6] ERROR > o.a.g.rest.RESTExceptionMapper-Unexpected internal error: > guacamole_compose2 | ### Error querying database. Cause: > org.postgresql.util.PSQLException: The connection attempt failed. > guacamole_compose2 | ### The error may exist in > org/apache/guacamole/auth/jdbc/user/UserMapper.xml > guacamole_compose2 | ### The error may involve > org.apache.guacamole.auth.jdbc.user.UserMapper.selectOne > guacamole_compose2 | ### The error occurred while executing a query > guacamole_compose2 | ### Cause: org.postgresql.util.PSQLException: The > connection attempt failed. > > ---------------------------------------------------------------------------- > > The most likely cause of this is that the place at which the PostgreSQL database is found has changed when you switched to Host networking mode. You need to make sure the configuration of your Guacamole Client container points to the correct place, and that the PostgreSQL server is actually accessible there. > In connection I have some questions. . > > 1) Does guacamole support docker host mode? > Since other WOL docker images written above are compatible with host mode, > if in host mode, > I thought I could use WOL in guacamole. > > I do not know of any reason why the Guacamole containers would not support host mode networking, but you'll need to configure things differently to interconnect the various containers. > > 2) Is the magic packet of wol sent by the guagd process? > > Yes, the magic WoL packet is sent by guacd. > 3)In case of dokcer, do I need to define other WOL docker images? > > > No, this is handled completely by guacd - there are no additional components required. > > 4) Are the guacamoke and guacd images on docker-hub official images? > The reason for this question is that OFFICEIAL is not checked. > > ---------------------------------------------------------------------------- > # docker search guacamole > NAME DESCRIPTION STARS OFFICIAL AUTOMATED > guacamole/guacamole Apache Guacamole is a clientless remote desk… 177 > guacamole/guacd The native server-side proxy used by Apache …83 > > Yes, those are the official images. I do not know what is required to get Docker to tick the "official" box, but perhaps we'll have to dig into that on the Project side and see. > > ---------------------------------------------------------------------------- > > 5) Are the latest images of guacamoke and guacd on docker-hub 1.2.0 and WOL > compatible? > > Yes, WoL support was introduced in 1.2.0, and the Docker images built for that version include the support. > Sorry for the very rude question. > Checking all possibilities because I am looking for a solution. > > You have no reason to apologize - the mailing list is here to help provide solutions and answer questions like these! The use-case you're trying to accomplish - running Guacamole in Docker but requiring network broadcast support for Wake-On-LAN - is slightly complicated and a bit of a corner case (not really something Docker is designed to easily handle). You also probably aren't the only one who is struggling with this or will ever struggle with it, so hopefully this will help other folks who might be trying to accomplish the same thing. -Nick
