question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot deploy from Windows box

See original GitHub issue

Hi, I keep getting the following error when deploying from my windows machine to GitHub Pages over HTTPS.

\venv\lib\site-packages\lektor\publisher.py:658: ResourceWarning: unclosed file <_io.BufferedReader name=3> for line in git(['init']).output:

The same setting work for Linux and git works on my windows manchine outside of Lektor as I commit to my own projects.

Any ideas?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
balrundevcommented, Mar 6, 2021

If Git is executed in Windows Command Prompt or site is deployed from web interface, it may be path delimiter is incorrect for Git, which recognizes it as escaped characters. This can be fixed by replacing \ to \\. Workaround: add replace on line 595 (in def update_git_config()) in publisher.py cred_path = os.path.join(repo, '.git', 'credentials').replace('\\', '\\\\') After doing that, the site is deployed correctly.

2reactions
rakleedcommented, Feb 27, 2021

The simplest workaround is to use an SSH key instead of a personal access token.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You cannot deploy Windows by using Windows PE 4.0 and a ...
Fixes an issue in which Windows is not deployed when you try to offline inject a third-party out-of-box storage controller driver.
Read more >
Troubleshooting Common Problems with Web Deploy
This walkthrough shows how to diagnose and fix common problems with Web Deploy, including common errors seen while publishing from Visual ...
Read more >
Windows 10 deployments fail with Microsoft Deployment ...
Windows 10 deployments using the Microsoft Deployment Toolkit (MDT) build 8456 fail when used with the Windows Assessment and Deployment Kit ...
Read more >
Cannot deploy Windows 10 21H2 - Microsoft Q&A
Cannot deploy Windows 10 21H2. When creating a new task sequence using the latest Windows 10 21H2 Enterprise Right click the newly created...
Read more >
Windows Deployment Service can not deploy Windows (any ...
ESXi on Machine 2, has a Windows Server 2012 R2 installed, running AD DC and DHCP. Then the WDS server should be used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found