The requested url returned error 500 gitlab

EDIT: It also happens with pulls. Summary Just upgraded to 12.2 and getting random 500 errors when using git...
Skip to content



Open


Issue created Aug 23, 2019 by Guillaume Lebigot@axelterizaki

Random error 500 when pulling/pushing to repository using HTTPS

EDIT: It also happens with pulls.

Summary

Just upgraded to 12.2 and getting random 500 errors when using git and pulling/pushing to a project using HTTPS.

Steps to reproduce

Try to pull any repository using HTTPS on http://lab.shelter.moe (self-hosted gitlab) or push to one you created there.

What is the current bug behavior?

Git commands fail with a 500 error. These errors are random as, when you try pushing again, and again, it sometimes fails during the push, and sometimes the push succeeds.

See this terminal log for an example :

$ git push -u origin master
fatal: unable to access 'https://lab.shelter.moe/axelterizaki/ultrastar2ass.git/': The requested URL returned error: 500

$ git push -u origin master
fatal: unable to access 'https://lab.shelter.moe/axelterizaki/ultrastar2ass.git/': The requested URL returned error: 500

$ git push -u origin master
Counting objects: 24, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (24/24), 25.73 KiB | 0 bytes/s, done.
Total 24 (delta 1), reused 0 (delta 0)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

$ git push -u origin master
fatal: unable to access 'https://lab.shelter.moe/axelterizaki/ultrastar2ass.git/': The requested URL returned error: 500

$ git push -u origin master
fatal: unable to access 'https://lab.shelter.moe/axelterizaki/ultrastar2ass.git/': The requested URL returned error: 500

$ git push -u origin master
Counting objects: 24, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (24/24), 25.73 KiB | 0 bytes/s, done.
Total 24 (delta 1), reused 0 (delta 0)
To https://lab.shelter.moe/axelterizaki/ultrastar2ass.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

What is the expected correct behavior?

It should be working all right as in 12.1.x

This happened ever since I upgraded Omnibus gitlab to 12.2 this morning.

Relevant logs and/or screenshots

I examined the production.log and here’s what I found when trying a git push :

Started GET "/axelterizaki/ultrastar2ass.git/info/refs?service=git-receive-pack" for 192.168.122.1 at 2019-08-23 12:55:18 +0200
Processing by Gitlab::RequestForgeryProtection::Controller#index as */*
  Parameters: {"service"=>"git-receive-pack"}
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)

Redis::CommandError (ERR value is not an integer or out of range):

lib/peek/views/redis_detailed.rb:10:in `call'
lib/gitlab/middleware/read_only/controller.rb:40:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:26:in `call'
config/initializers/fix_local_cache_middleware.rb:9:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:29:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'

Here it says it returned a 200, but my Apache frontend server returns a 500 instead :

xx.xxx.xx.xxx - - [23/Aug/2019:13:03:05 +0200] "GET /axelterizaki/ultrastar2ass.git/info/refs?service=git-receive-pack HTTP/1.1" 500 3228 "-" "git/2.19.0.windows.1"

I’m not sure what’s wrong but I guess the Redis error in production.log has something to do with it.

Output of checks

See below

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.2.0 Revision: 1c1d47c5974 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://lab.shelter.moe HTTP Clone URL: https://lab.shelter.moe/some-group/some-project.git SSH Clone URL: git@shelter.mahoro-net.org:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: gitlab, google_oauth2, twitter, github

GitLab Shell Version: 9.3.0 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories
    GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
    Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Checking Reply by email ...

IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped

Checking Reply by email ... Finished

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 5/2 ... yes 2/4 ... yes 1/6 ... yes 1/7 ... yes 1/8 ... yes 7/9 ... yes 19/10 ... yes 4/11 ... yes 22/12 ... yes 156/13 ... yes 15/14 ... yes 8/15 ... yes 5/18 ... yes 45/22 ... yes 156/23 ... yes 52/24 ... yes 52/25 ... yes 59/26 ... yes 155/28 ... yes 62/32 ... yes 62/33 ... yes 52/34 ... yes 155/35 ... yes 5/36 ... yes 54/40 ... yes 67/41 ... yes 67/43 ... yes 67/44 ... yes 156/45 ... yes 65/46 ... yes 66/47 ... yes 82/52 ... yes 96/55 ... yes 82/59 ... yes 8/65 ... yes 7/66 ... yes 5/67 ... yes 5/68 ... yes 82/69 ... yes 20/70 ... yes 45/71 ... yes 110/72 ... yes 82/73 ... yes 8/74 ... yes 8/75 ... yes 8/76 ... yes 156/77 ... yes 9/80 ... yes 66/81 ... yes 78/83 ... yes 1/87 ... yes 135/89 ... yes 126/90 ... yes 135/91 ... yes 135/92 ... yes 135/93 ... yes 1/98 ... yes 153/99 ... yes 155/100 ... yes 155/101 ... yes 5/102 ... yes 20/104 ... yes 8/106 ... yes 45/107 ... yes 102/109 ... yes 129/110 ... yes 5/111 ... yes 9/112 ... yes 198/113 ... yes 102/114 ... yes 198/115 ... yes 193/116 ... yes 202/117 ... yes 45/118 ... yes 135/119 ... yes 107/120 ... yes 107/121 ... yes 20/123 ... yes 5/129 ... yes 135/130 ... yes 5/131 ... yes 52/132 ... yes 1/133 ... yes 1/134 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 196

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

