Operating heptapod docker with relative url root makes commits to mercurial repository fail
Summary
Operating heptapod docker with relative url root makes commiting or pushing to mercurial repository throw an exception in pretxnclose.heptapod_sync hook, which results in 500 error for the web interface.
Steps to reproduce
- spin up heptapod container with something like this docker-compose.yml
version: '2'
services:
heptapod:
image: octobus/heptapod:0.18.0
restart: unless-stopped
environment:
GITLAB_RELATIVE_URL_ROOT: '/gitlab'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://domain.tld/gitlab'
nginx['listen_https'] = false
ports:
- '80:80'
- '1022:22'
- start new project
- simply add README from web interface and commit
Relevant logs and/or screenshots
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
heptapod_1 | Started POST "/gitlab/api/v4/projects/root%2Ft1/repository/commits" for 172.25.0.1 at 2020-12-26 19:32:03 +0000
heptapod_1 | Processing by Gitlab::RequestForgeryProtection::Controller#index as JSON
heptapod_1 | Parameters: {"branch"=>"branch/default", "commit_message"=>"Update README.md", "actions"=>[{"action"=>"create", "file_path"=>"README.md", "content"=>"[FILTERED]", "encoding"=>"text", "last_commit_id"=>""}], "request_forgery_protection"=>{"branch"=>"branch/default", "commit_message"=>"Update README.md", "actions"=>[{"action"=>"create", "file_path"=>"README.md", "content"=>"[FILTERED]", "encoding"=>"text", "last_commit_id"=>""}]}}
heptapod_1 | Completed 200 OK in 2ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 467)
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitaly/current <==
heptapod_1 | {"correlation_id":"KN6MIicn3u3","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"HasLocalBranches","grpc.request.deadline":"2020-12-26T19:32:13Z","grpc.request.fullMethod":"/gitaly.RepositoryService/HasLocalBranches","grpc.request.glProjectPath":"root/t1","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"@hashed","grpc.service":"gitaly.RepositoryService","grpc.start_time":"2020-12-26T19:32:03Z","grpc.time_ms":3.569,"level":"info","msg":"finished unary call with code OK","peer.address":"@","pid":1553,"span.kind":"server","system":"grpc","time":"2020-12-26T19:32:03.759Z"}
heptapod_1 | {"correlation_id":"KN6MIicn3u3","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"TreeEntry","grpc.request.deadline":"2020-12-26T19:32:33Z","grpc.request.fullMethod":"/gitaly.CommitService/TreeEntry","grpc.request.glProjectPath":"root/t1","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"@hashed","grpc.service":"gitaly.CommitService","grpc.start_time":"2020-12-26T19:32:03Z","grpc.time_ms":3.356,"level":"info","msg":"finished streaming call with code OK","peer.address":"@","pid":1553,"span.kind":"server","system":"grpc","time":"2020-12-26T19:32:03.772Z"}
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/mercurial/mercurial.log <==
heptapod_1 | [2020-12-26 19:32:04 +0000] [2655] [INFO] [hgext3rd.loggingmod] jsonconf=None
heptapod_1 | [2020-12-26 19:32:04 +0000] [2655] [INFO] repo:None [hg.logging] Diverted all output to the standard Python logging module
heptapod_1 | [2020-12-26 19:32:04 +0000] [2655] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hg [hg.command] config experimental.topic.publish-bare-branch
heptapod_1 | [2020-12-26 19:32:04 +0000] [2655] [INFO] repo:None [hg.commandfinish] config experimental.topic.publish-bare-branch exited 0 after 0.61 seconds
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
heptapod_1 | hg_multi_action for @hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git start_branch_name=branch/default branch_name=branch/default starting
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitaly/current <==
heptapod_1 | {"correlation_id":"KN6MIicn3u3","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"RefExists","grpc.request.deadline":"2020-12-26T19:32:14Z","grpc.request.fullMethod":"/gitaly.RefService/RefExists","grpc.request.glProjectPath":"root/t1","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"@hashed","grpc.service":"gitaly.RefService","grpc.start_time":"2020-12-26T19:32:04Z","grpc.time_ms":2.369,"level":"info","msg":"finished unary call with code OK","peer.address":"@","pid":1553,"span.kind":"server","system":"grpc","time":"2020-12-26T19:32:04.594Z"}
heptapod_1 | {"correlation_id":"KN6MIicn3u3","grpc.code":"OK","grpc.meta.auth_version":"v2","grpc.meta.client_name":"gitlab-web","grpc.meta.deadline_type":"regular","grpc.method":"RepositoryExists","grpc.request.deadline":"2020-12-26T19:32:14Z","grpc.request.fullMethod":"/gitaly.RepositoryService/RepositoryExists","grpc.request.glProjectPath":"root/t1","grpc.request.glRepository":"project-2","grpc.request.repoPath":"@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"@hashed","grpc.service":"gitaly.RepositoryService","grpc.start_time":"2020-12-26T19:32:04Z","grpc.time_ms":0.129,"level":"info","msg":"finished unary call with code OK","peer.address":"@","pid":1553,"span.kind":"server","system":"grpc","time":"2020-12-26T19:32:04.595Z"}
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/mercurial/mercurial.log <==
heptapod_1 | [2020-12-26 19:32:05 +0000] [2661] [INFO] [hgext3rd.loggingmod] jsonconf=None
heptapod_1 | [2020-12-26 19:32:05 +0000] [2661] [INFO] repo:None [hg.logging] Diverted all output to the standard Python logging module
heptapod_1 | [2020-12-26 19:32:05 +0000] [2661] [INFO] repo:None [hg.command] share '/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hg' '/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f' --noupdate --bookmarks
heptapod_1 | [2020-12-26 19:32:05 +0000] [2661] [INFO] repo:None [hg.commandfinish] share '/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hg' '/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f' --noupdate --bookmarks exited 0 after 0.61 seconds
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
heptapod_1 | hg_multi_action for @hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git start_branch_name=branch/default branch_name=branch/default Setup done, ready to execute actions in workdir /var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f
heptapod_1 | hg_multi_action for @hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git start_branch_name=branch/default branch_name=branch/default Performing 'create' for README.md
heptapod_1 | hg_multi_action for @hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git start_branch_name=branch/default branch_name=branch/default Actions, done, now committing.
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/mercurial/mercurial.log <==
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] [hgext3rd.loggingmod] jsonconf=None
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:None [hg.logging] Diverted all output to the standard Python logging module
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.command] commit --config 'ui.username=Administrator <admin@example.com>' -m 'Update README.md' --addremove
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] calling hook precommit.heptapod_forbid_subrepos: heptapod.hooks.subrepos.forbid_commit
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.pythonhook] pythonhook-precommit: heptapod.hooks.subrepos.forbid_commit finished in 0.00 seconds
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] calling hook pretxnopen.heptapod_check_write: heptapod.hooks.perm.check_write
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.pythonhook] pythonhook-pretxnopen: heptapod.hooks.perm.check_write finished in 0.00 seconds
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] committing files:
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] README.md
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] committing manifest
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] committing changelog
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] calling hook pretxnclose.heptapod_check_publish: heptapod.hooks.check_publish.check_publish
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.pythonhook] pythonhook-pretxnclose: heptapod.hooks.check_publish.check_publish finished in 0.00 seconds
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] calling hook pretxnclose.heptapod_sync: heptapod.hooks.gitlab_mirror.mirror
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] Heptapod mirror starting
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] finding hg commits to export
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] exporting hg objects to git
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] converting revision 62205d63ab8a6f1be55ae82197fa806c01df1799
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.tagscache] writing .hg/cache/tags2 with 0 tags
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.branchcache] updated branch cache (served-topic) in 0.0003 seconds
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] heptapod_notify_gitlab heptapod.native=False
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] heptapod_notify_gitlab firing hook <heptapod.gitlab.hooks.PreReceive object at 0x7f03adb86dc0> for changes ({}, {b'refs/heads/branch/default': (b'0000000000000000000000000000000000000000', b'6303bfade00ffb81d68cab3c9f9ee657f5ee22ca')})
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] [heptapod.gitlab.hooks] testgr sending POST to 'allowed', params={'action': 'unbundle', 'changes': b'0000000000000000000000000000000000000000 6303bfade00ffb81d68cab3c9f9ee657f5ee22ca refs/heads/branch/default', 'gl_repository': 'project-2', 'project': '/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hg', 'vcs': 'hg', 'protocol': 'web', 'user_id': '1'}
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [ERROR] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] GitLab update error (GitLab 'pre-receive' hook): JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
heptapod_1 | Traceback (most recent call last):
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 781, in heptapod_notify_gitlab
heptapod_1 | code, out, err = hook((prune_reasons, converted_changes))
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 279, in __call__
heptapod_1 | ok, out, err = self.execute(changes, env=env)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 297, in execute
heptapod_1 | as_json = resp.json()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/requests/models.py", line 900, in json
heptapod_1 | return complexjson.loads(self.text, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/__init__.py", line 357, in loads
heptapod_1 | return _default_decoder.decode(s)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 337, in decode
heptapod_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 355, in raw_decode
heptapod_1 | raise JSONDecodeError("Expecting value", s, err.value) from None
heptapod_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [WARNING] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] error: pretxnclose.heptapod_sync hook raised an exception: Expecting value: line 1 column 1 (char 0)
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg.pythonhook] pythonhook-pretxnclose: heptapod.hooks.gitlab_mirror.mirror finished in 0.50 seconds
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [WARNING] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] transaction abort!
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [WARNING] repo:/var/opt/gitlab/git-data/repositories/@hashed/d4/73/d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.hgtmpeb4854ec1fc87e8fcf0685234897972f [hg] rollback completed
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:None [hg.commandexception] ** Unknown exception encountered with possibly-broken third-party extension heptapod
heptapod_1 | ** which supports versions unknown of Mercurial.
heptapod_1 | ** Please disable heptapod and try your action again.
heptapod_1 | ** If that fixes the bug please report it to the extension author.
heptapod_1 | ** Python 3.8.6 (default, Dec 20 2020, 21:43:47) [GCC 5.4.0 20160609]
heptapod_1 | ** Mercurial Distributed SCM (version 5.6.1)
heptapod_1 | ** Extensions loaded: heptapod, hggit, evolve, topic, loggingmod, share, clonebundles
heptapod_1 |
heptapod_1 | Traceback (most recent call last):
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 488, in _callcatch
heptapod_1 | return scmutil.callcatch(ui, func)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/scmutil.py", line 153, in callcatch
heptapod_1 | return func()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 469, in _runcatchfunc
heptapod_1 | return _dispatch(req)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1232, in _dispatch
heptapod_1 | return runcommand(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 917, in runcommand
heptapod_1 | ret = _runcommand(ui, options, cmd, d)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1244, in _runcommand
heptapod_1 | return cmdfunc()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1230, in <lambda>
heptapod_1 | d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py", line 1296, in commitwrap
heptapod_1 | return orig(ui, repo, *args, **opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/evolve/__init__.py", line 1157, in commitwrapper
heptapod_1 | result = orig(ui, repo, *arg, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2001, in commit
heptapod_1 | return _docommit(ui, repo, *pats, **opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2098, in _docommit
heptapod_1 | node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/cmdutil.py", line 2718, in commit
heptapod_1 | return commitfunc(ui, repo, message, matcher, opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2089, in commitfunc
heptapod_1 | return repo.commit(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py", line 464, in commit
heptapod_1 | return super(topicrepo, self).commit(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 199, in wrapper
heptapod_1 | return orig(repo.unfiltered(), *args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 2924, in commit
heptapod_1 | ms.reset()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1359, in __exit__
heptapod_1 | self.close()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py", line 44, in _active
heptapod_1 | return func(self, *args, **kwds)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py", line 519, in close
heptapod_1 | self._validatecallback[category](self)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 2248, in validate
heptapod_1 | repo.hook(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 1810, in hook
heptapod_1 | return hook.hook(self.ui, self, name, throw, **args)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 261, in hook
heptapod_1 | res = runhooks(ui, repo, htype, hooks, throw=throw, **args)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 340, in runhooks
heptapod_1 | r, raised = pythonhook(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 117, in pythonhook
heptapod_1 | r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/hooks/gitlab_mirror.py", line 13, in mirror
heptapod_1 | gitlab_mirror(ui, repo)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/__init__.py", line 143, in gitlab_mirror
heptapod_1 | git.HeptapodGitHandler(repo, repo.ui).export_commits()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 893, in export_commits
heptapod_1 | self.update_references()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 907, in update_references
heptapod_1 | self.heptapod_apply_changes(prune_reasons, changes)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 868, in heptapod_apply_changes
heptapod_1 | self.heptapod_notify_gitlab(PreReceive(self.repo),
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 781, in heptapod_notify_gitlab
heptapod_1 | code, out, err = hook((prune_reasons, converted_changes))
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 279, in __call__
heptapod_1 | ok, out, err = self.execute(changes, env=env)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 297, in execute
heptapod_1 | as_json = resp.json()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/requests/models.py", line 900, in json
heptapod_1 | return complexjson.loads(self.text, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/__init__.py", line 357, in loads
heptapod_1 | return _default_decoder.decode(s)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 337, in decode
heptapod_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 355, in raw_decode
heptapod_1 | raise JSONDecodeError("Expecting value", s, err.value) from None
heptapod_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [WARNING] repo:None [hg] ** Unknown exception encountered with possibly-broken third-party extension heptapod
heptapod_1 | ** which supports versions unknown of Mercurial.
heptapod_1 | ** Please disable heptapod and try your action again.
heptapod_1 | ** If that fixes the bug please report it to the extension author.
heptapod_1 | ** Python 3.8.6 (default, Dec 20 2020, 21:43:47) [GCC 5.4.0 20160609]
heptapod_1 | ** Mercurial Distributed SCM (version 5.6.1)
heptapod_1 | ** Extensions loaded: heptapod, hggit, evolve, topic, loggingmod, share, clonebundles
heptapod_1 | [2020-12-26 19:32:06 +0000] [2662] [INFO] repo:None [hg.commandfinish] commit --config 'ui.username=Administrator <admin@example.com>' -m 'Update README.md' --addremove exited 1 after 1.25 seconds
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
heptapod_1 | Processing by Gitlab::RequestForgeryProtection::Controller#index as JSON
heptapod_1 | Parameters: {"branch"=>"branch/default", "commit_message"=>"Update README.md", "actions"=>[{"action"=>"create", "file_path"=>"README.md", "content"=>"[FILTERED]", "encoding"=>"text", "last_commit_id"=>""}], "request_forgery_protection"=>{"branch"=>"branch/default", "commit_message"=>"Update README.md", "actions"=>[{"action"=>"create", "file_path"=>"README.md", "content"=>"[FILTERED]", "encoding"=>"text", "last_commit_id"=>""}]}}
heptapod_1 | Completed 200 OK in 1ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 145)
heptapod_1 |
heptapod_1 | Gitlab::Mercurial::HgGitRepository::HgError (Could not commit (status code 1): adding README.md
heptapod_1 | Traceback (most recent call last):
heptapod_1 | File "/opt/gitlab/embedded/bin/hg", line 43, in <module>
heptapod_1 | dispatch.run()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 113, in run
heptapod_1 | status = dispatch(req)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 303, in dispatch
heptapod_1 | ret = _runcatch(req) or 0
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 479, in _runcatch
heptapod_1 | return _callcatch(ui, _runcatchfunc)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 488, in _callcatch
heptapod_1 | return scmutil.callcatch(ui, func)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/scmutil.py", line 153, in callcatch
heptapod_1 | return func()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 469, in _runcatchfunc
heptapod_1 | return _dispatch(req)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1232, in _dispatch
heptapod_1 | return runcommand(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 917, in runcommand
heptapod_1 | ret = _runcommand(ui, options, cmd, d)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1244, in _runcommand
heptapod_1 | return cmdfunc()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py", line 1230, in <lambda>
heptapod_1 | d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py", line 1296, in commitwrap
heptapod_1 | return orig(ui, repo, *args, **opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/evolve/__init__.py", line 1157, in commitwrapper
heptapod_1 | result = orig(ui, repo, *arg, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1867, in check
heptapod_1 | return func(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2001, in commit
heptapod_1 | return _docommit(ui, repo, *pats, **opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2098, in _docommit
heptapod_1 | node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/cmdutil.py", line 2718, in commit
heptapod_1 | return commitfunc(ui, repo, message, matcher, opts)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py", line 2089, in commitfunc
heptapod_1 | return repo.commit(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py", line 464, in commit
heptapod_1 | return super(topicrepo, self).commit(*args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 199, in wrapper
heptapod_1 | return orig(repo.unfiltered(), *args, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 2924, in commit
heptapod_1 | ms.reset()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py", line 1359, in __exit__
heptapod_1 | self.close()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py", line 44, in _active
heptapod_1 | return func(self, *args, **kwds)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py", line 519, in close
heptapod_1 | self._validatecallback[category](self)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 2248, in validate
heptapod_1 | repo.hook(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py", line 1810, in hook
heptapod_1 | return hook.hook(self.ui, self, name, throw, **args)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 261, in hook
heptapod_1 | res = runhooks(ui, repo, htype, hooks, throw=throw, **args)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 340, in runhooks
heptapod_1 | r, raised = pythonhook(
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py", line 117, in pythonhook
heptapod_1 | r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/hooks/gitlab_mirror.py", line 13, in mirror
heptapod_1 | gitlab_mirror(ui, repo)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/__init__.py", line 143, in gitlab_mirror
heptapod_1 | git.HeptapodGitHandler(repo, repo.ui).export_commits()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 893, in export_commits
heptapod_1 | self.update_references()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 907, in update_references
heptapod_1 | self.heptapod_apply_changes(prune_reasons, changes)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 868, in heptapod_apply_changes
heptapod_1 | self.heptapod_notify_gitlab(PreReceive(self.repo),
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py", line 781, in heptapod_notify_gitlab
heptapod_1 | code, out, err = hook((prune_reasons, converted_changes))
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 279, in __call__
heptapod_1 | ok, out, err = self.execute(changes, env=env)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py", line 297, in execute
heptapod_1 | as_json = resp.json()
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/site-packages/requests/models.py", line 900, in json
heptapod_1 | return complexjson.loads(self.text, **kwargs)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/__init__.py", line 357, in loads
heptapod_1 | return _default_decoder.decode(s)
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 337, in decode
heptapod_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
heptapod_1 | File "/opt/gitlab/embedded/lib/python3.8/json/decoder.py", line 355, in raw_decode
heptapod_1 | raise JSONDecodeError("Expecting value", s, err.value) from None
heptapod_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
heptapod_1 | ):
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/mercurial/hg_git_repository.rb:555:in `hg_commit'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/mercurial/hg_git_repository.rb:1316:in `block in multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/mercurial/hg_git_repository.rb:683:in `hg_tmp_workdir'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/mercurial/hg_git_repository.rb:1219:in `multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/models/repository.rb:890:in `block in multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/models/repository.rb:856:in `with_cache_hooks'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `block in with_cache_hooks'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/method_call.rb:27:in `measure'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `with_cache_hooks'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/models/repository.rb:890:in `multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `block in multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/method_call.rb:27:in `measure'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `multi_action'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/services/files/multi_service.rb:41:in `commit_actions!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `block in commit_actions!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/method_call.rb:27:in `measure'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `commit_actions!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/services/files/multi_service.rb:13:in `create_commit!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `block in create_commit!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/method_call.rb:27:in `measure'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:160:in `create_commit!'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/app/services/commits/create_service.rb:30:in `execute'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/api/commits.rb:130:in `block (2 levels) in <class:Commits>'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:59:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:59:in `block (2 levels) in generate_api_method'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/notifications.rb:182:in `instrument'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:58:in `block in generate_api_method'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:341:in `execute'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:267:in `block in run'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/notifications.rb:180:in `block in instrument'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/notifications.rb:180:in `instrument'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:247:in `run'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:322:in `block in build_stack'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:35:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:35:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:35:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/api/api_guard.rb:208:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:35:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-oauth2-1.9.3/lib/rack/oauth2/server/resource.rb:20:in `_call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-oauth2-1.9.3/lib/rack/oauth2/server/resource/bearer.rb:8:in `_call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-oauth2-1.9.3/lib/rack/oauth2/server/abstract/handler.rb:17:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/error.rb:39:in `block in call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/error.rb:38:in `catch'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/error.rb:38:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape_logging-1.8.3/lib/grape_logging/middleware/request_logger.rb:60:in `block in call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape_logging-1.8.3/lib/grape_logging/middleware/request_logger.rb:58:in `catch'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape_logging-1.8.3/lib/grape_logging/middleware/request_logger.rb:58:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/middleware/base.rb:28:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/head.rb:14:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:231:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/endpoint.rb:225:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router/route.rb:58:in `exec'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:116:in `process_route'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:72:in `block in identity'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:91:in `transaction'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:70:in `identity'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:55:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:132:in `with_optimization'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/router.rb:54:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/api/instance.rb:167:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/api/instance.rb:71:in `call!'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/grape-1.4.0/lib/grape/api/instance.rb:66:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/routing/mapper.rb:48:in `serve'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/journey/router.rb:49:in `block in serve'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/journey/router.rb:32:in `each'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/journey/router.rb:32:in `serve'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/routing/route_set.rb:834:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/transaction.rb:61:in `run'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/rack_middleware.rb:16:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/request_profiler/middleware.rb:17:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-labkit-0.12.2/lib/labkit/middleware/rack.rb:19:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-labkit-0.12.2/lib/labkit/context.rb:32:in `with_context'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-labkit-0.12.2/lib/labkit/middleware/rack.rb:18:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/jira/middleware.rb:19:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/go.rb:20:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/etag_caching/middleware.rb:13:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/batch-loader-1.4.0/lib/batch_loader/middleware.rb:11:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-attack-6.3.0/lib/rack/attack.rb:97:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/apollo_upload_server-2.0.2/lib/apollo_upload_server/middleware.rb:20:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/multipart.rb:234:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/handle_null_bytes.rb:19:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-attack-6.3.0/lib/rack/attack.rb:111:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:36:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `catch'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/warden-1.2.8/lib/warden/manager.rb:34:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/tempfile_reaper.rb:17:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/etag.rb:27:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/conditional_get.rb:40:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/head.rb:14:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/read_only/controller.rb:51:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/read_only.rb:18:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/session/abstract/id.rb:269:in `context'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/session/abstract/id.rb:263:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/cookies.rb:648:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/same_site_cookies.rb:27:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/callbacks.rb:101:in `run_callbacks'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/basic_health_check.rb:25:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/rack/logger.rb:37:in `call_app'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/rack/logger.rb:26:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/tagged_logging.rb:80:in `block in tagged'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/tagged_logging.rb:28:in `tagged'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.3/lib/active_support/tagged_logging.rb:80:in `tagged'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/rack/logger.rb:26:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/request_context.rb:23:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/request_store-1.5.0/lib/request_store/middleware.rb:19:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/method_override.rb:24:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/runtime.rb:24:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-timeout-0.5.2/lib/rack/timeout/core.rb:123:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-timeout-0.5.2/lib/rack/timeout/support/timeout.rb:19:in `timeout'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-timeout-0.5.2/lib/rack/timeout/core.rb:122:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/config/initializers/fix_local_cache_middleware.rb:9:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/sendfile.rb:113:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/actionpack-6.0.3.3/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/requests_rack_middleware.rb:49:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/sentry-raven-3.0.4/lib/raven/integrations/rack.rb:51:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/engine.rb:527:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/railtie.rb:190:in `public_send'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/railties-6.0.3.3/lib/rails/railtie.rb:190:in `method_missing'
heptapod_1 | /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/release_env.rb:12:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/urlmap.rb:77:in `block in call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in `each'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/rack-2.1.4/lib/rack/urlmap.rb:61:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-puma-4.3.5.gitlab.3/lib/puma/configuration.rb:228:in `call'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-puma-4.3.5.gitlab.3/lib/puma/server.rb:722:in `handle_request'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-puma-4.3.5.gitlab.3/lib/puma/server.rb:481:in `process_client'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-puma-4.3.5.gitlab.3/lib/puma/server.rb:335:in `block in run'
heptapod_1 | /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/gitlab-puma-4.3.5.gitlab.3/lib/puma/thread_pool.rb:138:in `block in spawn_thread'
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/api_json.log <==
heptapod_1 | {"time":"2020-12-26T19:32:06.909Z","severity":"INFO","duration_s":3.52183,"db_duration_s":0.07563,"view_duration_s":3.4462,"status":500,"method":"POST","path":"/gitlab/api/v4/projects/root%2Ft1/repository/commits","params":[{"key":"branch","value":"branch/default"},{"key":"commit_message","value":"Update README.md"},{"key":"actions","value":[{"action":"create","file_path":"README.md","content":"[FILTERED]","encoding":"text","last_commit_id":""}]}],"host":"joaglu.local","remote_ip":"172.25.0.1, 127.0.0.1","ua":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0","route":"/api/:version/projects/:id/repository/commits","user_id":1,"username":"root","exception.class":"Gitlab::Mercurial::HgGitRepository::HgError","exception.message":"Could not commit (status code 1): adding README.md\nTraceback (most recent call last):\n File \"/opt/gitlab/embedded/bin/hg\", line 43, in <module>\n dispatch.run()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 113, in run\n status = dispatch(req)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 303, in dispatch\n ret = _runcatch(req) or 0\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 479, in _runcatch\n return _callcatch(ui, _runcatchfunc)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 488, in _callcatch\n return scmutil.callcatch(ui, func)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/scmutil.py\", line 153, in callcatch\n return func()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 469, in _runcatchfunc\n return _dispatch(req)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 1232, in _dispatch\n return runcommand(\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 917, in runcommand\n ret = _runcommand(ui, options, cmd, d)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 1244, in _runcommand\n return cmdfunc()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/dispatch.py\", line 1230, in <lambda>\n d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1867, in check\n return func(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1867, in check\n return func(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py\", line 1296, in commitwrap\n return orig(ui, repo, *args, **opts)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1867, in check\n return func(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1867, in check\n return func(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/evolve/__init__.py\", line 1157, in commitwrapper\n result = orig(ui, repo, *arg, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1867, in check\n return func(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py\", line 2001, in commit\n return _docommit(ui, repo, *pats, **opts)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py\", line 2098, in _docommit\n node = cmdutil.commit(ui, repo, commitfunc, pats, opts)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/cmdutil.py\", line 2718, in commit\n return commitfunc(ui, repo, message, matcher, opts)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/commands.py\", line 2089, in commitfunc\n return repo.commit(\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/topic/__init__.py\", line 464, in commit\n return super(topicrepo, self).commit(*args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py\", line 199, in wrapper\n return orig(repo.unfiltered(), *args, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py\", line 2924, in commit\n ms.reset()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/util.py\", line 1359, in __exit__\n self.close()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py\", line 44, in _active\n return func(self, *args, **kwds)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/transaction.py\", line 519, in close\n self._validatecallback[category](self)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py\", line 2248, in validate\n repo.hook(\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/localrepo.py\", line 1810, in hook\n return hook.hook(self.ui, self, name, throw, **args)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py\", line 261, in hook\n res = runhooks(ui, repo, htype, hooks, throw=throw, **args)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py\", line 340, in runhooks\n r, raised = pythonhook(\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/mercurial/hook.py\", line 117, in pythonhook\n r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/hooks/gitlab_mirror.py\", line 13, in mirror\n gitlab_mirror(ui, repo)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/__init__.py\", line 143, in gitlab_mirror\n git.HeptapodGitHandler(repo, repo.ui).export_commits()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py\", line 893, in export_commits\n self.update_references()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py\", line 907, in update_references\n self.heptapod_apply_changes(prune_reasons, changes)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py\", line 868, in heptapod_apply_changes\n self.heptapod_notify_gitlab(PreReceive(self.repo),\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/hgext3rd/heptapod/git.py\", line 781, in heptapod_notify_gitlab\n code, out, err = hook((prune_reasons, converted_changes))\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py\", line 279, in __call__\n ok, out, err = self.execute(changes, env=env)\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/heptapod/gitlab/hooks.py\", line 297, in execute\n as_json = resp.json()\n File \"/opt/gitlab/embedded/lib/python3.8/site-packages/requests/models.py\", line 900, in json\n return complexjson.loads(self.text, **kwargs)\n File \"/opt/gitlab/embedded/lib/python3.8/json/__init__.py\", line 357, in loads\n return _default_decoder.decode(s)\n File \"/opt/gitlab/embedded/lib/python3.8/json/decoder.py\", line 337, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/opt/gitlab/embedded/lib/python3.8/json/decoder.py\", line 355, in raw_decode\n raise JSONDecodeError(\"Expecting value\", s, err.value) from None\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n","exception.backtrace":["lib/gitlab/mercurial/hg_git_repository.rb:555:in `hg_commit'","lib/gitlab/mercurial/hg_git_repository.rb:1316:in `block in multi_action'","lib/gitlab/mercurial/hg_git_repository.rb:683:in `hg_tmp_workdir'","lib/gitlab/mercurial/hg_git_repository.rb:1219:in `multi_action'","app/models/repository.rb:890:in `block in multi_action'","app/models/repository.rb:856:in `with_cache_hooks'","lib/gitlab/metrics/instrumentation.rb:160:in `block in with_cache_hooks'","lib/gitlab/metrics/method_call.rb:27:in `measure'","lib/gitlab/metrics/instrumentation.rb:160:in `with_cache_hooks'","app/models/repository.rb:890:in `multi_action'","lib/gitlab/metrics/instrumentation.rb:160:in `block in multi_action'","lib/gitlab/metrics/method_call.rb:27:in `measure'","lib/gitlab/metrics/instrumentation.rb:160:in `multi_action'","app/services/files/multi_service.rb:41:in `commit_actions!'","lib/gitlab/metrics/instrumentation.rb:160:in `block in commit_actions!'","lib/gitlab/metrics/method_call.rb:27:in `measure'","lib/gitlab/metrics/instrumentation.rb:160:in `commit_actions!'","app/services/files/multi_service.rb:13:in `create_commit!'","lib/gitlab/metrics/instrumentation.rb:160:in `block in create_commit!'","lib/gitlab/metrics/method_call.rb:27:in `measure'","lib/gitlab/metrics/instrumentation.rb:160:in `create_commit!'","app/services/commits/create_service.rb:30:in `execute'","lib/api/commits.rb:130:in `block (2 levels) in <class:Commits>'","lib/api/api_guard.rb:208:in `call'","lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'","lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'","lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'","lib/gitlab/metrics/transaction.rb:61:in `run'","lib/gitlab/metrics/rack_middleware.rb:16:in `call'","lib/gitlab/request_profiler/middleware.rb:17:in `call'","lib/gitlab/jira/middleware.rb:19:in `call'","lib/gitlab/middleware/go.rb:20:in `call'","lib/gitlab/etag_caching/middleware.rb:13:in `call'","lib/gitlab/middleware/multipart.rb:234:in `call'","lib/gitlab/middleware/handle_null_bytes.rb:19:in `call'","lib/gitlab/middleware/read_only/controller.rb:51:in `call'","lib/gitlab/middleware/read_only.rb:18:in `call'","lib/gitlab/middleware/same_site_cookies.rb:27:in `call'","lib/gitlab/middleware/basic_health_check.rb:25:in `call'","lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'","lib/gitlab/middleware/request_context.rb:23:in `call'","config/initializers/fix_local_cache_middleware.rb:9:in `call'","lib/gitlab/metrics/requests_rack_middleware.rb:49:in `call'","lib/gitlab/middleware/release_env.rb:12:in `call'"],"queue_duration_s":0.050205,"gitaly_calls":4,"gitaly_duration_s":0.020455,"redis_calls":6,"redis_duration_s":0.002349,"redis_read_bytes":820,"redis_write_bytes":1244,"redis_cache_calls":5,"redis_cache_duration_s":0.001315,"redis_cache_read_bytes":637,"redis_cache_write_bytes":289,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.001034,"redis_shared_state_read_bytes":183,"redis_shared_state_write_bytes":955,"correlation_id":"KN6MIicn3u3","meta.user":"root","meta.project":"root/t1","meta.root_namespace":"root","meta.caller_id":"/api/:version/projects/:id/repository/commits"}
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/gitlab-workhorse/current <==
heptapod_1 | {"content_type":"application/json","correlation_id":"KN6MIicn3u3","duration_ms":3576,"host":"joaglu.local","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://joaglu.local/gitlab/-/ide/project/root/t1/tree/branch/default/-/","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":500,"system":"http","time":"2020-12-26T19:32:06Z","uri":"/gitlab/api/v4/projects/root%2Ft1/repository/commits","user_agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0","written_bytes":39}
heptapod_1 |
heptapod_1 | ==> /var/log/gitlab/nginx/gitlab_access.log <==
heptapod_1 | 172.25.0.1 - - [26/Dec/2020:19:32:06 +0000] "POST /gitlab/api/v4/projects/root%2Ft1/repository/commits HTTP/1.1" 500 39 "http://joaglu.local/gitlab/-/ide/project/root/t1/tree/branch/default/-/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0" -