File permissions after FTP push

Lukas Zapletal lukas91 at zapletalovi.com
Tue Mar 3 10:15:31 GMT 2009


 >    LZ> I am pushing my repos via FTP on my site and making it
 >    LZ> public with Apache (HTTP). The problem is when I create
 >    LZ> my repo and push it via FTP the permissions of all files
 >    LZ> and directories in the .bzr dir is 700. This means Apache
 >    LZ> (running under different user) is not able to read.
 >
 > bzr itself try to set chmod bits as 755 or 644 by default if the
 > server supports it. Try to look at your .bzr.log file for
 > messages like:
 >
 >  "FTP site chmod: setting permissions to %s on %s",
 >  "FTP Could not set permissions to %s on %s. %s",
 >
 > If you end up with 700, you should also check that your ftp
 > server support the chmod bits and what umask it is enforcing.

Heres the log:

0.063  encoding stdout as sys.stdout encoding 'UTF-8'
0.064  bzr arguments: [u'push', u'ftp://xxxxx@yyyyy.com/repub/bzr/tox264']
0.065  looking for plugins in /home/lzap/.bazaar/plugins
0.065  looking for plugins in 
/usr/lib/python2.5/site-packages/bzrlib/plugins
0.065  Plugin name __init__ already loaded
0.065  Plugin name __init__ already loaded
0.111  bzr-svn: using Subversion 1.5.1 ()
0.189  encoding stdout as sys.stdout encoding 'UTF-8'
0.213  FTP get: /repub/bzr/tox264/.bzr/branch-format
0.214  Constructing FTP instance against ('yyyyyy.com', None,
'myuser', '********', False)
2.517  opening SVN RA connection to 'ftp://xxxxx@yyyyy.com/repub/bzr/tox264'
2.521  Unable to open <bzrlib.transport.ftp.FtpTransport
url=ftp://xxxxx@yyyyy.com/repub/bzr/tox264/> with Subversion:
Unrecognized URL scheme for 'ftp://xxxxx@yyyyy.com/repub/bzr/tox264'
2.522  FTP mkd: /repub/bzr/tox264
2.527  FTP mkd: /repub/bzr/tox264
2.562  opening working tree '/home/lzap/projects/tox264'
2.562  FTP stat: /repub/bzr/tox264
2.580  FTP mkd: /repub/bzr/tox264/.bzr
2.585  FTP site chmod: setting permissions to 448 on /repub/bzr/tox264/.bzr
2.590  FTP stat: /repub/bzr/tox264/.bzr
2.605  FTP mkd: /repub/bzr/tox264/.bzr/branch-lock
2.609  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/branch-lock
2.614  FTP mkd: /repub/bzr/tox264/.bzr/branch-lock/srf81f4u06.tmp
2.620  FTP put: /repub/bzr/tox264/.bzr/branch-lock/srf81f4u06.tmp/info
2.661  FTP rename: /repub/bzr/tox264/.bzr/branch-lock/srf81f4u06.tmp
=> /repub/bzr/tox264/.bzr/branch-lock/held
2.669  FTP get: /repub/bzr/tox264/.bzr/branch-lock/held/info
2.694  FTP put: /repub/bzr/tox264/.bzr/README
2.741  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/README
2.746  FTP put: /repub/bzr/tox264/.bzr/branch-format
2.802  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch-format
2.806  FTP get: /repub/bzr/tox264/.bzr/branch-lock/held/info
2.832  FTP rename: /repub/bzr/tox264/.bzr/branch-lock/held =>
/repub/bzr/tox264/.bzr/branch-lock/releasing.w3ayblyd3unwe4186p5j.tmp
2.845  FTP rm: 
/repub/bzr/tox264/.bzr/branch-lock/releasing.w3ayblyd3unwe4186p5j.tmp/info
2.850  FTP rmd:
/repub/bzr/tox264/.bzr/branch-lock/releasing.w3ayblyd3unwe4186p5j.tmp
2.857  FTP get: /repub/bzr/tox264/.bzr/repository/format
2.877  FTP get: /repub/bzr/.bzr/branch-format
2.896  opening SVN RA connection to 'ftp://xxxxx@yyyyy.com/repub/bzr'
2.898  Unable to open <bzrlib.transport.ftp.FtpTransport
url=ftp://xxxxx@yyyyy.com/repub/bzr/> with Subversion: Unrecognized
URL scheme for 'ftp://xxxxx@yyyyy.com/repub/bzr'
2.899  FTP get: /repub/.bzr/branch-format
2.917  opening SVN RA connection to 'ftp://xxxxx@yyyyy.com/repub'
2.920  Unable to open <bzrlib.transport.ftp.FtpTransport
url=ftp://xxxxx@yyyyy.com/repub/> with Subversion: Unrecognized URL
scheme for 'ftp://xxxxx@yyyyy.com/repub'
2.921  FTP get: /.bzr/branch-format
2.938  opening SVN RA connection to 'ftp://xxxxx@yyyyy.com'
2.940  Unable to open <bzrlib.transport.ftp.FtpTransport
url=ftp://xxxxx@yyyyy.com/> with Subversion: Unrecognized URL scheme
for 'ftp://xxxxx@yyyyy.com'
2.941  creating repository in ftp://xxxxx@yyyyy.com/repub/bzr/tox264/.bzr/.
2.941  FTP stat: /repub/bzr/tox264/.bzr
2.959  FTP mkd: /repub/bzr/tox264/.bzr/repository
2.965  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository
2.970  FTP stat: /repub/bzr/tox264/.bzr/repository
2.988  FTP mkd: /repub/bzr/tox264/.bzr/repository/lock
2.993  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository/lock
3.002  FTP mkd: /repub/bzr/tox264/.bzr/repository/lock/plnvtmm474.tmp
3.008  FTP put: /repub/bzr/tox264/.bzr/repository/lock/plnvtmm474.tmp/info
3.082  FTP rename:
/repub/bzr/tox264/.bzr/repository/lock/plnvtmm474.tmp =>
/repub/bzr/tox264/.bzr/repository/lock/held
3.109  FTP get: /repub/bzr/tox264/.bzr/repository/lock/held/info
3.145  FTP stat: /repub/bzr/tox264/.bzr
3.168  FTP mkd: /repub/bzr/tox264/.bzr/repository/indices
3.172  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository/indices
3.177  FTP mkd: /repub/bzr/tox264/.bzr/repository/obsolete_packs
3.188  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository/obsolete_packs
3.193  FTP mkd: /repub/bzr/tox264/.bzr/repository/packs
3.200  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository/packs
3.205  FTP mkd: /repub/bzr/tox264/.bzr/repository/upload
3.209  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/repository/upload
3.215  FTP put: /repub/bzr/tox264/.bzr/repository/pack-names
3.257  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/pack-names
3.266  FTP put: /repub/bzr/tox264/.bzr/repository/format
3.305  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/format
3.310  FTP get: /repub/bzr/tox264/.bzr/repository/lock/held/info
3.336  FTP rename: /repub/bzr/tox264/.bzr/repository/lock/held =>
/repub/bzr/tox264/.bzr/repository/lock/releasing.98bi8a4p2o8alx7trex1.tmp
3.345  FTP rm: 
/repub/bzr/tox264/.bzr/repository/lock/releasing.98bi8a4p2o8alx7trex1.tmp/info
3.352  FTP rmd:
/repub/bzr/tox264/.bzr/repository/lock/releasing.98bi8a4p2o8alx7trex1.tmp
3.358  FTP stat: /repub/bzr/tox264/.bzr/repository
3.375  FTP get: /repub/bzr/tox264/.bzr/repository/pack-names
3.412  FTP rm: /repub/bzr/tox264/.bzr/repository/no-working-trees
3.427  FTP get: /repub/bzr/tox264/.bzr/repository/pack-names
3.490  Using fetch logic to copy between
KnitPackRepository('file:///home/lzap/projects/tox264/.bzr/repository/')(<RepositoryFormatKnitPack1>)
and 
KnitPackRepository('ftp://xxxxx@yyyyy.com/repub/bzr/tox264/.bzr/repository/')(<RepositoryFormatKnitPack1>)
3.492  FTP put:
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.532  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.537  FTP has check: 3xee2kvkm1cx8wvj4qit.fetch =>
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.541  FTP has:
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.555  FTP appe to
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.555  FTP appe (try 0) to
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.730  FTP has check: 3xee2kvkm1cx8wvj4qit.fetch =>
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.741  FTP has:
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.753  FTP appe to
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.753  FTP appe (try 0) to
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch
3.783  FTP put:
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.rix
3.866  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.rix
3.871  FTP put:
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.iix
3.925  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.iix
3.929  FTP put:
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.tix
3.973  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.tix
3.978  FTP put:
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.six
4.018  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.six
4.023  FTP rename:
/repub/bzr/tox264/.bzr/repository/upload/3xee2kvkm1cx8wvj4qit.fetch =>
/repub/bzr/tox264/.bzr/repository/packs/dd1c4e0438ea6f40a66df5d253359d52.pack
4.033  FTP mkd: /repub/bzr/tox264/.bzr/repository/lock/f6oyne6hka.tmp
4.038  FTP put: /repub/bzr/tox264/.bzr/repository/lock/f6oyne6hka.tmp/info
4.091  FTP rename:
/repub/bzr/tox264/.bzr/repository/lock/f6oyne6hka.tmp =>
/repub/bzr/tox264/.bzr/repository/lock/held
4.100  FTP get: /repub/bzr/tox264/.bzr/repository/lock/held/info
4.127  FTP get: /repub/bzr/tox264/.bzr/repository/pack-names
4.164  FTP put: /repub/bzr/tox264/.bzr/repository/pack-names
4.219  FTP rm: 
/repub/bzr/tox264/.bzr/repository/tmp.pack-names.1235943579.275343895.23463.hmqu4e9zyh
4.223  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/repository/pack-names
4.228  FTP get: /repub/bzr/tox264/.bzr/repository/lock/held/info
4.249  FTP rename: /repub/bzr/tox264/.bzr/repository/lock/held =>
/repub/bzr/tox264/.bzr/repository/lock/releasing.3tu5gjyart000md342jz.tmp
4.258  FTP rm: 
/repub/bzr/tox264/.bzr/repository/lock/releasing.3tu5gjyart000md342jz.tmp/info
4.265  FTP rmd:
/repub/bzr/tox264/.bzr/repository/lock/releasing.3tu5gjyart000md342jz.tmp
4.271  FTP get:
/repub/bzr/tox264/.bzr/repository/indices/dd1c4e0438ea6f40a66df5d253359d52.rix
4.295  creating branch <bzrlib.branch.BzrBranchFormat6 object at
0xb6dd906c> in ftp://xxxxx@yyyyy.com/repub/bzr/tox264/.bzr/
4.295  FTP stat: /repub/bzr/tox264/.bzr
4.325  FTP mkd: /repub/bzr/tox264/.bzr/branch
4.330  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/branch
4.334  FTP stat: /repub/bzr/tox264/.bzr/branch
4.350  FTP mkd: /repub/bzr/tox264/.bzr/branch/lock
4.355  FTP site chmod: setting permissions to 448 on
/repub/bzr/tox264/.bzr/branch/lock
4.361  FTP mkd: /repub/bzr/tox264/.bzr/branch/lock/b8ff5aoh1n.tmp
4.366  FTP put: /repub/bzr/tox264/.bzr/branch/lock/b8ff5aoh1n.tmp/info
4.403  FTP rename: /repub/bzr/tox264/.bzr/branch/lock/b8ff5aoh1n.tmp
=> /repub/bzr/tox264/.bzr/branch/lock/held
4.412  FTP get: /repub/bzr/tox264/.bzr/branch/lock/held/info
4.436  FTP put: /repub/bzr/tox264/.bzr/branch/last-revision
4.477  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch/last-revision
4.482  FTP put: /repub/bzr/tox264/.bzr/branch/branch.conf
4.524  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch/branch.conf
4.528  FTP put: /repub/bzr/tox264/.bzr/branch/tags
4.565  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch/tags
4.569  FTP put: /repub/bzr/tox264/.bzr/branch/format
4.616  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch/format
4.622  FTP get: /repub/bzr/tox264/.bzr/branch/lock/held/info
4.644  FTP rename: /repub/bzr/tox264/.bzr/branch/lock/held =>
/repub/bzr/tox264/.bzr/branch/lock/releasing.86quo1zp6o9t9ou1g8mk.tmp
4.653  FTP rm: 
/repub/bzr/tox264/.bzr/branch/lock/releasing.86quo1zp6o9t9ou1g8mk.tmp/info
4.658  FTP rmd:
/repub/bzr/tox264/.bzr/branch/lock/releasing.86quo1zp6o9t9ou1g8mk.tmp
4.664  FTP stat: /repub/bzr/tox264/.bzr/branch
4.685  FTP get: /repub/bzr/tox264/.bzr/repository/format
4.707  FTP stat: /repub/bzr/tox264/.bzr/repository
4.726  FTP get: /repub/bzr/tox264/.bzr/repository/pack-names
4.754  FTP mkd: /repub/bzr/tox264/.bzr/branch/lock/dihc2p70i7.tmp
4.759  FTP put: /repub/bzr/tox264/.bzr/branch/lock/dihc2p70i7.tmp/info
4.797  FTP rename: /repub/bzr/tox264/.bzr/branch/lock/dihc2p70i7.tmp
=> /repub/bzr/tox264/.bzr/branch/lock/held
4.808  FTP get: /repub/bzr/tox264/.bzr/branch/lock/held/info
4.833  FTP get: /repub/bzr/tox264/.bzr/branch/last-revision
4.861  FTP get: /repub/bzr/tox264/.bzr/branch/branch.conf
4.904  FTP put: /repub/bzr/tox264/.bzr/branch/last-revision
4.951  FTP rm: 
/repub/bzr/tox264/.bzr/branch/tmp.last-revision.1235943580.018655062.23463.q1qsfvppr2
4.955  FTP site chmod: setting permissions to 384 on
/repub/bzr/tox264/.bzr/branch/last-revision
4.962  FTP get: /repub/bzr/tox264/.bzr/branch/lock/held/info
4.994  FTP rename: /repub/bzr/tox264/.bzr/branch/lock/held =>
/repub/bzr/tox264/.bzr/branch/lock/releasing.vo6rly1a99h1ky4621g1.tmp
5.004  FTP rm: 
/repub/bzr/tox264/.bzr/branch/lock/releasing.vo6rly1a99h1ky4621g1.tmp/info
5.008  FTP rmd:
/repub/bzr/tox264/.bzr/branch/lock/releasing.vo6rly1a99h1ky4621g1.tmp
5.015  FTP has check: no-working-trees =>
/repub/bzr/tox264/.bzr/repository/no-working-trees
5.019  FTP has not:
/repub/bzr/tox264/.bzr/repository/no-working-trees: 550
/repub/bzr/tox264/.bzr/repository/no-working-trees: No such file or
directory
5.021  opening working tree '/home/lzap/projects/tox264'
5.027  FTP get: /repub/bzr/tox264/.bzr/branch/format
5.061  FTP stat: /repub/bzr/tox264/.bzr/branch
5.221  FTP get: /repub/bzr/tox264/.bzr/repository/format
5.257  FTP stat: /repub/bzr/tox264/.bzr/repository
[23463] 2009-03-01 22:39:40.360 INFO: Created new branch.
5.279  return code 0

My umask is 0027 - can be a problem?

 > What server are you using ? OS ? Version ? bzr version ?

lzap at teevee:~/A_MUSIC/Pop$ uname -a
Linux teevee 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 
GNU/Linux
lzap at teevee:~/A_MUSIC/Pop$ cat /etc/issue
Ubuntu 8.10 \n \l

lzap at teevee:~/A_MUSIC/Pop$ bzr --version
Bazaar (bzr) 1.6.1
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/lzap/.bazaar
  Bazaar log file: /home/lzap/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

ps - reposting

--
Lukas Zapletal
http://lukas.zapletalovi.com




More information about the bazaar mailing list