For now my only possible workaround is to migrate back to an older version (12.1) where this didn’t happen.

Edited Aug 23, 2019 by Guillaume Lebigot

Содержание

  1. The requested URL returned error: 500 when trying to push #762
  2. Comments
  3. Footer
  4. git clone / pull / push fails with error 500 ever since upgrade to 9.4.1
  5. Summary
  6. Steps to reproduce
  7. Example Project
  8. What is the current bug behavior?
  9. What is the expected correct behavior?
  10. Relevant logs and/or screenshots
  11. Output of checks
  12. Results of GitLab environment info
  13. Results of GitLab application Check
  14. Possible fixes
  15. Git the requested url returned error 500
  16. Answered by:
  17. Question
  18. Answers
  19. https clone failes with «fatal: unable to access ‘https://git.***.nl/omkelderman/testproject.git/’: The requested URL returned error: 500»
  20. Ошибка 500 на сайте: что такое и как исправить
  21. Что такое внутренняя ошибка сервера 500
  22. Как ошибка 500 влияет на SEO-продвижение
  23. Код ошибки 500: причины
  24. Что делать, если вы пользователь
  25. Перезагрузите страницу
  26. Очистите кэш и cookies браузера
  27. Что делать, если вы владелец сайта
  28. Ошибки в файле .htaccess
  29. Активирована устаревшая версия PHP
  30. Установлены некорректные права на файлы и каталоги сайта
  31. Запущено максимальное количество процессов
  32. Скрипты работают слишком медленно
  33. Ошибка 500 на сайте, созданном на WordPress

The requested URL returned error: 500 when trying to push #762

When trying to push my code into an empty repo, I get «Error: fatal: unable to access ‘http://user%40domain:***@web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git/’: The requested URL returned error: 500» (user, domain and web-server used in place of redacted info).

I’ve checked all the possible GitHub open/closed issues, Google searches and other resources I can find for the past hour and have had no luck. This is not related to the 500.19 issue getting the IIS server error.

Any help would be greatly appreciated as I’m currently at a loss.

The text was updated successfully, but these errors were encountered:

Are you able to try using a URL without the username embedded in it — e.g. http://web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git ?

(Then provide the username / password through the Git client. )

If this works, then that’s a useful datapoint for us.

Unfortunately no, neither URL work.

I’ve received a slightly more specific error this time around though from a different context. Neither URL works in either context but I get the error 500 from Brackets (the editor I’m using to write the code being pushed to my repo) which is using git.exe. When trying to do it from Git Bash I get «fatal: Authentication failed for »http://web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git’» I also get this when trying to use the embedded username URL.

This exception in the log:

Suggests that there’s something strange about the Authoriziation header which is being sent by the client (or at least, received by the server — perhaps something in between is meddling). This header should look something like Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== , and Bonobo attempts to base-64 decode the last bit- in your case it seems that’s failing.

Are you able to run a client (preferably just command-line Git) on the same machine as Bonobo, and if so, are you able to run something like Fiddler to see what the auth header actually looks like?

I ran command line git on the server running Bonobo and got the same error, when I ran Fiddler I can’t for the life of me get it to actually pick up any traffic from git. I tried it on the IIS box and on my local machine and picked up nothing from Git Bash, Git in cmd or Git in Brackets.

The most I was able to get was doing the «wrong» thing and trying to open the git URL in IE which did get me a similar 500 response in Fiddler. I got a couple 401 Unauthorized from IIS before I got the 500 error with the same System.FormatException, so maybe the cause is IIS? It didn’t actually render the error page, just the 500 exception, but I was able to see the HTML in Fiddler from the 401: «The authenticated user does not have access to a resource needed to process the request»

