pretext deploy failing over ssh

33 views
Skip to first unread message

Sean Fitzpatrick

unread,
Nov 19, 2024, 11:22:02 AM11/19/24
to PreTeXt support
Until a few weeks ago I was using 'pretext deploy' for some lecture slides without any trouble. (Last successful deployment was 19 days ago, according to GitHub.)
I haven't changed anything in my settings, either locally or on GitHub.

When running the deploy command now, it reports success, but checking the fine print reveals errors:

[git.remote] WARNING: Error lines received while fetching: error: failed to
   push some refs to 'github.com:sean-fitzpatrick/1560slides.git'

This is from my local machine, using SSH authentication.

There doesn't appear to be any record of the deployment attempt on GitHub.
Has there been some policy change that's preventing the deployment?

Sean Fitzpatrick

unread,
Nov 19, 2024, 11:27:45 AM11/19/24
to PreTeXt support
Strange. If I change to the gh-pages branch locally, it shows as unpublished, and VSCode asks me to publish the branch.
But the branch is on GitHub. Did it somehow become detached?

If I commit all the untracked files in the gh-pages branch, and publish the branch, will that fix things, or make it worse?

Sean Fitzpatrick

unread,
Nov 19, 2024, 11:37:35 AM11/19/24
to PreTeXt support
Shoot. Figured it out. It is a me being stupid problem. But I'll leave this up in case someone else does the same stupid thing.

What happened: I had one day where I had to update my slides from home, using a different computer. (It was 7 am, and I had just realized that I didn't have slides for my 8 am class.)

If you run pretext-deploy on a different machine, and then return to the one you usually use, tracking of the gh-pages branch gets messed up.
But it doesn't seem quite as simple as "Sean forgot to git pull when back in the office" because the source files on the main branch are up to date and have the changes I made from home.

I guess the moral of the story is that you shouldn't run pretext deploy from more than one machine.

Aaron Greicius

unread,
Dec 4, 2024, 1:18:13 PM12/4/24
to PreTeXt support
I will add to this, as I think I am experiencing a similar issue. I regularly deploy from two different machines, usually without issue. However, today I am receiving a failure to connect error. See log passage below. This is the second time this has happened to me in recent months. The first time was resolved miraculously after running a deploy from my machine at work. I have no insight as to why. I'll add that both machines use the token authentication method to connect with github and normally have no issue connecting. 

Any suggestions would be appreciated. Is there a way of running a deploy workflow from my github page? 

Committing your latest build to the `gh-pages` branch.

Attempting to connect to remote repository at `https://github.com/agreicius/220-1`...

warning: There was an issue connecting to GitHub repository located at https://github.com/agreicius/220-1/

If you haven't already, configure SSH with GitHub by following instructions at:
Then try to deploy again.

If `https://github.com/agreicius/220-1` doesn't match your GitHub repository,
use `git remote remove origin` on the command line then try to deploy again.

error: Deploy was unsuccessful.

Reply all
Reply to author
Forward
0 new messages