johnmehr / gitup

A minimalist, dependency-free FreeBSD program to clone/pull Git repositories.
BSD 2-Clause "Simplified" License
51 stars 9 forks source link

Issue with fetching ports #83

Closed Adubzzy closed 2 years ago

Adubzzy commented 2 years ago

Yesterday I ran gitup to update my FreeBSD ports tree with no issue. Today there seems to be a 403 Forbidden error. Does this seem to be a transient error with GitHub or did something change where i would need to alter my config. This has been running fine for many months.

FreeBSD meatwad 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 GENERIC amd64

Command i used is:

sudo gitup -v 3 ports

My config is set up as:


# $FreeBSD$
#
# Default configuration options for gitup.conf.
{
        "defaults" : {
                "host"           : "git.freebsd.org",
                "port"           : 443,
                "verbosity"      : 1,
                "work_directory" : "/var/db/gitup",
        },

        "ports" : {
                "host"       : "github.com",
                "repository" : "/freebsd/freebsd-ports.git",
                "branch"     : "main",
                "target"     : "/usr/ports",
                "ignores"    : [
                        "distfiles",
                        "packages",
                ],
        },

Error generated is:

# Scanning local repository...
# Host: github.com
# Port: 443
# Repository Path: /freebsd/freebsd-ports.git
# Target Directory: /usr/ports
# Have: 965a737258c576ac4299517c2dd5f8ed5587648d
GET /freebsd/freebsd-ports.git/info/refs?service=git-upload-pack HTTP/1.1
Host: github.com:443
User-Agent: gitup/0.96
Git-Protocol: version=2

==> bytes sent: 148
gitup: process_command: read failure:
HTTP/1.1 403 Forbidden
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 0
Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'
connection: close
<!DOCTYPE html>
<html>
  <head>
    <meta content="origin" name="referrer">
    <title>Forbidden &middot; GitHub</title>
    <style type="text/css" media="screen">
      body {
        background-color: #f1f1f1;
        margin: 0;
      }
      body,
      input,
      button {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      }
      .container { margin: 30px auto 40px auto; width: 800px; text-align: center; }
      a { color: #4183c4; text-decoration: none; font-weight: bold; }
      a:hover { text-decoration: underline; }
      h1, h2, h3 { color: #666; }
      ul { list-style: none; padding: 25px 0; }
      li {
        display: inline;
        margin: 10px 50px 10px 0px;
      }
      .logo { display: inline-block; margin-top: 35px; }
      .logo-img-2x { display: none; }
      @media
      only screen and (-webkit-min-device-pixel-ratio: 2),
      only screen and (   min--moz-device-pixel-ratio: 2),
      only screen and (     -o-min-device-pixel-ratio: 2/1),
      only screen and (
: Invalid argument
zsh: exit 1     sudo -E gitup -v 3 ports
Adubzzy commented 2 years ago

Sorry I found an issue in my config. All good now. No idea why it just stopped working today as the config was unchanged since April of 2021