It’s entirely possible I’ve overlooked something during setup and will inevitably look silly for it. 😛

@jbdicarlo Thanks for persisting with this — sometimes Fiddler is tricky with local stuff.

An alternative is, from the command line, to run set GIT_CURL_VERBOSE=1 before you run the git command. Then you should get a load of trace, which will include the Authorization: Basic . base64 string. header. There should be at least two connections — the first one will fail with a 401 Unauthorized, then the second one will have the Authorization: header in it.

If you have access to some means to decode a base64 string, then you should see if it makes sense. Don’t post it here, because even though it looks like nonsense it’s actually your unencrypted username/password

Does this seem like what we’re looking for?

Yes, thanks — it looks like an IIS problem — can you check the step on this page
https://bonobogitserver.com/install/ marked «Configure Authentication»

It appears that IIS is asking the client to do NTLM rather than basic auth, and then Bonobo is being confused by that.

If you wanted to be doing Windows auth, then check out this page: https://bonobogitserver.com/windows-authentication/

The page for doing Windows auth makes no mention of changing the IIS configuration to «Enabled» (see screen shot). Is this also required?

Windows authentication should be disabled in IIS.

Only enabled in the config file.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

git clone / pull / push fails with error 500 ever since upgrade to 9.4.1

Summary

After upgrade from 9.3.2 to 9.4.1, gitlab returns an error 500 when trying to use git commands on a repository hosted on the instance, via HTTPS.

This doesn’t happen using SSH git commands.

This is a source install.

Steps to reproduce

Try to git clone any repository from http://lab.shelter.moe

Example Project

Any other project on that instance causes the problem

What is the current bug behavior?

Here’s an example, first via SSH (works) then via HTTPS (fails)

What is the expected correct behavior?

git commands via HTTPS should work as expected.

Relevant logs and/or screenshots

A git clone doesn’t produce much in production.log :

No sign of error 500 here, not sure where else could I check ?

Output of checks

Results of GitLab environment info

Results of GitLab application Check

Apart from the init scripts (I’m using systemd) and mail_room (not related here, and it actually works), everything seems good.

Possible fixes

Since it works via SSH, I’m thinking a possible proxy issue. I’m using apache but haven’t touched my config for a while.

The only thing that has changed between yesterday and today is I upgraded to the latest version of gitlab.

No DB migrations seem pending either as I have run db:migrate as told in the upgrade document :

I’m using apache instead of nginx as a frontend, but can’t find any error in logs.

Here’s my apache config for information :

Any help would be appreciated on this issue. If all else fails, I could always rollback since nothing has been written to repositories since the upgrade, but I’m not sure how to achieve this. (I ran the backup command before upgrading)

Источник

Git the requested url returned error 500

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Unable to Push source control. this has been working for years and unsure what changed or how to debug. I am able to login to Bonobo.Git.Server. any thoughts or help is greatly appreciated.

Opening repositories:
C:UsersJBrownDocumentsDotNet-ProjectsWindowsApplication1
Pushing master
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
the remote end hung up unexpectedly
the remote end hung up unexpectedly
RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
Pushing to http://servername/Bonobo.Git.Server/WindowsApplication1.git
Everything up-to-date

Work Smarter Not Harder

Answers

Welcome to MSDN forum.

Actually, HTTP 500 error is related to web server, it means something has gone wrong on the website’s server. So, normally, this issue isn’t caused by you or your project, I think there is something wrong with server.

No matter how you change/debug on your side, if you don’t check the server, this issue maybe couldn’t be solved. So I suggest you should check/confirm if there is something wrong with server.

BTW, since your issue is more related to Git Server, I recommend you could start a new thread in Stack Overflow tagged git or GitLab and seek for a more professional help.

Источник

https clone failes with «fatal: unable to access ‘https://git.***.nl/omkelderman/testproject.git/’: The requested URL returned error: 500»

When I clone (haven’t tested push or pull yet) a repo with HTTPS git fails with the following message:

(I removed my domain ^ ^ , cause why not)

I should tell that with my setup currently unicorn only listens on a domain socket and not on a TCP port (I like to use as few TCP-ports as possible) For this to work I had to edit the gitlab-shell-config to set gitlab_url to my external domain, since thats the only TCP-endpoint there is. This works completely fine and always has been. So when this gitlab-git-http-server thing got added to gitlab, I thought, lets do the same for this (cause obviously it didnt work since it tried to connect to localhost:8080 on which something else is doing something). I changed /etc/default/gitlab and set the -authBackend to the external domain as well, just as I did with gitlab-shell.

