GitLab error: RPC failed; result=22, HTTP code = 413
1.原因
上傳的請求體太大導致
2.解決辦法
a. nginx配置檔案中新增 client_max_body_size 引數 如: client_max_body_size 50M;
b. vi /etc/nginx/sites-enabled/gitlab 修改 client_max_body_size 50M;
c.vi /home/git/gitlab/config/gitlab.yml 修改 max_size: 20971520 # 20.megabytes
d.vi /home/git/gitlab/app/models/note.rb 修改 validates :attachment, file_size: { maximum: 500.megabytes.to_i }
e.重新啟動nginx 重新啟動gitlab(/etc/init.d/gitlab restart)
上傳的請求體太大導致
2.解決辦法
a. nginx配置檔案中新增 client_max_body_size 引數 如: client_max_body_size 50M;
b. vi /etc/nginx/sites-enabled/gitlab 修改 client_max_body_size 50M;
c.vi /home/git/gitlab/config/gitlab.yml 修改 max_size: 20971520 # 20.megabytes
d.vi /home/git/gitlab/app/models/note.rb 修改 validates :attachment, file_size: { maximum: 500.megabytes.to_i }
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28624388/viewspace-2143220/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Pipeline流水線透過git拉取Jenkinsfile報錯 error: RPC failed; result=22, HTTP code = 404GitJenkinsErrorRPCAIHTTP
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- 【ERROR】OPatch failed with error code 73ErrorAI
- OPatch failed with error code 73AIError
- weblogic報錯: OPatch failed with error code 73WebAIError
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- error: RPC failed; curl 18 transfer closed with outstanding read data remainingErrorRPCAIREM
- Job for docker.service failed because the control process exited with error codeDockerAIError
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- Cargo invocation has failed: Error: exit code: 101.解決辦法CargoAIError
- Navicat tnt版本提示“failed to save password error code”的解決辦法AIError
- Job for mysqld.service failed because the control process exited with error code錯誤解決MySqlAIError
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- 上傳報錯 Status Code: 413 Payload Too Large 請教!
- Error Domain=kAFAssistantErrorDomain Code=7ErrorAI
- RPC和 HTTP協議RPCHTTP協議
- logstash retrying failed action with response code: 429AI
- http://gitlab.maclove.comHTTPGitlabMac
- RPC:authentication error:why = server rejected credentialRPCErrorServer
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- [Code Composer Studio] fatal error #6001Error
- gitlab密碼更新後,使用git命令報錯remote: HTTP Basic: Access denied fatal: Authentication failed for ‘https:xxx‘Gitlab密碼REMHTTPAI
- Command CompileSwift failed with a nonzero exit code in Xcode 10CompileSwiftAIXCode
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- HTTP和RPC的優缺點HTTPRPC
- 常見 HTTP CODE 解釋HTTP
- 解決 yum clean all Error rpmdb open failedErrorAI
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- git報錯error: RPC 失敗。curl 16 Error in the HTTP2 framing layer fatal: 在引用列表之後應該有一個 flush 包GitErrorRPCHTTP
- ORA-00600: internal error code, arguments: [13011]Error
- RPC介面和http介面的區別RPCHTTP
- error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatchErrorORMVueUIAIPackage
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError