Results

Error messages

Permission error

Error message:

maia@install-test1:/opt/scan$ bundle exec maia git_scan --repo-name glimse_events
Error: Commit glimse_events:3a116a8b has not been created in maia_core
Git Scan terminated with 1 error(s).

The creation of a commit is logged in the maia_core log MAIA WebApp.

File: /opt/data/t2maia/var/log/maia_core/production.log

Permission errors shall be logged here.

Example of a logged permission error in file opt/data/t2maia/var/log/maia_core/production_6.1.7.log:

[2022-03-29 10:15:47.705] [INFO] [874e13] Glimse event:SOURCE_CHANGE_CREATED id:874e139e-6e9a-431b-81b2-c418ae5e373b links: user:maia team:GitScan
[2022-03-29 10:15:47.705] [INFO] [874e13] Parameters: vcs:GIT repo:glimse_events repo_revision:1 sha:3a116a8b7b558fa818c40c76d69c06a6837dd818
[2022-03-29 10:15:47.705] [INFO] [874e13]   author:peter.mustel@t2data.com comment:#JMD-3734 Block for glimse protobuf definitions.

With factory and deserialize methods

Change-Id: I6e9453305782628ed5123258f7c91bff285156ea
[2022-03-29 10:15:47.705] [INFO] [874e13]   file_paths size:10 branches:master
[2022-03-29 10:15:47.711] [ERROR] [874e13] Pundit::NotAuthorizedError CommitPolicy:create? user:maia team:GitScan record:commit reasons: No site:commits:create-permission.
[2022-03-29 10:15:47.711] [INFO] [874e13] Completed in 129ms
[2022-03-29 10:15:47.720] [INFO] [914565] Glimse event:SOURCE_CHANGE_SUBMITTED id:914565b5-d09c-42c7-877c-36ec4e0e59c0 links:RELATES_TO_SOURCE_CHANGE->874e139e-6e9a-431b-81b2-c418ae5e373b user:maia team:GitScan
[2022-03-29 10:15:47.722] [ERROR] [914565] Pundit::NotAuthorizedError CommitPolicy:create? user:maia team:GitScan record:commit reasons: No site:commits:create-permission.
[2022-03-29 10:15:47.722] [INFO] [914565] Completed in 7ms

Add permission "Create commits" for the scan user in order to solve the error 'No site:commits:create-permission':

SSL problems

If there is a certificate problem you can (if it is safe) set the GIT_SSL_NO_VERIFY at the scan host.

For a single repo

git config http.sslVerify false

For all repo

git config --global http.sslVerify false