So the https-requests from the git-client are reaching the gitlab-git-http-server , since my gitlab-git-http-server.log file is full with lines like

Same goes for my access.log of nginx, it also lists the same GET-requests of above (obviously, since nginx has to handle these requests as well since there is no direct connection possible to the unicorn-server)

But than I opened my error.log of nginx and it contained the following line:

So nginx is cutting of the connection due to, what? To many simultaneously open connections? (It says files, but yeah, on linux everything is a file right?)

I guess the most obvious solution here would be to configure unicorn to listen on a TCP-port again (yay for direct connections without having nginx in between them for both this and gitlab-shell). But like I said before, I don’t like to use TCP-ports for things that are basically just internal connections.

An other solution would be to allow the -authBackend to be a unix-domain-socket. Not sure if that is already possible.

And maybe I could tweak some nginx-settings to allow more.. uhm, yeah more what? 😛 I have googled a bit on that error and found some config-changes, but I’m not sure if that would have a negative effect. I can imagine that that limit is there to prevent flood-attacks on the webserver. Idk, I’m a bit of a noob on that matter.

Источник

Ошибка 500 на сайте: что такое и как исправить

В статье мы расскажем, как исправить ошибку (код состояния) 500 со стороны пользователя и администратора сайта, а также подробно разберём, что такое ошибка запроса 500.

Что такое внутренняя ошибка сервера 500

Код ошибки 5хх говорит о том, что браузер отправил запрос корректно, но сервер не смог его обработать. Что значит ошибка 500? Это проблема сервера, причину которой он не может распознать.

Сообщение об ошибке сопровождается описанием. Самые популярные варианты:

  • Внутренняя ошибка сервера 500,
  • Ошибка 500 Internal Server Error,
  • Временная ошибка (500),
  • Внутренняя ошибка сервера,
  • 500 ошибка сервера,
  • Внутренняя ошибка HTTP 500,
  • Произошла непредвиденная ошибка,
  • Ошибка 500,
  • HTTP status 500 internal server error (перевод ― HTTP статус 500 внутренняя ошибка сервера).

Дизайн и описание ошибки 500 может быть любым, так как каждый владелец сайта может создать свою версию страницы. Например, так выглядит страница с ошибкой на REG.RU:

Как ошибка 500 влияет на SEO-продвижение

Для продвижения сайта в поисковых системах используются поисковые роботы. Они сканируют страницы сайта, проверяя их доступность. Если страница работает корректно, роботы анализируют её содержимое. После этого формируются поисковые запросы, по которым можно найти ресурс в поиске.

Когда поисковый робот сканирует страницу с ошибкой 500, он не изменяет её статус в течение суток. В течение этого времени администратор может исправить ошибку. Если робот перейдёт на страницу и снова столкнётся с ошибкой, он исключит эту страницу из поисковой выдачи.

Проверить, осталась ли страница на прежних позициях, можно с помощью Google Search Console. Если робот исключил страницу из поисковой выдачи, её можно добавить снова.

Код ошибки 500: причины

Если сервер вернул ошибку 500, это могло случиться из-за настроек на web-хостинге или проблем с кодом сайта. Самые распространённые причины:

  • ошибки в файле .htaccess,
  • неподходящая версия PHP,
  • некорректные права на файлы и каталоги,
  • большое количество запущенных процессов,
  • большие скрипты,
  • несовместимые или устаревшие плагины.

Решить проблему с сервером можно только на стороне владельца веб-ресурса. Однако пользователь тоже может выполнить несколько действий, чтобы продолжить работу на сайте.

Что делать, если вы пользователь

Если на определённом ресурсе часто возникает ошибка 500, вы можете связаться с владельцем сайта по инструкции.

Перезагрузите страницу

Удаленный сервер возвращает ошибку не только из-за серьёзных проблем на сервере. Иногда 500 ошибка сервера может быть вызвана небольшими перегрузками сайта.

Чтобы устранить ошибку, перезагрузите страницу с помощью сочетания клавиш:

  • на ПК — F5,
  • на ноутбуке — Fn + F5,
  • на устройствах от Apple — Cmd + R.

Обратите внимание! Если вы приобретаете товары в интернет-магазине и при оформлении заказа появляется 500 Internal Server Error (перевод — внутренняя ошибка сервера), при перезагрузке страницы может создаться несколько заказов. Поэтому сначала проверьте, оформился ли ваш предыдущий заказ. Если нет, попробуйте оформить заказ заново.

