« first day (402 days earlier)      last day (3007 days later) » 

7:00 PM
oh wait
different errror, didn't even check
yes, same error I got last time I used that git lib in mono
 
Sam
:/
 
let's ask google
 
Yeah, don't come near Stack Overflow with that
 
lol
wait, i'm not supposed to ask SO right off the bat?
investigating
 
Sam
7:03 PM
hmm
 
oh, and I guess that exception killed the bot
 
Sam
@Clo alive
Yup
 
Hello everyone! (rene docker)
 
don't run the command
ok, yep, the default path in /srv/chatbot
 
Sam
afk for a sec
 
Sam
Back
 
oh, and it seems the logs records the exact values for the duplicate db entries
socvr-chatbot-postgres        | ERROR:  duplicate key value violates unique constraint "PK_UserReviewedItem"
socvr-chatbot-postgres        | DETAIL:  Key ("ReviewId", "ReviewerId")=(11274456, 2246344) already exists.
socvr-chatbot-postgres        | STATEMENT:  INSERT INTO "UserReviewedItem" ("ReviewId", "ReviewerId", "ActionTaken", "AuditPassed", "PrimaryTag", "ReviewedOn")
socvr-chatbot-postgres        |         VALUES ($1, $2, $3, $4, $5, $6)
socvr-chatbot-postgres        | ERROR:  duplicate key value violates unique constraint "PK_UserReviewedItem"
 
Sam
Oh
 
so that might help
do you think the parser is looping through both people who reviewed the item and giving you the credit both time?
random idea
 
Sam
Hmm
Well the logs show only my user id.
@Clo reviews today details
 
7:16 PM
@Sam You've reviewed 8 posts today. The time between your first and last review today was 1 hour, 19 minutes and 17 seconds, averaging to a review every 9 minutes and 54 seconds.
 | Item Id  | Action | Audit | Completed At            |
 |-----------------------------------------------------|
 | 11274456 | Close  |       | 2016-02-15 16:55:55 UTC |
 | 11274825 | Close  |       | 2016-02-15 17:28:02 UTC |
 | 11274837 | Close  |       | 2016-02-15 17:25:56 UTC |
 | 11274762 | Close  |       | 2016-02-15 17:01:20 UTC |
 | 11274369 | Close  |       | 2016-02-15 17:00:50 UTC |
 | 11275131 | Close  |       | 2016-02-15 17:29:08 UTC |
 | 11273542 | Close  |       | 2016-02-15 17:42:47 UTC |
 
ok, so according to hint #1, I do have a "NativeBinaries" folder in the bin/Release folder
and that should contain what the library is looking for
 
Sam
But?
 
that's it
haven't gotten any further figuring it out yet
 
Sam
Alright
Well, I'll see if there's a possible alternative.
I think I've found something.
 
wa'cha find?
 
Sam
7:27 PM
A NuGet package called GitInfo.
It looks like it just embeds some git strings in a static class.
Like the branch, sha, etc.
I have no idea how/when it updates those though.
 
ok
I'm still checking a few last things for this current library
 
Sam
ok
 
@Closey status
 
I hit an error while trying to run 'Status':
0: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
1: NativeBinaries/linux/amd64/libgit2-821131f.so
----
at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods:git_libgit2_init ()
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () <0x40605630 + 0x0000b> in <filename unknown>:0
at LibGit2Sharp.Core.NativeMethods..cctor () <0x40605400 + 0x0012f> in <filename unknown>:0

at LibGit2Sharp.Core.Proxy.git_repository_open (System.String path) <0x40604d10 + 0x0003f> in <filename unknown>:0
 
crud
and crashed
 
Sam
7:30 PM
:/
 
Another bot started, yay...
 
Sam
@Pham status
 
that's the welcome message
 
SOCVR Chatbot master at 9dba5a8d, running for 16 seconds.
 
Sam
Lol, yeah
Wow, it actually works
 
