Why won't my files push to my SFTP server?

Asked by Matthew Pirocchi

I'm having trouble pushing my branch to an SFTP server. I'm following the instructions here:
http://doc.bazaar-vcs.org/bzr.dev/en/mini-tutorial/index.html#publishing-your-branch-with-sftp

When I push the branch, everything seems to complete successfully. I get the message "Created new branch.", and if I do "bzr push" again, it says "No new revisions to push." But when I ssh to the SFTP server to look at the directory I put my branch in, only the .bzr directory is there. None of my files are there.
Does anyone have any idea why this might be?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Klaus Rennecke
Solved:
Last query:
Last reply:
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#1

Maybe this will help you,

From bzr help push:

Description:
  The target branch will not have its working tree populated because this
  is both expensive, and is not supported on remote file systems.

  Some smart servers or protocols *may* put the working tree in place in
  the future.

You might want to follow this howto [1] to deploy a complete bzr-loggerhead remote server

Links:

[1] http://wiki.flexion.org/LoggerheadServer.html?BazaarServer

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#2

Also, and just if you need a working tree in your sftp server you can run bzr update as shown in working-trees help:

If you want to have a working tree on a remote machine that you push to you
can either run 'bzr update' in the remote branch after each push, or use some
other method to update the tree during the push. There is an 'rspush' plugin
that will update the working tree using rsync as well as doing a push. There
is also a 'push-and-update' plugin that automates running 'bzr update' via SSH
after each push.

HTH

Revision history for this message
Best Klaus Rennecke (kre) said :
#3

Have a look at http://bazaar-vcs.org/BzrTips?highlight=(sshfs) if your SFTP server does not allow installing bzr or hooks into the repository. For web development, I am using sshfs to keep the public version updated.

For mounting, you will want to use the options "-o idmap=user,workaround=rename" to map the remote user to yourself, and work around an issue with renaming onto an existing file in the SFTP protocol.

To sum it up into commands:
  Prequesites: sudo apt-get install fuse-utils sshfs
  Mount dir: mdir ~/sftp.my-site.org
  Mounting: sshfs <email address hidden>: ~/sftp.my-site.org -o idmap=user,workaround=rename
  Run update: cd ~/sftp.my-site.org; bzr update

Notes:
  Replace "sftp-username" with your user name at the SFTP server.
  Replace "sftp.my-site.org" with the SFTP server name.
  Make sure to include the trailing colon : after the server name if using the home directory there.

Revision history for this message
Matthew Pirocchi (matthew-pirocchi) said :
#4

Thanks Klaus, I think that will be perfect once I get it working. I am having some trouble with the "mdir" command, though. Every time I use it, I get this:

Can't open /dev/fd0: No such file or directory
Cannot initialize 'A:'

This happens regardless of what I pass the command. Any ideas on what it means?

Revision history for this message
quack (quack) said :
#5

Klaus' commands include a typo; the command to make the "Mount dir" should be "mkdir", not "mdir".

Revision history for this message
Matthew Pirocchi (matthew-pirocchi) said :
#6

Thanks Klaus Rennecke, that solved my question.

Revision history for this message
Klaus Rennecke (kre) said :
#7

Thank you quack for finding and clarifying the typo in my answer above. Unfortunately it seems I cannot correct the answer.