Page MenuHomePhabricator

Can't push to diffusion
Closed, ResolvedPublic

Description

I am trying to push commits for quickstatements to diffusion, here:
https://phabricator.wikimedia.org/source/tool-quickstatements/browse/master/

But I always get

fatal: unable to access 'https://phabricator.wikimedia.org/diffusion/2010/tool-quickstatements.git/': The requested URL returned error: 403

Maybe because I have TFA on Phabricator?

Event Timeline

@Magnus can you try it with ssh:// instead of https://? I think that might prove more reliable.

To push over https you need to set up a vcs password in phab settings. To push with ssh you need to upload an ssh public key to phab.

Edit: sorry, pinged the wrong person, my apologies @MarcoAurelio

@Magnus: Could you please answer the last comment?

Unfortunately closing this Phabricator task as no further information has been provided.

@Magnus: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!

tools.quickstatements@tools-sgebastion-07:~$ git remote remove origin
tools.quickstatements@tools-sgebastion-07:~$ git remote add origin ssh://phabricator.wikimedia.org/diffusion/2010/tool-quickstatements.git/
tools.quickstatements@tools-sgebastion-07:~$ git push fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

tools.quickstatements@tools-sgebastion-07:~$ git push --set-upstream origin master ssh: connect to host phabricator.wikimedia.org port 22: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Tried again with ssh://vcs@git-ssh.wikimedia.org/source/tool-quickstatements.git, no joy:

Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

What's your ssh config set to? Make sure you are using the correct username and ssh key.

Magnus changed the task status from Declined to Resolved.Jun 24 2020, 8:03 AM

I have "forked" it into github. Using diffusion was a mistake in the first place. Now at https://github.com/magnusmanske/quickstatements

@Magnus: Does that mean that https://phabricator.wikimedia.org/source/tool-quickstatements/browse/master/ will get out of sync and should be archived?
Asking also as I lost track what's hosted on https://bitbucket.org/magnusmanske/workspace/repositories or Diffusion or Github or maybe somewhere else...

@Magnus: Does that mean that https://phabricator.wikimedia.org/source/tool-quickstatements/browse/master/ will get out of sync and should be archived?

Yes.

Asking also as I lost track what's hosted on https://bitbucket.org/magnusmanske/workspace/repositories or Diffusion or Github or maybe somewhere else...

Quickstatements was the only one I had at Diffusion. Older stuff is at bitbucket, newer stuff (especially Rust based) at github.