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

sbt ghpagesPushSite failed for the 1.10.0 release #1597

Closed
mkurz opened this issue Apr 12, 2024 · 5 comments · Fixed by #1619
Closed

sbt ghpagesPushSite failed for the 1.10.0 release #1597

mkurz opened this issue Apr 12, 2024 · 5 comments · Fixed by #1619
Labels
bug project General project issues

Comments

@mkurz
Copy link
Member

mkurz commented Apr 12, 2024

https://github.com/sbt/sbt-native-packager/actions/runs/8661198045/job/23750625200#step:10:1

Click here for the log
Run sbt ghpagesPushSite
  sbt ghpagesPushSite
  shell: /usr/bin/bash -e {0}
  env:
    CI: true
    JAVA_HOME: /home/runner/.jabba/jdk/[email protected]
    
    
[info] welcome to sbt 1.9.9 (AdoptOpenJDK Java 1.8.0_292)
[info] loading settings for project sbt-native-packager-build from plugins.sbt ...
[info] loading project definition from /home/runner/work/sbt-native-packager/sbt-native-packager/project
[info] loading settings for project sbt-native-packager from build.sbt ...
[info] set current project to sbt-native-packager (in build file:/home/runner/work/sbt-native-packager/sbt-native-packager/)
[info] Generating Sphinx html documentation...
[info] Main Scala API documentation to /home/runner/work/sbt-native-packager/sbt-native-packager/target/scala-2.12/sbt-1.0/api...
[error] Cloning into '.'...
[error] Warning: Permanently added the ECDSA host key for IP address '140.82.114.3' to the list of known hosts.
[error] [email protected]: Permission denied (publickey).
[error] fatal: Could not read from remote repository.
[error] Please make sure you have the correct access rights
[error] and the repository exists.
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/archetypes/java_server/customize.rst:123: WARNING: Inline literal start-string without end-string.
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/formats/docker.rst:149: WARNING: Inline emphasis start-string without end-string.
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/formats/docker.rst:149: WARNING: Inline emphasis start-string without end-string.
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/formats/windows.rst:119: WARNING: Inline literal start-string without end-string.
[error] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/recipes/package_configuration.rst:101: ERROR: Error in "code-block" directive:
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/archetypes/java_server/customize.rst:7: WARNING: unknown document: 'java_app/index.rst'
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/sphinx/formats/docker.rst:181: WARNING: undefined label: 'init support'
[info] Sphinx html documentation generated: /home/runner/work/sbt-native-packager/sbt-native-packager/target/sphinx/html
[info] Sphinx documentation generated: /home/runner/work/sbt-native-packager/sbt-native-packager/target/sphinx/docs
[warn] 5 feature warnings; re-run with -feature for details
model contains 192 documentable templates
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:27:21: Variable 1 undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   TARGET_FILE="$1"
[warn]                     ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:29:23: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   cd "$(dirname "$TARGET_FILE")"
[warn]                       ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:30:32: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   TARGET_FILE=$(basename "$TARGET_FILE")
[warn]                                ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:33:20: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   while [ -L "$TARGET_FILE" -a $COUNT -lt 100 ]
[warn]                    ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:33:37: Variable COUNT undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   while [ -L "$TARGET_FILE" -a $COUNT -lt 100 ]
[warn]                                     ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:35:36: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *       TARGET_FILE=$(readlink "$TARGET_FILE")
[warn]                                    ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:36:27: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *       cd "$(dirname "$TARGET_FILE")"
[warn]                           ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:37:36: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *       TARGET_FILE=$(basename "$TARGET_FILE")
[warn]                                    ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:38:21: Variable COUNT undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *       COUNT=$(($COUNT + 1))
[warn]                     ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:41:14: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   if [ "$TARGET_FILE" == "." -o "$TARGET_FILE" == ".." ]; then
[warn]              ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:41:39: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   if [ "$TARGET_FILE" == "." -o "$TARGET_FILE" == ".." ]; then
[warn]                                       ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:42:14: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *     cd "$TARGET_FILE"
[warn]              ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:45:27: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *     TARGET_FILEPATH=/$TARGET_FILE
[warn]                           ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:48:24: Variable TARGET undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   *   echo "$(pwd -P)/$TARGET_FILE"
[warn]                        ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:52:36: Variable 0 undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * real_script_path="$(realpath "$0")"
[warn]                                    ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:53:39: Variable real undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * app_home="$(realpath "$(dirname "$real_script_path")")"
[warn]                                       ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:54:27: Variable app_home undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * lib_dir="$(realpath "${app_home}/../lib")"
[warn]                           ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:56:6: Variable {template_declares undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * ${{template_declares}}
[warn]      ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:58:22: Variable app undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * java -classpath $app_classpath $app_mainclass $@
[warn]                      ^
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/scripts/AshScriptPlugin.scala:58:37: Variable app undefined in comment for object AshScriptPlugin in object AshScriptPlugin
[warn]   * java -classpath $app_classpath $app_mainclass $@
[warn]                                     ^
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeDmg(target:".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeDmg(target:".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeDmg(target:".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeNativeZip(File,".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeNativeZip(File,".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeNativeZip(File,".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeZip(File,".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeZip(File,".
[warn] Could not find any member to link for "com.typesafe.sbt.packager.universal.Archives.makeZip(File,".
[warn] /home/runner/work/sbt-native-packager/sbt-native-packager/src/main/scala/com/typesafe/sbt/packager/archetypes/MaintainerScriptHelper.scala:61:42: Variable (packageName in Debian).value undefined in comment for method maintainerScriptsAppend in trait MaintainerScriptHelper
[warn]     *    Postinst -> s"echo 'installing ${(packageName in Debian).value}'"
[warn]                                          ^
[warn] 31 warnings found
[info] Main Scala API documentation successful.
[error] Nonzero exit code (128) running git.
[error] (ghpagesUpdatedRepository) Nonzero exit code (128) running git.
[error] Total time: 15 s, completed Apr 12, 2024 11:19:55 AM

Very likely this is because we upgraded sbt-ghpages and sbt-site in

-addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
+addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
-addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.0")
+addSbtPlugin("com.github.sbt" % "sbt-site-sphinx" % "1.7.0")

Need to investigate....

@mkurz
Copy link
Member Author

mkurz commented Apr 12, 2024

@muuki88 Any idea what is going on here?

@muuki88
Copy link
Contributor

muuki88 commented Apr 12, 2024

I assume that the SSH key that is provided is not properly configured somehow.

@muuki88 muuki88 added bug project General project issues labels Apr 12, 2024
@dwickern
Copy link
Collaborator

[error] Cloning into '.'...
[error] Warning: Permanently added the ECDSA host key for IP address '140.82.114.3' to the list of known hosts.
[error] [email protected]: Permission denied (publickey).
[error] fatal: Could not read from remote repository.
[error] Please make sure you have the correct access rights
[error] and the repository exists.

The action currently works by installing the SSH key from secrets.SSH_KEY. SSH_KEY was last updated 4 years ago so it might have expired.

Alternatively, other projects configure sbt-ghpages using GITHUB_TOKEN or RELEASE_TOKEN instead of SSH keys
https://github.com/search?q=ghpagesPushSite+path%3A%2F%5E.github%5C%2Fworkflows%5C%2F.*%5C.yml%2F&type=code

@muuki88
Copy link
Contributor

muuki88 commented Apr 12, 2024

That's a good call. Either this or some SSH config issue.

I would highly favor something that uses GitHub token

@mkurz
Copy link
Member Author

mkurz commented Apr 13, 2024

Guys, I leave fixing this up to you, I have lots of other stuff to work on. Thanks for everything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug project General project issues
Projects
None yet
3 participants