isovector / take2

the real accio analytics platform
7 stars 2 forks source link

cant start server #41

Closed MatthewMaclean closed 9 years ago

MatthewMaclean commented 9 years ago

11028082_10153176576494617_2004678634_o

isovector commented 9 years ago

learn to copy+paste :-1:

isovector commented 9 years ago

try inserting

Logger.info(file)

above this line in RepoModel#updateCounts(commit: Commit):

val repoFile = RepoFile.getByFile(file).get

then crossreference that against the database:

select * from RepoFile where file = 'whateveryougotabove';

does it exist? if not, does ANYTHING?

select * from RepoFile;

if nothing exists, does the COMMIT?

-- backticks are necessary here
select * from `Commit`; 

if nothing exists, database is fucky. if the repofile exists, something's going wrong with matt's parsing stuff probably. if things exist but the repofile doesn't, then check RepoFileModel#touchFiles and see if that's ever getting hit.

isovector commented 9 years ago

closing this due to no follow up

MatthewMaclean commented 9 years ago

I tried it twice, the first time it tried to find README.md, the second it tried to find back/app/controlelrs/Appliation.scala. Both exist in the database, but when it tries to get by file, it fails.

isovector commented 9 years ago

delete the db and try again On 8 Mar 2015 16:21, "MatthewMaclean" notifications@github.com wrote:

I tried it twice, the first time it tried to find README.md, the second it tried to find back/app/controlelrs/Appliation.scala. Both exist in the database, but when it tries to get by file, it fails.

— Reply to this email directly or view it on GitHub https://github.com/isovector/take2/issues/41#issuecomment-77771925.

isovector commented 9 years ago

or ortherwise get me more useful information

MatthewMaclean commented 9 years ago

That was after deleting the db and restarting the server. I'll just not use my local machine I guess.

isovector commented 9 years ago

naw, this is definitely something we should fix

On Sun, Mar 8, 2015 at 4:57 PM, MatthewMaclean notifications@github.com wrote:

Closed #41 https://github.com/isovector/take2/issues/41.

— Reply to this email directly or view it on GitHub https://github.com/isovector/take2/issues/41#event-248215423.

isovector commented 9 years ago

for the meantime actually i guess you can just early return from that function so the .get doesn't happen