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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【ERROR】OPatch failed with error code 73ErrorAI
- owncloud http 413CloudHTTP
- OPatch failed with error code 73AIError
- GPG key retrieval failed: [Errno 14] HTTP Error 404: Not FoundAIHTTPError
- weblogic報錯: OPatch failed with error code 73WebAIError
- OPatch failed with error code 73(OracleHomeInventory gets null oracleHomeInfo)AIErrorOracleNull
- "OPatch failed with error code 73"故障一例AIError
- LeetCode 413 Arithmetic SlicesLeetCode
- OPatch failed with error code 73 (These not-installed components)AIError
- oem12c opatchauto failed with error code 135AIError
- error: RPC failed; curl 18 transfer closed with outstanding read data remainingErrorRPCAIREM
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- OPatch failed with error code 135, Given 'ocmrf' file does not existsAIError
- 記一次OPatch failed with error code 73錯誤AIError
- opatch error code 73 PrereqSession failed Invalid patch location 解決ErrorSessionAI
- [ERROR] Failed to open logErrorAI
- Navicat tnt版本提示“failed to save password error code”的解決辦法AIError
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- http://gitlab.maclove.comHTTPGitlabMac
- Cargo invocation has failed: Error: exit code: 101.解決辦法CargoAIError
- Error: failed PB timebomb checkErrorAI
- RPC:authentication error:why = server rejected credentialRPCErrorServer
- maridb Error 'Operation DROP USER failed forErrorAI
- Opiino: Attach Failed! Error=-1 Ifvp=0AIError
- Job for mysqld.service failed because the control process exited with error code錯誤解決MySqlAIError
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- Playrix Codescapes Cup (Codeforces Round #413, rated, Div. 1 + Div. 2) B
- 上傳報錯 Status Code: 413 Payload Too Large 請教!
- HTTP和RPC的優缺點HTTPRPC
- 【Lintcode】1615. The Result of Investment
- perror error codeError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Android 3.0 DELETE_FAILED_INTERNAL_ERRORAndroiddeleteAIError
- ORA-00600: internal error code, arguments: [12235], [], [], [], [], [], [], []Error
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解決方法iOSErrorAI
- n [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoAIExceptionRPC