Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed: /opt/homebrew/Cellar/fusionauth-app/1.53.3/java/current/conf/security/java.security: No such file or directory Error: Process completed with exit code 1. #17

Open
Aaron-Ritter opened this issue Nov 20, 2024 · 0 comments

Comments

@Aaron-Ritter
Copy link

Very frequently when automating the homebrew installation through github workflow the fusionauth instance is not starting with the error sed: /opt/homebrew/Cellar/fusionauth-app/1.53.3/java/current/conf/security/java.security: No such file or directory Error: Process completed with exit code 1.

The reason for it after debuging it is always the fact that it did not correctly download openjdk, as it can't untar it.

can the start.sh be modified to check for curl to fail and if so redownload, and if possible if the tar is failing retry the download as well?

https://github.com/sonderformat-llc/fusionauth-swift-sdk/actions/runs/11923719406/job/33250134610

+ set -e
+ [[ --debug == \-\h ]]
+ [[ --debug == \-\-\h\e\l\p ]]
+ SOURCE=start.sh
+ [[ -h start.sh ]]
+++ dirname start.sh
++ cd -P .
++ pwd
+ SCRIPT_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app/bin
+ cd /opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app/bin/../..
++ pwd
+ BASE_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3
+ cd fusionauth-app
++ pwd
+ APP_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app
+ CONFIG_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/config
+ DATA_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/data
+ JAVA_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/java
+ LOG_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/logs
+ PLUGIN_DIR=/opt/homebrew/Cellar/fusionauth-app/1.53.3/plugins
+ MARKER=fusionAuthApp87AFBG16
++ uname -s
+ OS=Darwin
+ JAVA_OPTS=' -Dfusionauth.home.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app -Dfusionauth.config.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/config -Dfusionauth.data.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/data -Dfusionauth.log.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/logs -Dfusionauth.plugin.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/plugins -Djava.awt.headless=true -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true --add-exports=java.base/sun.security.x[50](https://github.com/sonderformat-llc/fusionauth-swift-sdk/actions/runs/11923719406/job/33250134610#step:22:51)9=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -DfusionAuthApp87AFBG16'
++ echo ' -Dfusionauth.home.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app -Dfusionauth.config.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/config -Dfusionauth.data.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/data -Dfusionauth.log.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/logs -Dfusionauth.plugin.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/plugins -Djava.awt.headless=true -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -DfusionAuthApp87AFBG16'
++ tr -d '\r'
+ JAVA_OPTS=' -Dfusionauth.home.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/fusionauth-app -Dfusionauth.config.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/config -Dfusionauth.data.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/data -Dfusionauth.log.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/logs -Dfusionauth.plugin.directory=/opt/homebrew/Cellar/fusionauth-app/1.53.3/plugins -Djava.awt.headless=true -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -DfusionAuthApp87AFBG16'
+ [[ ! -d /opt/homebrew/Cellar/fusionauth-app/1.[53](https://github.com/sonderformat-llc/fusionauth-swift-sdk/actions/runs/11923719406/job/33250134610#step:22:54).3/config ]]
+ [[ ! -d /opt/homebrew/Cellar/fusionauth-app/1.53.3/data ]]
+ mkdir /opt/homebrew/Cellar/fusionauth-app/1.53.3/data
+ [[ ! -d /opt/homebrew/Cellar/fusionauth-app/1.53.3/logs ]]
+ [[ ! -d /opt/homebrew/Cellar/fusionauth-app/1.53.3/java ]]
+ CURL_OPTS='-fSL --progress-bar'
+ tty -s
+ CURL_OPTS=-sSL
+ [[ '' != 1 ]]
+ downloadJava
+ JAVA_VERSION=21.0.4+7
+ BASE_URL_PATH=https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/
+ Linux_aarch64_Filename=OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.4_7.tar.gz
+ Linux_x86_64_Filename=OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz
+ Darwin_x86_64_Filename=OpenJDK21U-jdk_x64_mac_hotspot_21.0.4_7.tar.gz
+ Darwin_arm64_Filename=OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.4_7.tar.gz
++ uname -m
+ ARCH=arm64
+ FILENAME=Darwin_arm64_Filename
+ DOWNLOAD_URL=https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.4_7.tar.gz
+ [[ ! -e /opt/homebrew/Cellar/fusionauth-app/1.53.3/java/current ]]
+ [[ Darwin == \D\a\r\w\i\n ]]
+ [[ -e /Users/runner/dev/java/current21 ]]
+ curl -sSL https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_aarch[64](https://github.com/sonderformat-llc/fusionauth-swift-sdk/actions/runs/11923719406/job/33250134610#step:22:65)_mac_hotspot_21.0.4_7.tar.gz -o /opt/homebrew/Cellar/fusionauth-app/1.53.3/java/openjdk-macos-21.0.4+7.tar.gz
+ tar xfz /opt/homebrew/Cellar/fusionauth-app/1.53.3/java/openjdk-macos-21.0.4+7.tar.gz -C /opt/homebrew/Cellar/fusionauth-app/1.53.3/java
tar: Error opening archive: Failed to open '/opt/homebrew/Cellar/fusionauth-app/1.53.3/java/openjdk-macos-21.0.4+7.tar.gz'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant