{"action":"opened","issue":{"url":"https://api.github.com/repos/haiku/haikudepotserver/issues/165","repository_url":"https://api.github.com/repos/haiku/haikudepotserver","labels_url":"https://api.github.com/repos/haiku/haikudepotserver/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/haiku/haikudepotserver/issues/165/comments","events_url":"https://api.github.com/repos/haiku/haikudepotserver/issues/165/events","html_url":"https://github.com/haiku/haikudepotserver/issues/165","id":394253213,"node_id":"MDU6SXNzdWUzOTQyNTMyMTM=","number":165,"title":"Exception adding a mirror","user":{"login":"kallisti5","id":100110,"node_id":"MDQ6VXNlcjEwMDExMA==","avatar_url":"https://avatars0.githubusercontent.com/u/100110?v=4","gravatar_id":"","url":"https://api.github.com/users/kallisti5","html_url":"https://github.com/kallisti5","followers_url":"https://api.github.com/users/kallisti5/followers","following_url":"https://api.github.com/users/kallisti5/following{/other_user}","gists_url":"https://api.github.com/users/kallisti5/gists{/gist_id}","starred_url":"https://api.github.com/users/kallisti5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kallisti5/subscriptions","organizations_url":"https://api.github.com/users/kallisti5/orgs","repos_url":"https://api.github.com/users/kallisti5/repos","events_url":"https://api.github.com/users/kallisti5/events{/privacy}","received_events_url":"https://api.github.com/users/kallisti5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-26T22:40:44Z","updated_at":"2018-12-26T22:40:44Z","closed_at":null,"author_association":"NONE","body":"Adding a mirror for a repository results in an exception:\r\n\r\n```\r\nCaused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint \"repository_source_mirror_idx02\"\r\n  Detail: Key (base_url, repository_source_id)=(https://cdn.haiku.nz/haikuports/x86_64/current, 7631) already exists.\r\n\tat org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455)\r\n\tat org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155)\r\n\tat org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:460)\r\n\tat org.postgresql.jdbc.PgStatement.executeBatch(PgStatement.java:793)\r\n\tat org.postgresql.jdbc.PgPreparedStatement.executeBatch(PgPreparedStatement.java:1659)\r\n\tat com.zaxxer.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:128)\r\n\tat com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeBatch(HikariProxyPreparedStatement.java)\r\n\tat org.apache.cayenne.access.jdbc.BatchAction.runAsBatch(BatchAction.java:120)\r\n\tat org.apache.cayenne.access.jdbc.BatchAction.performAction(BatchAction.java:85)\r\n\tat org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:97)\r\n\tat org.apache.cayenne.access.DataNode.performQueries(DataNode.java:293)\r\n\tat org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:233)\r\n\tat org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:153)\r\n\tat org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:633)\r\n\tat org.apache.cayenne.access.DataDomain.onSyncNoFilters(DataDomain.java:603)\r\n\tat org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:764)\r\n\tat org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:73)\r\n\tat org.apache.cayenne.tx.TransactionFilter$1.perform(TransactionFilter.java:70)\r\n\tat org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:87)\r\n\tat org.apache.cayenne.tx.DefaultTransactionManager.performInLocalTransaction(DefaultTransactionManager.java:59)\r\n\tat org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:52)\r\n\tat org.apache.cayenne.tx.DefaultTransactionManager.performInTransaction(DefaultTransactionManager.java:40)\r\n\tat org.apache.cayenne.tx.TransactionFilter.onSync(TransactionFilter.java:70)\r\n\tat org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:764)\r\n\tat org.haiku.haikudepotserver.support.cayenne.QueryCacheRemoveGroupDataChannelFilter.onSync(QueryCacheRemoveGroupDataChannelFilter.java:55)\r\n\tat org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:764)\r\n\tat org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:590)\r\n\tat org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:742)\r\n\t... 77 common frames omitted\r\n2018-12-26 22:38:41,157 -/chr [qtp1160264930-52] ERROR org.haiku.haikudepotserver.js - json-rpc error; code:-32001, msg:[v.4.0 Aug 06 2018 12:11:43] Commit Exception\r\n```"}}
{"actor":{"display_login":"kallisti5"}}