7:31 PM
System.DllNotFoundException: NativeBinaries/linux/amd64/libgit2-821131f.so
ok, that gives me more of a clue
 
Hello everyone! (rene docker)
 
yeah, the file is there
....ok, is it a problem with the current working directory...?
 
Sam
@Pham status
 
SOCVR Chatbot master at 9dba5a8d, running for 2 minutes and 57 seconds.
 
Sam
@Pham stop bot
 
7:33 PM
@Sam I'm shutting down...
Cya
Another bot started, yay...
 
Sam
@Pham status
 
SOCVR Chatbot master at 9dba5a8d, running for 17 seconds.
 
Sam
ok
@Clo stop bot
 
@Sam I'm shutting down...
Goodbye! (rene docker)
 
Sam
Ah damn
Wrong bot
 
7:35 PM
Hello everyone! (rene docker)
 
Sam
@PHam stop bot
 
@Sam I'm shutting down...
Cya
 
Sam
Sorry
 
@Closey alive
 
@gunr2171 I'm not dead yet!
 
7:35 PM
I guess you didn't kill it
shrug
@Closey status
 
I hit an error while trying to run 'Status':
0: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
1: NativeBinaries/linux/amd64/libgit2-821131f.so
----
at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods:git_libgit2_init ()
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () <0x418f5ea0 + 0x0000b> in <filename unknown>:0
at LibGit2Sharp.Core.NativeMethods..cctor () <0x418f5c70 + 0x0012f> in <filename unknown>:0

at LibGit2Sharp.Core.Proxy.git_repository_open (System.String path) <0x418f5580 + 0x0003f> in <filename unknown>:0
 
ffffffffffffffffffffffffffffff
and crash
ok, yeah, I don't know
 
Sam
Want me to push my stuff and see if that works?
 
sure
brb
 
Sam
ok
cya
 
7:38 PM
and back
 
Sam
Wb
Well teh codez is live
 
oh, your new git code
ok, yep
 
Sam
Yeah
 
let me update
@Closey stop bot
 
Sam
Have fun with nuget restore
 
7:42 PM
it's already dead, forgot
it's been better since I gave it an explicit version number
not sure why
 
Sam
Weird
 
oh wait, i reverted that
so sure, never mind
still no idea
anyways, it compiled
updating....
 
Hello everyone! (rene docker)
 
@Closey alive
 
Sam
And for the moment of truth
 
7:44 PM
@gunr2171 I'm alive and kicking!
 
@Closey status
 
SOCVR Chatbot master at d16f5001, running for 19 seconds.
 
Sam
\o/
 
yep, that's correct
sweet
#GoodEnough
 
Sam
And I didn't have to screw around with file paths this time.
 
7:46 PM
alright, so what is left to do. We have the duplicate review entry problem
 
Sam
And a problem with audits
 
as well as a few restrictions on adding users (you need to be in group for X days)
 
Sam
I thought that was a feature ;)
 
It is, it hasn't been done yet. I'll work on that tonight and tomorrow
 
Sam
Oh, I thought you were calling it a bug.
 
7:48 PM
Ms Y pointed that out to me
 
Sam
#FailedJoke
@Clo reviews today
 
@Sam You've reviewed 8 posts today. The time between your first and last review today was 1 hour, 19 minutes and 17 seconds, averaging to a review every 9 minutes and 54 seconds.
@rene I've noticed you've started reviewing! I'll update your session record.
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
 
Sam
Here we go again
 
always happy to test
 
Sam
@Gunr Anything logged?
 
7:51 PM
socvr-chatbot-postgres        | ERROR:  duplicate key value violates unique constraint "PK_UserReviewedItem"
socvr-chatbot-postgres        | DETAIL:  Key ("ReviewId", "ReviewerId")=(11274938, 578411) already exists.
socvr-chatbot-postgres        | STATEMENT:  INSERT INTO "UserReviewedItem" ("ReviewId", "ReviewerId", "ActionTaken", "AuditPassed", "PrimaryTag", "ReviewedOn")
socvr-chatbot-postgres        |         VALUES ($1, $2, $3, $4, $5, $6)
socvr-chatbot                 | [2016-02-15 19:50:41.56 +00:00] Saving ReviewItem 11275228 for user 578411.
 
