3

I have the following problem:

  • I have two machines here, a PC (Windows) and a Raspberry Pi (Raspbian).

  • I have a git repo on gitlab.com, using an https URL.

  • On the PC, I have been using and continue to use git (command line, git shell) with zero issues.

  • On the Pi, today I can no longer access the repo, git pull origin master, for example, fails with:

      server certificate verification failed
    

    This is a new issue. I had been happily using git on that devices for months, and nothing was touched on it since the last time I used it successfully about a week or so ago (the device hasn't even been powered on since).

Not knowing much about SSL and certificates, I've just been hunting for solutions and blindly executing commands with no success. So far all I've found and tried is:

It doesn't make sense to me that it would be a server screw-up on the GitLab side, given that my PC continues to access the repo just fine. I'm also not having any issues on their site, their status Twitter feed doesn't mention anything, and also it seems odd that they would screw this particular thing up (plus the problem has been going on all day now).

I'm not sure what to try next. What's my next step here? It's a bit frustrating as it's frozen project development all day so far.

Community
  • 1
  • 1
Jason C
  • 38,729
  • 14
  • 126
  • 182

1 Answers1

2

I found the problem, the system clock had been reset... correcting the time (and setting up NTP to avoid it in the future) solved the issue.

I did not find server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none in my searching, it was pointed out to me in chat, and one of the suggestions was to check the clock.

I am therefore going to close this question as a duplicate of that one, but if anybody finds this in the future, check your clock first. It's an easy first troubleshooting point.

Community
  • 1
  • 1
Jason C
  • 38,729
  • 14
  • 126
  • 182