Очистите кэш и cookies браузера

Кэш и cookies сохраняют данные посещаемых сайтов и данные аутентификаций, чтобы в будущем загружать веб-ресурсы быстрее. Если на ресурсе уже был статус ошибки 500, при повторном входе на сайт может загружаться старая версия страницы с ошибкой из кэша, хотя на самом деле страница уже работает. Очистить кэш и куки браузера вам поможет инструкция.

Если ни одно из этих действий не решило проблему, значит, некорректно работает сам сервер сайта. Вернитесь на страницу позже, как только владелец решит проблему.

Что делать, если вы владелец сайта

В большинстве случаев устранить проблему может только владелец сайта. Как правило, ошибка связана с проблемами в коде. Реже проблемы могут быть на физическом сервере хостинг-провайдера.

Ниже рассмотрим самые популярные причины и способы решения.

Ошибки в файле .htaccess

Неверные правила в файле .htaccess — частая причина возникновения ошибки. Чтобы это проверить, найдите .htaccess в файлах сайта и переименуйте его (например, в test ). Так директивы, прописанные в файле, не повлияют на работу сервера. Если сайт заработал, переименуйте файл обратно в .htaccess и найдите ошибку в директивах. Если вы самостоятельно вносили изменения в .htaccess, закомментируйте новые строки и проверьте доступность сайта.Также может помочь замена текущего файла .htaccess на стандартный в зависимости от CMS.

Найти директиву с ошибкой можно с помощью онлайн-тестировщика. Введите содержимое .htaccess и ссылку на сайт, начиная с https://. Затем нажмите Test:

Произошла непредвиденная ошибка

На экране появится отчёт. Если в .htaccess есть ошибки, они будут выделены красным цветом:

500 ошибка nginx

Активирована устаревшая версия PHP

Устаревшие версии PHP не получают обновления безопасности, работают медленнее и могут вызывать проблемы с плагинами и скриптами. Возможно, для работы вашего веб-ресурса нужна более новая версия PHP. Попробуйте сменить версию PHP на другую по инструкции.

Установлены некорректные права на файлы и каталоги сайта

В большинстве случаев корректными правами для каталогов являются «755», для файлов — «644». Проверьте, правильно ли они установлены, и при необходимости измените права на файлы и папки.

Запущено максимальное количество процессов

На тарифах виртуального хостинга REG.RU установлены ограничения на количество одновременно запущенных процессов. Например, на тарифах линейки «Эконом» установлено ограничение в 18 одновременно запущенных процессов, на тарифах «+Мощность» ― 48 процессов. Если лимит превышен, новый процесс не запускается и возникает системная ошибка 500.

Такое большое число одновременных процессов может складываться из CRON-заданий, частых подключений с помощью почтовых клиентов по протоколу IMAP, подключения по FTP или других процессов.

Чтобы проверить количество процессов, подключитесь по SSH. Выполните команду:

Вместо u1234567 укажите ваш логин хостинга: Как узнать логин хостинга.

Чтобы посмотреть, какие процессы запущены, введите команду:

Вместо u1234567 укажите логин услуги хостинга.

Командная строка отобразит запущенные процессы:

  • u1234567 — логин услуги хостинга,
  • 40522 — PID процесса,
  • S — приоритет процесса,
  • /usr/libexec/sftp-server — название процесса.

Процесс можно завершить командой kill , например:

Вместо 40522 укажите PID процесса.

Чтобы решить проблему, вы также можете:

  • увеличить интервал запуска заданий CRON,
  • ограничить количество IMAP-соединений в настройках почтового клиента. Подробнее в статье Ограничение IMAP-соединений,
  • проанализировать запущенные процессы самостоятельно или обратившись за помощью к разработчикам сайта.

Если вам не удалось самостоятельно устранить ошибку 500, обратитесь в техподдержку.

Скрипты работают слишком медленно

На каждом виртуальном хостинге есть ограничения на время выполнения скрипта. Если за установленное время скрипт не успевает выполниться, возникает ошибка сервера 500. Для решения проблемы обратитесь к разработчику сайта и оптимизируйте скрипты. Если оптимизировать нельзя, перейдите на более мощный вид сервера.

У пользователей VPS есть возможность увеличить максимальное использование оперативной памяти на процесс, но лучше делать скрипты меньшего размера.

Ошибка 500 на сайте, созданном на WordPress

