Asp.net

在中止部署期間,某些實例可能已經部署了新的應用程序版本

  • January 12, 2022

我正在嘗試將 ASP.NET 應用程序部署到 AWS。當我按下部署按鈕時出現錯誤

在中止部署期間,某些實例可能已經部署了新的應用程序版本。為確保所有實例都執行相同的版本,請重新部署適當的應用程序版本。

我不知道我在哪裡犯了錯誤,出了什麼問題任何評論?

就我而言,這是Microsoft.Powershell.Archive.

https://superuser.com/questions/1382839/zip-files-expand-with-backslashes-on-linux-no-subdirectories

我從日誌文件中找到這些消息:/var/log/eb-engine.log

An error occurred during execution of command [app-deploy] - [StageJavaApplication]. Stop running the command. Error: Command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /tmp/extracted_app_source_bundle failed with error exit status 1. Stderr:warning:  /opt/elasticbeanstalk/deployment/app_source_bundle appears to use backslashes as path separators

我可以成功部署 zip 文件 - 由其他程序存檔。

@user2763557

我知道這個問題已經很老了,但是我在嘗試通過程式碼管道從 Github 部署我的程式碼時遇到了類似的問題。

但我解決了這個問題。這是一個錯誤,當我在 Elastic Beanstalk 上執行 7.4 時,composer 嘗試安裝 PHP 版本 7.3 時發生。

所以解決其他類似問題的一個好方法是下載 Elastic Beanstalk 中的完整日誌並打開eb-engine.log並查找類似我的錯誤:

問題 1 - 這個包需要 php 7.3.* 但您的 PHP 版本 (7.4.4) 不滿足 > 要求。

2020/05/08 12:38:42.162732

$$ INFO $$執行清理邏輯

2020/05/08 12:38:42.162814$$ INFO $$CommandService 響應:{“status”:“FAILURE”,“api_version”:“1.0”,“re​​sults”:$$ {“status”:“FAILURE”,“msg”:“Engine >execution has encountered an error.”,“returncode”:1,“events”:[]} $$}

那是我的錯誤,它停止程式碼管道部署過程並引發了錯誤。我希望這可以幫助某人。

引用自:https://stackoverflow.com/questions/51155927