that is me
yep
 
Sam
Just saw
 
It strangly tries to add this item: stackoverflow.com/review/close/11275228
that I reviewed an hour ago
 
well we got exactly 3 errors for rene's 3 reviews
all 3 reviews have multiple reviewers
 
Sam
I don't see any duplicated logs
We should've seen two: "Saving ReviewItem 11275441 for user 578411."
 
7:54 PM
oh, sorry, i missed those lines
socvr-chatbot                 | [2016-02-15 19:48:52.93 +00:00] [Sam] #FailedJoke
socvr-chatbot                 | [2016-02-15 19:49:37.37 +00:00] [Sam] reviews today
socvr-chatbot                 | [2016-02-15 19:50:31.47 +00:00] Saving ReviewItem 11275777 for user 578411.
socvr-chatbot                 | [2016-02-15 19:50:36.52 +00:00] Saving ReviewItem 11274938 for user 578411.
socvr-chatbot-postgres        | ERROR:  duplicate key value violates unique constraint "PK_UserReviewedItem"
socvr-chatbot-postgres        | DETAIL:  Key ("ReviewId", "ReviewerId")=(11274938, 578411) already exists.
 
Sam
Thanks
So yeah, all the logged reviews are different.
So this must be happening else where?
 
the only place where db.ReviewedItems.Add( is called is that method and the AddReview command
SaveReview
oh, and why are you doing .First(x => x.UserID == userID); rather than .Single()?
 
Sam
Uh, habit I guess.
I wonder if I can repro the bug
 
for the record, I was getting these errors on my computer back at home
on windows
 
Another bot started, yay...
@Sam I've noticed you've started reviewing! I'll update your session record.
 
8:02 PM
@Sam I've noticed you've started reviewing! I'll update your session record.
 
uh, I'm getting compile errors
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0122	'ThisAssembly' is inaccessible due to its protection level	SOCVR.Chatbot	C:\code\external\SOCVR-Chatbot\source\SOCVR.Chatbot\ChatbotActions\Commands\Utilities\Status.cs	24	Active
 
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
 
Sam
@gunr2171 Wat
 
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage) <0x40684be0 + 0x001cb> in <filename unknown>:0
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended (DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage) <0x40684990 + 0x00103> in <filename un
 
how many is this going to go through?
or should we kill it and remake the database?
 
Sam
8:04 PM
Wipe and retry?
 
sure
@Closey stop bot
 
@gunr2171 I'm shutting down...
Goodbye! (rene docker)
 
Sam
sigh VS crashed again
 
har har har
 
error happened!
0: Connection refused
 
8:05 PM
how?
 
error happened!
0: 42P01: relation "User" does not exist
 
COME ON
 
Sam
Lol
 
.....how can that even happen?
 
Sam
I edited some code when I hit a breakpoint, then it died.
 
8:07 PM
Another bot started, yay...
 
error happened!
0: 42P01: relation "User" does not exist
Hello everyone! (rene docker)
@Sam I've noticed you've started reviewing! I'll update your session record.
 
@Sam I've noticed you've started reviewing! I'll update your session record.
 
@Closey membership
 
Sam
Cue the errors.
 
@gunr2171 Current users in permission groups:
Reviewer
    Sam (2246344)
    gunr2171 (1043380)
    rene (578411)
    Tiny Giant (4639281)
    NathanOliver (4342498)
    Unihedron (3622940)
    ProgramFOX (2619912)

BotOwner
    Sam (2246344)
    gunr2171 (1043380)
    rene (578411)
    Tiny Giant (4639281)
    NathanOliver (4342498)
    Unihedron (3622940)
    ProgramFOX (2619912)
 
8:08 PM
wat?
 
Sam
Just a normal Monday, huh?
 
