Closed aliaksei-lithium closed 9 years ago
Looks like an error during Date serialization. Some commit is without a Date? Can you possibly narrow down this error case? A header from Commit object would be enough.
We’ll add logs for that case in next version anyway
It is hard to find that commit or smth else, im looking in last added repos - no one commit without date(mb one of them but i can't find...) So, main goal - ignore such exception and do not break all staff, just warn log will be great.
Could you run the following commands
cd acha
sqlite3 .acha/db.sqlite
select achievement.sha1, repo.url from achievement left join repo on repo.id = achievement.repoid where achievement.timestamp is NULL or achievement.assigned is NULL;
If anything are returned then please provide commit infos for these specific commits
I get nothing . But im reimport some repos and find one that breaks all. But, i find one commit without commiter and author, mb it can cause a problem
% sqlite3 db.sqlite
SQLite version 3.8.2 2013-12-06 14:53:30
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select achievement.sha1, repo.url from achievement left join repo on repo.id = achievement.repoid where achievement.timestamp is NULL or achievement.assigned is NULL;
sqlite>
Could you provide any details regarding this issue? I'm going to close this ticket because we can't reproduce it on our side.
So, really i can't reproduce it to now. But I found broken commit in repo and fix it. After this and re-import repo - it seems work ok. I really do not know how to break commit in this way again.
Got the same error. Given query return no records.
Any chance we can look at the repo? Or at least output from select * from achievement
? What version do you use?
select * from achievements
was empty.
I use latest 0.2.3 version.
How can I figure out which repo causing problem?
@13h3r
select * from achievement
, not achievements
, right?
Maybe you could provide us with the whole database? We save SHA-1 only, we don’t even save commit messages, so in theory there’s nothing confidential and DB can be freely shared
@tonsky sure, achievement
.
I tried to reproduce this problem, but acha works well. Next time I will provide sqlite file
Few seconds after previous comment I have got this error again. Here it is the dump - https://www.dropbox.com/s/3mp48yta460ui22/issue3-db.sqlite.gz?dl=0
Thanks for provided information @13h3r.
According to this dump the commit 732f46eacadf1ade5309034af9a406a50bbe168b in cedar.git has timestamp = 0. Sqlite interprets this value as Integer and Clojure doesn't find necessary constructor.
I've fixed this case but it's weird that commit has timestamp = 0. Could you check commit date on your side and confirm that it's a commit issue?
Thanks @avasenin! I can confirm that 732f46eacadf1ade5309034af9a406a50bbe168b has no commit date. I have no idea why :)
There’s now a stable release that fixes that: https://github.com/someteam/acha/releases/tag/0.2.4
Thanks!
Successful import some rather big projects from gitlab, but from one of them get the error below. With this bug i can`t even see others repos and achievements. After f5 only purple line and log message ->