I'm currently building for ARM which hasn't yet been officially integrated to the main docker images in Docker Hub so I'm unable to verify that image. I'm also currently unable to build from source tag 1.5.5 <https://github.com/apache/guacamole-client/releases/tag/1.5.5>, I'm not sure why but I think because my pull request <https://github.com/apache/guacamole-client/pull/963> which was integrated into main was not integrated into the 1.5.5 release. I just tried integrating the changes from my previously mentioned pull request but it still is not able to build. Both failures to build gave this set of errors during compilation which makes it kind of difficult to inspect why it didn't build properly. If there are any recommendations on how to better debug a build failure like this from within the docker container, I'm all ears.
142.6 [INFO] ------------------------------------------------------------- 142.6 [ERROR] COMPILATION ERROR : 142.6 [INFO] ------------------------------------------------------------- 142.6 [ERROR] error: warnings found and -Werror specified 142.6 [INFO] 1 error 142.6 [INFO] ------------------------------------------------------------- 142.6 [INFO] ------------------------------------------------------------------------ 142.6 [INFO] Reactor Summary for guacamole-client 1.5.5: 142.6 [INFO] 142.6 [INFO] guacamole-client ................................... SUCCESS [ 13.605 s] 142.6 [INFO] guacamole-common ................................... SUCCESS [ 19.710 s] 142.6 [INFO] guacamole-ext ...................................... SUCCESS [ 14.989 s] 142.6 [INFO] guacamole-common-js ................................ SUCCESS [ 30.656 s] 142.6 [INFO] guacamole .......................................... FAILURE [ 58.522 s] 142.6 [INFO] extensions ......................................... SKIPPED 142.6 [INFO] guacamole-auth-duo ................................. SKIPPED 142.6 [INFO] guacamole-auth-header .............................. SKIPPED 142.6 [INFO] guacamole-auth-jdbc ................................ SKIPPED 142.6 [INFO] guacamole-auth-jdbc-base ........................... SKIPPED 142.6 [INFO] guacamole-auth-jdbc-mysql .......................... SKIPPED 142.6 [INFO] guacamole-auth-jdbc-postgresql ..................... SKIPPED 142.6 [INFO] guacamole-auth-jdbc-sqlserver ...................... SKIPPED 142.6 [INFO] guacamole-auth-jdbc-dist ........................... SKIPPED 142.6 [INFO] guacamole-auth-json ................................ SKIPPED 142.6 [INFO] guacamole-auth-ldap ................................ SKIPPED 142.6 [INFO] guacamole-auth-quickconnect ........................ SKIPPED 142.6 [INFO] guacamole-auth-sso ................................. SKIPPED 142.6 [INFO] guacamole-auth-sso-base ............................ SKIPPED 142.6 [INFO] guacamole-auth-sso-cas ............................. SKIPPED 142.6 [INFO] guacamole-auth-sso-openid .......................... SKIPPED 142.6 [INFO] guacamole-auth-sso-saml ............................ SKIPPED 142.6 [INFO] guacamole-auth-sso-dist ............................ SKIPPED 142.6 [INFO] guacamole-auth-totp ................................ SKIPPED 142.6 [INFO] guacamole-history-recording-storage ................ SKIPPED 142.6 [INFO] guacamole-vault .................................... SKIPPED 142.6 [INFO] guacamole-vault-base ............................... SKIPPED 142.6 [INFO] guacamole-vault-ksm ................................ SKIPPED 142.6 [INFO] guacamole-vault-dist ............................... SKIPPED 142.6 [INFO] guacamole-example .................................. SKIPPED 142.6 [INFO] guacamole-playback-example ......................... SKIPPED 142.6 [INFO] ------------------------------------------------------------------------ 142.6 [INFO] BUILD FAILURE 142.6 [INFO] ------------------------------------------------------------------------ 142.6 [INFO] Total time: 02:17 min 142.6 [INFO] Finished at: 2024-07-01T01:01:18Z 142.6 [INFO] ------------------------------------------------------------------------ 142.6 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project guacamole: Compilation failure 142.6 [ERROR] error: warnings found and -Werror specified 142.6 [ERROR] 142.6 [ERROR] -> [Help 1] 142.6 [ERROR] 142.6 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 142.6 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 142.6 [ERROR] 142.6 [ERROR] For more information about the errors and possible solutions, please read the following articles: 142.6 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 142.6 [ERROR] 142.6 [ERROR] After correcting the problems, you can resume the build with the command 142.6 [ERROR] mvn <args> -rf :guacamole ------ Dockerfile:69 -------------------- 67 | 68 | # Run the build itself 69 | >>> RUN /opt/guacamole/bin/build-guacamole.sh "$BUILD_DIR" /opt/guacamole 70 | 71 | # For the runtime image, we start with the official Tomcat distribution -------------------- ERROR: failed to solve: process "/bin/sh -c /opt/guacamole/bin/build-guacamole.sh \"$BUILD_DIR\" /opt/guacamole" did not complete successfully: exit code: 1 -Nathaniel Belles > On Jun 29, 2024, at 4:35 PM, Michael Jumper <mjum...@apache.org> wrote: > > The script does likely need to be updated for some of the recent improvements > to the Docker image, but I think you may be building in-progress, unreleased > changes from the "main" branch in git. > > There should be no issues with the images in Docker Hub, nor with the > released source (such as the 1.5.5 tag or the source tarballs in the release > archives). > > Are you seeing this with the released source/image? > > - Mike > > > On June 28, 2024 9:21:35 PM PDT, Nathaniel Belles > <mon99keymon99...@gmail.com> wrote: >> Hi all, >> >> I'm reaching out because I believe I might have found an oversight in the >> recent upgrades that were made to the docker build process that need some >> updating. I was trying to deploy a new instance of guacamole in docker but I >> found that I wasn't able to generate a PostgreSQL database. I was running >> the `docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh >> --postgresql > initdb.sql` command to build the initial database script but >> it failed saying `cat: '/opt/guacamole/postgresql/schema/*.sql': No such >> file or directory`. I inspected the deployment and found that the >> `/opt/guacamole/postresql/` directory no longer exists in the current docker >> implementation. I believe the schema for the databases has been moved to >> `/opt/guacamole/extensions/guacamole-auth-jdbc/postgresql/schema` (and >> similar for the other database frameworks) but was never updated in the >> `/opt/guacamole/bin/initdb.sh` script. >> >> Am I correct that the `/opt/guacamole/bin/initdb.sh` script needs to be >> updated to reflect the new schema locations for generating the database? >> >> Thanks. >> >> -Nathaniel Belles >>