WordPress предлагает много плагинов для создания хорошего сайта. Они значительно расширяют возможности CMS. Однако они же могут нарушать работу сайта и вызывать ошибку 500. Вызвать ошибку могут как недавно установленные плагины, так и старые.

Для начала проверьте, нужно ли обновить плагины. Часто устаревшие плагины перестают работать и вызывают проблемы работы сайта. Если все плагины обновлены, но 500 Internal Server Error остаётся, отключите все плагины, чтобы убедиться, что именно они мешают работе сайта. Как только станет понятно, что виноват один из плагинов, отключайте их по очереди, пока не найдёте тот, который нарушает работу сервера.

Нажмите Деактивировать у плагина, который, как вам кажется, повлиял на работу сайта:

Если все ваши действия не решили проблему или вы не уверены в своих технических знаниях, обратитесь к службе технической поддержки. Сообщите время обнаружения проблемы и опишите все действия, которые вы предприняли перед обращением. Специалисты сделают детальную проверку настроек вашего сайта и при необходимости обратятся к администраторам сервера на стороне хостинг-провайдера.

Источник

We currently use SubVersion but are looking to migrate to a Git-based solution in order to be able to carry out pre-commit code reviews.
The requirements are that the central Git repository is hosted on-premises, has a visual front-end to allow management of projects, and uses Active Directory authentication.

As a trial, I have installed GitLab EE on a virtual machine running Ubuntu server 18.04.
I have set up AD authentication using the following config:

gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
 main:
  label: 'MyOrganisation'
  host: '172.16.0.6'
  port: 389
  uid: 'sAMAccountName'
  bind_dn: 'CN=ldapbinduser,CN=Users,DC=myorganisation,DC=com'
  password: 'password' 
  timeout: 30
  active_directory: true
  allow_username_or_mail_login: false
  lowercase_usernames: true
  block_auto_created_users: true
  base: 'OU=Software,OU=Engineering,DC=myorganisation,DC=com'
  group_base: 'OU=Software,OU=Engineering,DC=myorganisation,DC=com'
  admin_group: 'internal software dept'
EOS

This has been partially successful. A MyOrganisation tab appears in the GitLab logon page and members of the Software group are able to log on using their AD logon and password while non-members are not. Members of the “Internal Software Dept” group are not automatically assigned admin rights, but that’s fine because we can add them manually.

The problem comes when trying to push the history of an SVN repo into GitLab, or clone a repository. I have created an Internal Software group in GitLab and added a TestProject project to it with a readme.txt file. On my Windows 10 PC I have installed the Git Credential Manager for Windows. When I attempt to clone this to my PC using:
git clone http://gitlab/internal-software/testproject.git
I receive a message of :

fatal: unable to access ‘http://gitlab/internal-software/testproject.git/’: The requested URL returned error: 500
WireShark shows two attempts to connect with a 401 – Unauthorized response to the first, followed by a 500 – Internal Server Error response to the second:

1   local IP    gitlab IP   TCP 66  59710 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 WS=256 SACK_PERM=1
2   gitlab IP   local IP    TCP 66  80 → 59710 [SYN, ACK] Seq=0 Ack=1 Win=29200 Len=0 MSS=1460 SACK_PERM=1 WS=128
3   local IP    gitlab IP   TCP 54  59710 → 80 [ACK] Seq=1 Ack=1 Win=525568 Len=0
4   local IP    gitlab IP   HTTP    241 GET /internal-software/testproject.git/info/refs?service=git-upload-pack HTTP/1.1
5   gitlab IP   local IP    TCP 60  80 → 59710 [ACK] Seq=1 Ack=188 Win=30336 Len=0
6   gitlab IP   local IP    HTTP    618 HTTP/1.1 401 Unauthorized  (text/plain)
7   local IP    gitlab IP   TCP 54  59710 → 80 [ACK] Seq=188 Ack=565 Win=524800 Len=0
8   local IP    gitlab IP   HTTP    292 GET /internal-software/testproject.git/info/refs?service=git-upload-pack HTTP/1.1 
9   gitlab IP   local IP    TCP 60  80 → 59710 [ACK] Seq=565 Ack=426 Win=31360 Len=0
10  gitlab IP   local IP    TCP 1514    80 → 59710 [ACK] Seq=565 Ack=426 Win=31360 Len=1460 [TCP segment of a reassembled PDU]
11  gitlab IP   local IP    TCP 1514    80 → 59710 [ACK] Seq=2025 Ack=426 Win=31360 Len=1460 [TCP segment of a reassembled PDU]
12  gitlab IP   local IP    HTTP    309 HTTP/1.1 500 Internal Server Error  (text/html)
13  local IP    gitlab IP   TCP 54  59710 → 80 [ACK] Seq=426 Ack=3740 Win=525568 Len=0
14  local IP    gitlab IP   TCP 54  59710 → 80 [RST, ACK] Seq=426 Ack=3740 Win=0 Len=0

