Den 06. mars 2015 19:19, skrev Simone Orsi:
do not run it as root, use a normal user.
use virtualenv if possible https://pypi.python.org/pypi/virtualenv
as per defaul directories you can check this
http://docs.plone.org/old-reference-manuals/buildout/defaults.html
Thanks again Simone, your help is very appreciated.
I am making progress, but still get errors (see in the bottom of this
thread).
Here is what I did (Debian 7.8 DigitalOcean):
root@mydomain:# apt-get install build-essential pkg-config git-core
python-dev libjpeg62-dev zlib1g-dev libxslt1-dev groff-base
python-virtualenv
root@mydomain:# useradd zope
root@mydomain:# adduser videomaster (set password)
root@mydomain:# su videomaster
videomaster@mydomain:~/ cd (to home)
videomaster@mydomain:~/mkdir plumi
Then followed
http://docs.plone.org/old-reference-manuals/buildout/defaults.html
videomaster@mydomain:~/mkdir .buildout
videomaster@mydomain:~/cd .buildout
videomaster@mydomain:~/.buildout$ mkdir eggs
videomaster@mydomain:~/.buildout$ mkdir downloads
videomaster@mydomain:~/.buildout$ mkdir extends
videomaster@mydomain:~/.buildout$ nano default.cfg
Added the following in default.cfg
[buildout]
eggs-directory = /home/videomaster/.buildout/eggs
download-cache = /home/videomaster/.buildout/downloads
extends-cache = /home/videomaster/.buildout/extends
(saved default.cfg)
$ cd ..
$ cd plumi
$ git clone https://github.com/plumi/plumi.app/
$ cd plumi.app
$ nano buildout.cfg
Added:
[versions]
zc.buildout = 1.7.1
distribute = 0.6.35
(saved buildout.cfg)
$ nano site.cfg
Modified
www-server-name = mydomain.org
www-videoserver-name = newvideos.mydomain.org
(saved site.cfg)
~/plumi.app$ virtualenv .
~/plumi.app$ cd ffmpeg
~/plumi.app/ffmpeg$ ../bin/python bootstrap.py && ./bin/buildout -vN
Looks like all went well in ffmpeg, so elevated up one dir
~/plumi.app$ ./bin/python bootstrap.py && ./bin/buildout -v
Then it worked for a long time, much longer than earlier.
I got a lot of "syntax error" messages along the way, but it continued
and continued, and at the end it looked like you see below. I just
copy&past a little part of the final compiling for you to see.
chgrp: changing group of `/home/videomaster/plumi/plumi.app/var/log':
Operation not permitted
chgrp: changing group of `/home/videomaster/plumi/plumi.app/var':
Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/transcoded': Operation not permitted
mkdir: cannot create directory
`/home/videomaster/plumi/plumi.app/var/filestorage': File exists
mkdir: cannot create directory
`/home/videomaster/plumi/plumi.app/var/blobstorage': File exists
chown: cannot access `/home/videomaster/plumi/plumi.app/eggs': No such
file or directory
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/torrents': Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/torrents_safe': Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/var/filestorage': Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/var/blobstorage': Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/var/log/plone.log': Operation not
permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/var/log/plone-Z2.log': Operation not
permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/parts/transcodedaemon/transcodedaemon.log':
Operation not permitted
chown: changing ownership of
`/home/videomaster/plumi/plumi.app/parts/transcodedaemon': Operation not
permitted
chown: changing ownership of `/tmp//plumitmp': Operation not permitted
chmod: changing permissions of `/tmp//plumitmp': Operation not permitted
Unused options for chown: 'update-command'.
Installing plumisite.
Installing 'zc.recipe.egg', 'collective.recipe.scriptgen'.
We have the distribution that satisfies 'zc.recipe.egg==1.2.2'.
We have the best distribution that satisfies 'collective.recipe.scriptgen'.
Picked: collective.recipe.scriptgen = 0.2
Getting required 'zc.buildout==1.7.1'
We have the distribution that satisfies 'zc.buildout==1.7.1'.
Getting required 'distribute==0.6.35'
We have the distribution that satisfies 'distribute==0.6.35'.
Generated script '/home/videomaster/plumi/plumi.app/bin/plumisite'.
Installing auto-install-plumisite.
Error: only root can use -u USER to change users
For help, use /home/videomaster/plumi/plumi.app/bin/zeoserver -h
While:
Installing auto-install-plumisite.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File
"/home/videomaster/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py",
line 1866, in main
getattr(buildout, command)(args)
File
"/home/videomaster/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py",
line 625, in install
installed_files = self[part]._call(recipe.install)
File
"/home/videomaster/.buildout/eggs/zc.buildout-1.7.1-py2.7.egg/zc/buildout/buildout.py",
line 1345, in _call
return f()
File
"/home/videomaster/.buildout/eggs/collective.recipe.cmd-0.10-py2.7.egg/collective/recipe/cmd/__init__.py",
line 56, in install
self.execute()
File
"/home/videomaster/.buildout/eggs/collective.recipe.cmd-0.10-py2.7.egg/collective/recipe/cmd/__init__.py",
line 69, in execute
run_commands(cmds, self.shell)
File
"/home/videomaster/.buildout/eggs/collective.recipe.cmd-0.10-py2.7.egg/collective/recipe/cmd/__init__.py",
line 39, in run_commands
check_call('%s %s' % (shell, tmpfile), shell=True)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'sh /tmp/tmpV_mayD/run' returned non-zero
exit status 2
*********************************************
Writing picked versions to versions.cfg
*********************************************
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss