zacharyvoase / markdoc

A lightweight Markdown-based wiki system. Current status: abandoned.
http://markdoc.org/
The Unlicense
347 stars 74 forks source link

Error during build with group user #11

Open eonil opened 12 years ago

eonil commented 12 years ago

Hi. I discovered strange behavior while using Markdoc. I'm not expert on Unix system, but it makes me can't use Markdoc as I expected. Please read this issue and let me know what the problem is :(

I was trying to configure Markdoc to use with group account. I configured Markdoc and set its repository being owned by a new user:group markdoc:markdoc. I pushed all users who will use Markdoc into markdoc group. And last, I set the repository directory permission like this.

find . -type d -exec chmod ug+wrxs {} \;  
find . -type f -exec chmod ug+wr-xs {} \;

It worked properly, before I run markdoc build with other user account rather than markdoc itself.

rsync: failed to set times on "/srv/markdoc/var/.html/.": Operation not permitted (1)
rsync: failed to set times on "/srv/markdoc/var/.html/media": Operation not permitted (1)
rsync: failed to set times on "/srv/markdoc/var/.html/media/css": Operation not permitted (1)
rsync: failed to set times on "/srv/markdoc/var/.html/media/sass": Operation not permitted (1)
rsync: failed to set times on "/srv/markdoc/var/.html/project": Operation not permitted (1)
rsync: failed to set times on "/srv/markdoc/var/.html/project/gigaknight-system-prototyping": Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]
Traceback (most recent call last):
  File "/usr/local/bin/markdoc", line 9, in <module>
    load_entry_point('Markdoc==0.6.6', 'console_scripts', 'markdoc')()
  File "/usr/local/lib/python2.6/dist-packages/markdoc/cli/main.py", line 38, in main
    return command(config, args)
  File "/usr/local/lib/python2.6/dist-packages/markdoc/cli/commands.py", line 29, in wrapper
    return function(config, args)
  File "/usr/local/lib/python2.6/dist-packages/markdoc/cli/commands.py", line 270, in build
    sync_html(config, args)
  File "/usr/local/lib/python2.6/dist-packages/markdoc/cli/commands.py", line 29, in wrapper
    return function(config, args)
  File "/usr/local/lib/python2.6/dist-packages/markdoc/cli/commands.py", line 238, in sync_html
    subprocess.check_call(command)
  File "/usr/lib/python2.6/subprocess.py", line 498, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rsync', '-vaxq', '--cvs-exclude', '--delete', '--ignore-errors', '--include=.htaccess', '--exclude=.*', '--exclude=_*', '/srv/markdoc/var/.tmp/', '/usr/local/lib/python2.6/dist-packages/markdoc/static/default-static/', '/srv/markdoc/var/static/', '/srv/markdoc/var/.html/']' returned non-zero exit status 23

I googled and found some opinions it could be a problem of rsync.

This was my final approach to figure out what the problem is. What should I do to make it work?