Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] PIT table issue prevents changelog temp to changelog

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] PIT table issue prevents changelog temp to changelog


Chronological Thread 
  • From: Shilen Patel <>
  • To: Scott Koranda <>
  • Cc: grouper-users <>
  • Subject: Re: [grouper-users] PIT table issue prevents changelog temp to changelog
  • Date: Fri, 18 Jan 2019 20:16:06 +0000
  • Accept-language: en-US
  • Authentication-results: mail-gw.oit.duke.edu; spf=none ; dmarc=none
  • Ironport-phdr: 9a23:6Vcj0RLjrhvVdx1u9tmcpTZWNBhigK39O0sv0rFitYgeLPrxwZ3uMQTl6Ol3ixeRBMOHs6IC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJBUMhPSiJBHo2yYYgBD+UDM+lYrpXyqFQVoBSkGQWsAfnixiNSi3L026AxzuQvERvB3AwlB98ArXTUrNTxNKgMV+C+0bPGwi/fb/xI3Tf29Y/FcgshofGNWbJ/b8zRxFIyGAPYjVWft5bpMC2I2eQQqmWW6fdrW+yoi24isQ5xoz6vy98jionTgYIV10jE+jtjwIovP9K4UFZ7bNi5G5VTryGXL5Z6T8M8T21ytis20KAKtJ2/cSQQ1pgqyADTZ+Saf4WI/B7vTuicLS12iX9qYr6yiQ6+8Ua+xeD/SsW51VNHojdGn9bWtH0A0hze58aGR/Rg+0qs2SqA2gTW5+5ePUw7jrbXJpg8ybAqjJUTq17MHirulUX2kqCWckIk9/Ct6+v9Y7XmooaQN4B6iw3nL6gjm9azAeM5MggSRWSU5Pm81L798kHjXrpFk+A2nrHYsJDcO8sbura0DxJV34o98RqyAS2q3MkbkHQDNl5JZh2Kg5bxN1HLOv/4DPO/g1q2kDdswvDLJqbhApXMLnjHjrjhe61w5FNByAow099T/YxbBawcIP7rQE/+qMTYDgMlMwyz2+vnB8991oQDWWKXHKCZKrresUKT5u0xOemMf5QYuDL8K/g++/7ulmE1lUUcfamvwZsYdmq4HvJ4LEWFf3bgmMkOHnoXvll2cOu/s1aFTSIbRHGoVqQw73lvE4GhF47FSomFj7mI3SP9FZpTMDNoEFeJREzodoGJXb80YT6fJoc1iTwFUbWnY4M81hzouQPnnek0ZtHI8zEV4MqwnON+4PfewFRrrWQuVZaUzn2NQmdon2gBWz4x2uVlrFdgzkuYjvYqhvVZEZlc+LVOUxt8OYPfwqp3B82hP2CgZc+HHVChRNjuGjQtVpQ0yt4KbVx6HoC5jhHH0iyCD6IWmvqGCIFnl8C90334Pc0ozXHA2aQ=
  • Spamdiagnosticoutput: 1:22

I wonder if you have more duplicates.  If you look at the member that had issues (ca99ceee00b44698b407c8ced5a8bddb) does that give you any insight into what may have gone wrong?  Is that member a user or a group?  Try running the check on all the tables:

 

groovy:000> new edu.internet2.middleware.grouper.misc.SyncPITTables().processAllDuplicates()

 

If that doesn’t help, try running the job again and have it print the full stacktrace:

 

try { loaderRunOneJob("CHANGE_LOG_changeLogTempToChangeLog"); } catch (Exception e) { e.printStackTrace(); }

 

 

- Shilen

 

On 1/18/19, 2:30 PM, "Scott Koranda" <> wrote:

 

    > That method looks for duplicates and tries to delete the newest one (with the assumption that the oldest one is more likely to be used).  But it’s possible that the one it tried to delete has foreign keys instead.  (Hopefully they both don’t have foreign keys.)  Your logs should confirm that assumption.

    >

    > If that’s correct, then query the table:

    >

    > select * From grouper_pit_members where source_id='ca99ceee00b44698b407c8ced5a8bddb' and active='T'

    >

    > You should find 2 (or maybe more) rows.  Delete the one that isn’t id=639e1720af7f48c38d1940f63f4d4b7d.

    >

    > See if that resolves it?

    

    I was able to delete the row.

   

    The error message is now different:

   

    groovy:000> loaderRunOneJob("CHANGE_LOG_changeLogTempToChangeLog");

    ERROR java.lang.RuntimeException:

    edu.internet2.middleware.grouper.internal.dao.GrouperDAOException: Problem in HibernateSession: HibernateSession (259647f2): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (6ed2aa8a),

    Exception in saveOrUpdate: edu.internet2.middleware.grouper.pit.PITGroupSet, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: null, tx type: null,

    Exception in save: edu.internet2.middleware.grouper.pit.PITGroupSet, edu.internet2.middleware.grouper.hibernate.ByObject@53ec379a,

    Problem in HibernateSession: HibernateSession (7a7fdc1a): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (6ed2aa8a),

    Exception in saveOrUpdate: edu.internet2.middleware.grouper.pit.PITGroupSet, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: null, tx type: null,

    Exception in save: edu.internet2.middleware.grouper.pit.PITMembership, edu.internet2.middleware.grouper.hibernate.ByObject@5f6dd89c,

    Problem in HibernateSession: HibernateSession (609f136b): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (6ed2aa8a),

    Exception in saveOrUpdate: edu.internet2.middleware.grouper.pit.PITMembership, ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName: null, tx type: null,

    Problem in HibernateSession: HibernateSession (7a7698f4): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (6ed2aa8a)

            at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runOnceByJobName (GrouperLoader.java:1625)

            at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke (loaderRunOneJob.java:95)

            at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob$invoke.call (Unknown Source)

            at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)

   

    Thanks,

   

    Scott K

   




Archive powered by MHonArc 2.6.19.

Top of Page