英文:
Unable to stage app: 'posix:permissions' not supported as initial attribute - when run appengineDeploy
问题
这个错误只在执行appengineStage命令时出现,只有项目中有.jsp文件才会出现。如果删除这些文件,命令会执行而不会出错。
为什么会出现这个错误?
在更新到GCloud 437后,今天遇到了一个bug:
环境:
- Windows 11
- 使用Gradle的Idea Community(https://github.com/GoogleCloudPlatform/app-gradle-plugin)
- Google Cloud SDK 437.0.0
- app-engine-java 2.0.15
- app-engine-python 1.9.105
- bq 2.0.93
- cloud-datastore-emulator 2.3.0
- core 2023.06.26
- gcloud-crc32c 1.0.0
- gsutil 5.24
错误信息:
18:41:13: 执行 'appengineDeploy'...
开始与默认模块互动...
0% 正在扫描jsp文件。
0% 正在编译jsp文件。
无法部署应用程序: 不支持'posix:permissions'作为初始属性
请查看日志 [C:\Users\xxx\AppData\Local\Temp\appcfg3398356686094508289.log] 获取更多信息。
-> 任务 :appengineStage
-> 任务 :appengineStage 失败
6个可执行任务: 2个已执行,4个已更新
构建失败。
-
发生了什么:
任务':appengineStage'执行失败。
-> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: 非零退出: 1 -
尝试:
运行时使用 --stacktrace 选项以获取堆栈跟踪。使用 --info 或 --debug 选项获取更多日志输出。使用 --scan 获取完整的洞察。 -
获取更多帮助,请访问 https://help.gradle.org
35秒内构建失败。
18:41:50: 执行完成 'appengineDeploy'。
在文件 appcfg3398356686094508289.log 中:
无法部署:
java.lang.UnsupportedOperationException: 'posix:permissions'作为初始属性不受支持
at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:497)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
at java.base/java.nio.file.Files.createTempDirectory(Files.java:966)
at com.google.appengine.repackaged.com.google.common.io.TempFileCreator$JavaNioCreator.createTempDir(TempFileCreator.java:102)
at com.google.appengine.repackaged.com.google.common.io.Files.createTempDir(Files.java:439)
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:1229)
at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:994)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:877)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:76)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:44)
at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:921)
at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:289)
at com.google.appengine.tools.admin.AppCfg.
at com.google.appengine.tools.admin.AppCfg.
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:83)
com.google.appengine.tools.admin.AdminException: 无法部署应用程序: 'posix:permissions'作为初始属性不受支持
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:82)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:44)
at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:921)
at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:289)
at com.google.appengine.tools.admin.AppCfg.
at com.google.appengine.tools.admin.AppCfg.
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:83)
Caused by: java.lang.UnsupportedOperationException: 'posix:permissions'作为初始属性不受支持
at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:497)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
at java.base/java.nio.file.Files.createTempDirectory(Files.java:966)
at com.google.appengine.repackaged.com.google.common.io.TempFileCreator$JavaNioCreator.createTempDir(TempFileCreator.java:102)
at com.google.appengine.repackaged.com.google.common.io.Files.createTempDir(Files.java:439)
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:1229)
at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:994)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:877)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:76)
... 6 more
只有在运行appengineDeploy时才会出现这个错误,appengineRun和本地explodeWar工作正常,没有错误。
英文:
This error apears on appengineStage cmd, only if project has *.jsp files. If I delete it cmd execute without error.
Why?
Ran into a bug today after update on GCloud 437:
Env:
- Windows 11
- Idea Community with Gradle (https://github.com/GoogleCloudPlatform/app-gradle-plugin)
- Google Cloud SDK 437.0.0
- app-engine-java 2.0.15
- app-engine-python 1.9.105
- bq 2.0.93
- cloud-datastore-emulator 2.3.0
- core 2023.06.26
- gcloud-crc32c 1.0.0
- gsutil 5.24
Error:
18:41:13: Executing 'appengineDeploy'...
Beginning interaction for module default...
0% Scanning for jsp files.
0% Compiling jsp files.
Unable to stage app: 'posix:permissions' not supported as initial attribute
Please see the logs [C:\Users\xxx\AppData\Local\Temp\appcfg3398356686094508289.log] for further information.
-> Task :appengineStage
-> Task :appengineStage FAILED
6 actionable tasks: 2 executed, 4 up-to-date
FAILURE: Build failed with an exception.
-
What went wrong:
Execution failed for task ':appengineStage'.
-> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1 -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 35s
18:41:50: Execution finished 'appengineDeploy'.
In file appcfg3398356686094508289.log:
Unable to stage:
java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute
at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:497)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
at java.base/java.nio.file.Files.createTempDirectory(Files.java:966)
at com.google.appengine.repackaged.com.google.common.io.TempFileCreator$JavaNioCreator.createTempDir(TempFileCreator.java:102)
at com.google.appengine.repackaged.com.google.common.io.Files.createTempDir(Files.java:439)
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:1229)
at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:994)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:877)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:76)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:44)
at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:921)
at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:289)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:148)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:88)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:83)
com.google.appengine.tools.admin.AdminException: Unable to stage app: 'posix:permissions' not supported as initial attribute
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:82)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:44)
at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:921)
at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:289)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:148)
at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:88)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:83)
Caused by: java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute
at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:497)
at java.base/java.nio.file.Files.createDirectory(Files.java:690)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
at java.base/java.nio.file.Files.createTempDirectory(Files.java:966)
at com.google.appengine.repackaged.com.google.common.io.TempFileCreator$JavaNioCreator.createTempDir(TempFileCreator.java:102)
at com.google.appengine.repackaged.com.google.common.io.Files.createTempDir(Files.java:439)
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:1229)
at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:994)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:877)
at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:76)
... 6 more
this error get only if I run appengineDeploy.
appengineEun and explodeWar localy work without error
答案1
得分: 1
有一个更新的问题。
他们建议回到之前的版本。
答案2
得分: 0
请查看GoogleCloudPlatform的帖子以获取解决方法。
英文:
see GoogleCloudPlatform post for workaround
答案3
得分: 0
我已更新组件,它可以正常运行。
gcloud components update
英文:
I've updated the components and it works.
gcloud components update
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论