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

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.

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.

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

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