{"action":"created","issue":{"url":"https://api.github.com/repos/Ericsson/codechecker/issues/218","repository_url":"https://api.github.com/repos/Ericsson/codechecker","labels_url":"https://api.github.com/repos/Ericsson/codechecker/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/Ericsson/codechecker/issues/218/comments","events_url":"https://api.github.com/repos/Ericsson/codechecker/issues/218/events","html_url":"https://github.com/Ericsson/codechecker/issues/218","id":124080842,"number":218,"title":"A second import fails on a database error","user":{"login":"sylvestre","id":733326,"avatar_url":"https://avatars.githubusercontent.com/u/733326?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvestre","html_url":"https://github.com/sylvestre","followers_url":"https://api.github.com/users/sylvestre/followers","following_url":"https://api.github.com/users/sylvestre/following{/other_user}","gists_url":"https://api.github.com/users/sylvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvestre/subscriptions","organizations_url":"https://api.github.com/users/sylvestre/orgs","repos_url":"https://api.github.com/users/sylvestre/repos","events_url":"https://api.github.com/users/sylvestre/events{/privacy}","received_events_url":"https://api.github.com/users/sylvestre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Ericsson/codechecker/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Ericsson/codechecker/milestones/16","html_url":"https://github.com/Ericsson/codechecker/milestones/week7%20-%202016","labels_url":"https://api.github.com/repos/Ericsson/codechecker/milestones/16/labels","id":1585539,"number":16,"title":"week7 - 2016","description":"","creator":{"login":"gyorb","id":10214062,"avatar_url":"https://avatars.githubusercontent.com/u/10214062?v=3","gravatar_id":"","url":"https://api.github.com/users/gyorb","html_url":"https://github.com/gyorb","followers_url":"https://api.github.com/users/gyorb/followers","following_url":"https://api.github.com/users/gyorb/following{/other_user}","gists_url":"https://api.github.com/users/gyorb/gists{/gist_id}","starred_url":"https://api.github.com/users/gyorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyorb/subscriptions","organizations_url":"https://api.github.com/users/gyorb/orgs","repos_url":"https://api.github.com/users/gyorb/repos","events_url":"https://api.github.com/users/gyorb/events{/privacy}","received_events_url":"https://api.github.com/users/gyorb/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":5,"state":"open","created_at":"2016-02-16T12:45:37Z","updated_at":"2016-02-17T14:10:36Z","due_on":"2016-02-22T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-28T15:29:11Z","updated_at":"2016-02-17T14:17:34Z","closed_at":null,"body":"I am probably doing something wrong but running the command:\r\n```\r\nCodeChecker check --dbusername codechecker --dbport 5432 -n firefox -w ~/checker_workspace -l /home/sylvestre/checker_workspace/build.log\r\n```\r\non a second run generates this error:\r\n```\r\n[INFO] - Parsing log file: /home/sylvestre/checker_workspace/build.log\r\n[INFO] - Parsing log file done.\r\n[INFO] - Checking for database\r\n[INFO] - Waiting for check results on [40618]\r\n[INFO] - Server error.\r\n[INFO] - Error code: 0\r\n[INFO] - Error message: (psycopg2.IntegrityError) ERROR:  the value of a duplicated key breaks the unique constraint « runs_name_key » [1]\r\nDETAIL:  The key « (name)=(firefox) » already exists. [1]\r\n [SQL: \"INSERT INTO runs (id, date, duration, name, version, command, inc_count) VALUES (nextval('run_id_seq'), %(date)s, %(duration)s, %(name)s, %(version)s, %(command)s, %(inc_count)s) RETURNING runs.id\"] [parameters: {'name': 'firefox', 'duration': -1, 'inc_count': 0, 'version': '4.0', 'command': '/home/sylvestre/dev/mozilla/codechecker/codechecker_package/CodeChecker/cc_bin/CodeChecker.py check --dbusername codechecker --dbport 5432 -n firefox -w /home/sylvestre/checker_workspace -l /home/sylvestre/checker_workspace/build.log', 'date': datetime.datetime(2015, 12, 28, 16, 27, 40, 398042)}]\r\n\r\n[1] are translated from French\r\n```"},"comment":{"url":"https://api.github.com/repos/Ericsson/codechecker/issues/comments/185224007","html_url":"https://github.com/Ericsson/codechecker/issues/218#issuecomment-185224007","issue_url":"https://api.github.com/repos/Ericsson/codechecker/issues/218","id":185224007,"user":{"login":"gyorb","id":10214062,"avatar_url":"https://avatars.githubusercontent.com/u/10214062?v=3","gravatar_id":"","url":"https://api.github.com/users/gyorb","html_url":"https://github.com/gyorb","followers_url":"https://api.github.com/users/gyorb/followers","following_url":"https://api.github.com/users/gyorb/following{/other_user}","gists_url":"https://api.github.com/users/gyorb/gists{/gist_id}","starred_url":"https://api.github.com/users/gyorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyorb/subscriptions","organizations_url":"https://api.github.com/users/gyorb/orgs","repos_url":"https://api.github.com/users/gyorb/repos","events_url":"https://api.github.com/users/gyorb/events{/privacy}","received_events_url":"https://api.github.com/users/gyorb/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T14:17:34Z","updated_at":"2016-02-17T14:17:34Z","body":"With the new release 5.2 CodeChecker runs by default in update mode. Which means it will overwrite previous analysis results if the same run name is used. This change should fix the error in the description.\r\nPlease @sylvestre verify if you still have this error with the new release."}}