The content of the 500 – Internal Server Error response is the standard GitLab 500 – “Whoops, something went wrong on our end” page.

On the server, I went through the .log files in var/logs/gitlab/gitlab-rails and found this in production_json.log:

{«method»:»GET»,»path»:»/internal-software/testproject/git/info/refs»,»format»:»/«,»controller»:»Projects::GitHttpController»,»action»:»info_refs»,»status»:401,»duration»:35.81,»view»:1.05,»db»:9.7,»time»:»2019-09-19T08:37:55.371Z»,»params»:[{«key»:»service»,»value»:git-upload-pack»},{«key»:»namespage_id»,»value»:»internal-software»},{«key»:»project_id»,»value»:»testproject.git»}],»remote_ip»:»172.16.1.46″,»user_id»:null,»username»:null,»ua»:git/2.17.0.windows.1″,»queue_duration»:null,»correlation_id»:»long_uid»}
{«method»:»GET»,»path»:»/internal-software/testproject/git/info/refs»,»format»:»/«,»controller»:»Projects::GitHttpController»,»action»:»info_refs»,»status»:500,»error»:»ArgumentError:
encryption or method MUST be
provided»,»duration»:215.3,»view»:0.0,»db»:14.11,»time»:»2019-09-19T08:37:55.803Z»,»params»:[{«key»:»service»,»value»:git-upload-pack»},{«key»:»namespage_id»,»value»:»internal-software»},{«key»:»project_id»,»value»:»testproject.git»}],»remote_ip»:»172.16.1.46″,»user_id»:null,»username»:null,»ua»:git/2.17.0.windows.1″,»queue_duration»:null,»correlation_id»:»long_uid»}

These would seem to match up to the HTTP requests and responses above. The first is the 401 and the second is the 500.

The error message is ArgumentError: encryption or method MUST be provided
I have tried searching for this on the GitLab site, Stack Overflow, Stack Exchange and some well-known search engines, but only get approximate results that don’t match my problem.

When I make Eclipse -> File -> Import -> Projects -> Projects from Git -> Clone URI -> enter repository HTTPS URI from Gitlab, I get error:

Possible reasons:
Incorrect URL
No network connection (e.g. wrong proxy settings)
SSL host could not be verified (set http.sslVerify=false in Git configuration)

I have added http.sslVerify false in Eclipse configuration but it still does not work.

If I make git clone https://my.example.com/gitlab/root/repository.git in cmd, I get:

Cloning into ‘repository’…
fatal: unable to access ‘https://my.example.com/gitlab/root/repository.git’: The requested URL returned error: 500

Gitlab production logs show:

