# I can't get GitHub to work from the UI, only the terminal

**URL:** <https://discourse.nodered.org/t/i-cant-get-github-to-work-from-the-ui-only-the-terminal/84226>\
**Category:** General\
**Created:** [2 January 2024 22:16 UTC](https://discourse.nodered.org/t/i-cant-get-github-to-work-from-the-ui-only-the-terminal/84226 "2024-01-02T22:16:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaxharg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajaxharg/32/86882_2.png) [@ajaxharg](https://discourse.nodered.org/u/ajaxharg)\
**Post date:** [2 January 2024 22:16 UTC](https://discourse.nodered.org/t/i-cant-get-github-to-work-from-the-ui-only-the-terminal/84226/1 "2024-01-02T22:16:06Z")

</div>

In the projects-settings,I have a remote GitHub account set up via an https: link. If I click on push from the UI I get no error but nothing happens. However if I do a git push from the terminal then it asks me for my username and passcode and the push succeeds. I do remember long ago getting asked for a password from node-red but I have deleted and regenerated the passcodes in GitHub since then. I get the following log. Should credential helper have any details in the git -c command? I have been unable to get the SSH to work from the command line or the UI. I have also tried reestablishing the flows\_cred.json in several locations and that made no difference.  
The following was in the log file.

```auto
2024-01-02T22:01:06.567Z Push changes : origin/master

2024-01-02T22:01:06.634Z git -c credential.helper= push origin HEAD:master --porcelain
2024-01-02T22:01:11.719Z [err] error: update_ref failed for ref 'refs/remotes/origin/master': cannot lock ref 'refs/remotes/origin/master': Unable to create '/data/home/nodered/.node-red/projects/cerbo/.git/refs/remotes/origin/master.lock': Permission denied
2024-01-02T22:01:11.729Z [out] To https://github.com/xxxxxxxxxxxxxx
2024-01-02T22:01:11.729Z [out] HEAD:refs/heads/master	0be4b3f..1c04091
2024-01-02T22:01:11.729Z [out] Done
2024-01-02T22:01:11.732Z rc=0

```

Having read another user here. I restarted and was able to reenter my credentials. However I got the following error. The log file was the same as above.

```auto
An unexpected error occurred:

error: cannot lock ref 'refs/remotes/origin/master': Unable to create '/data/home/nodered/.node-red/projects/cerbo/.git/refs/remotes/origin/master.lock': Permission denied From https://github.com/ajaxharg/NodeRed_CerboGX ! 0be4b3f..1c04091 master -> origin/master (unable to update local ref)

<small>code: unexpected_error</small>

```

Having done a push from the terminal, the UI correctly registers the number of commits that need to be pushed. I just can't push them. Has anyone got any words of advice?  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 March 2024 22:16 UTC](https://discourse.nodered.org/t/i-cant-get-github-to-work-from-the-ui-only-the-terminal/84226/2 "2024-03-02T22:16:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