it's adding your reviews
about 1 every 3 seconds
8 so far
 
Sam
lolwut
 
socvr-chatbot                 | [2016-02-15 20:08:11.72 +00:00] Saving ReviewItem 11275789 for user 2246344.
socvr-chatbot                 | [2016-02-15 20:08:16.80 +00:00] Saving ReviewItem 11276513 for user 2246344.
socvr-chatbot                 | [2016-02-15 20:08:17.68 +00:00] [gunr2171] wat?
socvr-chatbot                 | [2016-02-15 20:08:21.84 +00:00] Saving ReviewItem 11272706 for user 2246344.
socvr-chatbot                 | [2016-02-15 20:08:26.88 +00:00] Saving ReviewItem 11273542 for user 2246344.
and it stopped after that
 
Sam
Ah, hang on a minute
 
8:10 PM
no errors yet
 
Sam
yeah, socvr.net goes back through a user's history (just for today) when they first start reviewing
 
ok
 
Sam
(Only happens once per user.)
Afk
 
i'm out for a while, need to get some actual work done, back much later
 
Sam
8:41 PM
Back
Lol, I was going to ask how you're geting work done while debugging this.
 
I don't
 
An error happened in UserTracking (cc @Sam)
0: The operation has timed out
----
at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
at System.Net.WebClient.UploadValues(String address, String method, NameValueCollection data)
at SOCVRDotNet.ReviewItem..ctor(Int32 reviewID, String fkey)
at SOCVRDotNet.User.ProcessReview(Int32 reviewID, Action throttle, DateTime& lastReview)
at SOCVRDotNet.User.ScrapeData()
 
Sam
:p
@Clo alive
 
@Sam Still here you guys!
 
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage)
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage)
 
Sam
8:47 PM
Ah ha!
 
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: The instance of entity type 'SOCVR.Chatbot.Database.UserReviewedItem' cannot be tracked because another instance of this type with the same key is already being tracked. For new entities consider using an IIdentityGenerator to generate unique key values.
----
at Microsoft.Data.Entity.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
at Microsoft.Data.Entity.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges)
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage)
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage)
An error happened in UserTracking (cc @Sam)
0: Exception has been thrown by the target of an invocation.
1: An error occurred while updating the entries. See the inner exception for details.
2: 23505: duplicate key value violates unique constraint "PK_UserReviewedItem"
----
at Npgsql.NpgsqlConnector.DoReadSingleMessage(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean isPrependedMessage)
at Npgsql.NpgsqlConnector.ReadSingleMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode, Boolean returnNullForAsyncMessage)
 
Sam
So the SaveReview method is indeed being called twice for most reviews
So it's a bug with socvr.net
So I should probably stop stating sentences with "so".
 
So?
 
@rene I've noticed you've started reviewing! I'll update your session record.
 
Sam
I'm going to debug socvr.net and see if I can kill this bug
 
9:03 PM
Rene passed a audit!
 
Sam
Oh, nice
So we don't have an issue with audits?
 
I passed a c++ one earlier
 
Sam
Link?
 
Sam
> Our system has identified this post as possible spam; please review carefully
lol
Ok, thanks.
 
9:10 PM
@rene You've reviewed 40 posts today (1 of which was an audit), thanks! The time between your first and last review today was 3 hours, 2 minutes and 10 seconds, averaging to a review every 4 minutes and 33 seconds.
 
OK, I'm done and out for the day
 
Sam
Cya
var w = new WebSocket("wss://qa.sockets.stackexchange.com/"); w.onmessage = function(e) { console.log(e) }; w.onopen = function() { w.send("1-review-dashboard-update") };
 
Sam
10:18 PM
@clo alive
 
@Sam I think I'll go for a walk...
 
Sam
You're still here, huh?
 
Sam
10:59 PM
afk
 
11:15 PM
@Closey alive
 
@PraveenKumar I feel fine.
 

« first day (402 days earlier)      last day (3007 days later) »