Processing by Projects::GitHttpController#info_refs as HTML
Parameters: {«service»=>»git-upload-pack», «namespace_id»=>»java», «project_id»=>»project.git»}
Completed 500 Internal Server Error in 102ms (ActiveRecord: 2.5ms)
JWT::DecodeError (Nil JSON web token):
lib/gitlab/workhorse.rb:120:in ‘verify_api_request!’
app/controllers/projects/git_http_client_controller.rb:154:in ‘verify_workhorse_api!’
lib/gitlab/request_profiler/middleware.rb:15:in ‘call’
lib/gitlab/middleware/go.rb:16:in `call’

SSH URL works well.
Gitlab is used with Apache2 and HTTPS. /etc/gitlab/gitlab.rb contains:

external_url ‘https://my.example.com/gitlab’
web_server[‘username’] = ‘apache’ #’gitlab-www’
web_server[‘group’] = ‘apache’ #’gitlab-www’
nginx[‘enable’] = false
unicorn[‘listen’] = ‘127.0.0.1’
unicorn[‘port’] = 9099

/etc/apache2/apache2.conf contains:

ProxyPass /gitlab http://127.0.0.1:9099/gitlab
ProxyPassReverse /gitlab http://127.0.0.1:9099/gitlab
RequestHeader add X-Forwarded-Proto https

Used versions:

GitLab 8.14.5
GitLab Shell 4.0.3
GitLab Workhorse 1.1.1
GitLab API v3
Git 2.7.4

There is article about similar problem Fixing issues with cloning via HTTPS on GitLab but modifying /etc/gitlab/gitlab.rb gitlab-workhorse configuration didn’t help.

Similar problems:
Error 500 on git operation using HTTP(S) with Apache as Reverse Proxy

How to solve this problem?

When trying to push my code into an empty repo, I get «Error: fatal: unable to access ‘http://user%40domain:***@web-server/Bonobo.Git.Server/Dashboard_FrontEnd.git/’: The requested URL returned error: 500» (user, domain and web-server used in place of redacted info).

I’ve checked all the possible GitHub open/closed issues, Google searches and other resources I can find for the past hour and have had no luck. This is not related to the 500.19 issue getting the IIS server error.

Any help would be greatly appreciated as I’m currently at a loss.

--AppSettings.webpages:Enabled: 'false'
--AppSettings.ClientValidationEnabled: 'true'
--AppSettings.UnobtrusiveJavaScriptEnabled: 'true'
--AppSettings.UserConfiguration: '~App_Dataconfig.xml'
--AppSettings.DefaultRepositoriesDirectory: '~App_DataRepositories'
--AppSettings.GitPath: '~App_DataGitgit.exe'
--AppSettings.GitHomePath: '~App_Data'
--AppSettings.RecoveryDataPath: '~App_DataRecovery'
--AppSettings.LogDirectory: '~App_DataLogs'
--AppSettings.serilog:minimum-level: 'Information'
--AppSettings.AuthenticationProvider: 'Cookies'
--AppSettings.ImportWindowsAuthUsersAsAdmin: 'false'
--AppSettings.MembershipService: 'ActiveDirectory'
--AppSettings.ActiveDirectoryDefaultDomain: 'domain.com'
--AppSettings.ActiveDirectoryBackendPath: '~App_DataADBackend'
--AppSettings.ActiveDirectoryMemberGroupName: 'MemberGroup'
--AppSettings.ActiveDirectoryRoleMapping: 'Administrator=Admin group'
User Configuration:
--User config file: 'C:inetpubwwwrootBonobo.Git.ServerApp_Dataconfig.xml'
--User config readable: OK
--User config saveable: OK
--User config folder: Exists, 4 files, 8 entries, writeable
Repo Directory
--Configured repo path: '~App_DataRepositories'
--Effective repo path: 'C:inetpubwwwrootBonobo.Git.ServerApp_DataRepositories'
--Repo dir: Exists, 1 files, 2 entries, writeable
Git Exe
--Git path: 'C:inetpubwwwrootBonobo.Git.ServerApp_DataGitgit.exe'
--Git.exe exists: OK
Federated Authentication
--Not Enabled: 
Active Directory
--Backend folder exists: OK
--Backend folder: Exists, 0 files, 4 entries, writeable
--User count: 28
AD Teams
AD Roles
--Administrator: 10 members
Internal Membership
--Not Enabled
**********************************************************************************
Exception Log
--LogFileName: : C:inetpubwwwrootBonobo.Git.ServerApp_DataLogslog-20171119.txt
--Log File total length: 554105
--Starting log dump from : 544105
ainName)
2017-11-19 11:04:27.456 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.487 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.519 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.551 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.599 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.614 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.645 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.676 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.692 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.723 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.755 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.770 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.801 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.833 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.848 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.880 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.911 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.942 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.958 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:27.989 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:28.020 -05:00 [Error] Failed to create Directory context for domain "emaildomain.org".
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The specified domain does not exist or cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
   at Bonobo.Git.Server.Helpers.ADHelper.GetDomain(String parsedDomainName)
2017-11-19 11:04:28.117 -05:00 [Information] Searching for group "TSC_Support group" in domain "domain.com"
2017-11-19 11:05:02.447 -05:00 [Warning] GitAuth: No auth header, anon operations not allowed
2017-11-19 11:05:02.447 -05:00 [Warning] GitAuth: No auth header, anon operations not allowed
2017-11-19 11:05:02.478 -05:00 [Error] Error caught in GitController
System.FormatException: Invalid length for a Base-64 char array or string.
   at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
   at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
   at System.Convert.FromBase64String(String s)
   at Bonobo.Git.Server.GitAuthorizeAttribute.IsUserAuthorized(String authHeader, HttpContextBase httpContext)
   at Bonobo.Git.Server.GitAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)

Понравилась статья? Поделить с друзьями:
  • The requested url returned error 404 pacman
  • The requested url returned error 403 что это
  • The requested url returned error 403 github что делать
  • The requested url returned error 403 git push
  • The requested url returned error 401 unauthorized