Hi,
> In my buildout as far as i see we have : > > [downloads] > varnish = > http://downloads.sourceforge.net/varnish/*varnish-2.1.3.tar.gz* We have the same on Debian 8 so maybe that comment of mine referred to a different environment or an older attempt. I have raw installation notes that I need to edit first before publishing. I'll dump what I have so far below - it's in markdown, so won't look fantastic in email ... - Sam. Main instructions (in progress) that may change if we merge the mentioned branch: ---- Using `plumi.app` `update_buildout` branch: * add install of `libssl-dev` to system preparation * needed to `bootstrap` && `buildout` twice * don't run `bootstrap` in `ffmpeg` sub-directory: just do the buildout ---- Debian 8 raw notes (markdown formatted): Using these instructions as a guide: https://mgogoulos.trinket.io/plumi-4-5#/installation/installation and hence also: https://github.com/plumi/plumi.app/blob/master/docs/INSTALL.rst ```bash sudo apt-get install build-essential pkg-config git-core python-dev libjpeg62-dev zlib1g-dev libxslt1-dev groff-base python-virtualenv Reading package lists... Done Building dependency tree Reading state information... Done Package libjpeg62-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libjpeg62-turbo-dev ``` * OK, so try libjpeg62-turbo-dev: `sudo apt-get install build-essential pkg-config git-core python-dev libjpeg62-turbo-dev zlib1g-dev libxslt1-dev groff-base python-virtualenv` ... works OK * made `plumi` user * changed to user `plumi` (and into their home directory) * `git clone https://github.com/plumi/plumi.app/` * `cd plumi.app` * make local git branch: `git checkout -b dream-local` * `virtualenv .` * modify `site.cfg`: ```bash plumi@dream:~/plumi.app$ git diff -U0 diff --git a/site.cfg b/site.cfg index d9fafd1..5a8f13b 100644 --- a/site.cfg +++ b/site.cfg @@ -52 +52 @@ environment-vars = -portal-id = Plone +portal-id = plumi @@ -61 +61 @@ plumiftp-address = *:21 -ftp-user = root +ftp-user = plumi @@ -64 +64 @@ ftp-user = root -transcode-user = daemon +transcode-user = plumi @@ -70 +70 @@ secret = 1771d99931264d538e75eeb19da7d6a0 -cache-user = root +cache-user = plumi @@ -77 +77 @@ syslog-host = ${site:local-ip} -www-user = www-data +www-user = plumi @@ -79,2 +79,2 @@ www-address = 80 -www-server-name = new.plumi.org -www-videoserver-name = newvideos.plumi.org +www-server-name = dream.engagemedia.org +www-videoserver-name = dream-videos.engagemedia.org @@ -83,2 +83,2 @@ www-videoserver-name = newvideos.plumi.org -zeo-user = zope -zope-user = zope +zeo-user = plumi +zope-user = plumi ``` * `./bin/python bootstrap.py` ```bash plumi@dream:~/plumi.app$ ./bin/python Python 2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> plumi@dream:~/plumi.app$ ./bin/python ./bootstrap.py Traceback (most recent call last): File "./bootstrap.py", line 61, in <module> ).read() in ez File "<string>", line 1 <!DOCTYPE html> ^ SyntaxError: invalid syntax ``` .. this fails as per: https://github.com/plumi/plumi.app/issues/7 .. accordingly: ```bash plumi@dream:~/plumi.app$ git checkout update_bootstrap M site.cfg Branch update_bootstrap set up to track remote branch update_bootstrap from origin. Switched to a new branch 'update_bootstrap' plumi@dream:~/plumi.app$ ./bin/python ./bootstrap.py Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-17.0.zip Extracting in /tmp/tmpkOA_Lh Now working in /tmp/tmpkOA_Lh/setuptools-17.0 Building a Setuptools egg in /tmp/tmpWcQk1H /tmp/tmpWcQk1H/setuptools-17.0-py2.7.egg Creating directory '/home/plumi/plumi.app/parts'. Creating directory '/home/plumi/plumi.app/eggs'. Creating directory '/home/plumi/plumi.app/develop-eggs'. Generated script '/home/plumi/plumi.app/bin/buildout'. ``` * now run the buildout: ``` bash plumi@dream:~/plumi.app$ ./bin/buildout -v … Version conflict while processing requirement setuptools (constrained to setuptools==0.6c11) Getting required 'setuptools==0.6c11' We have no distributions for setuptools that satisfies 'setuptools==0.6c11'. Getting distribution for 'setuptools==0.6c11'. While: Installing. Loading extensions. Getting distribution for 'setuptools==0.6c11'. An internal error occurred due to a bug in either zc.buildout or in a … VersionConflict: (setuptools 17.0 (/home/plumi/plumi.app/eggs/setuptools-17.0-py2.7.egg), Requirement.parse('setuptools==0.6c11')) ``` * Discussion here says "just re-run it and it should be ok" so re-ran ``./bin/python bootstrap.py` and `./bin/buildout -v` ... this went well until the `nginx` build which failed with: ``` ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-openssl=<path> option. nginx-build: Command failed with exit code 1: ./configure --prefix="/home/plumi/plumi.app/parts/nginx-build" --with-http_ssl_module --with-http_xslt_module --with-http_stub_status_module --with-pcre=/home/plumi/plumi.app/parts/pcre-source --conf-path=/home/plumi/plumi.app/templates/nginx/default.conf --error-log-path=/home/plumi/plumi.app/var/log/main-error.log --pid-path=/home/plumi/plumi.app/var/main.pid --lock-path=/home/plumi/plumi.app/var/main.lock --add-module=/home/plumi/plumi.app/parts/ngx_cache_purge --add-module=/home/plumi/plumi.app/parts/ngx_upload_module nginx-build: Compilation error. The package is left as is at /home/plumi/plumi.app/parts/nginx-build__compile__/nginx-1.3.8 where you can inspect what went wrong While: Installing nginx-build. Error: System error plumi@dream:~/plumi.app$ ``` (this means installing the OpenSSL development libraries should have been included in the installation instructions part where the system is prepared) - fix by `sudo apt-get install libssl-dev` * retry buildout ... appears to have worked * run the `buildout` for ffmpeg: ```bash $ cd ffmpeg/ $ buildout -v ``` - seems to run OK * `cd ..` and start supervisord: `./bin/supervisord`. Check: ```bash plumi@dream:~/plumi.app$ ./bin/supervisorctl status cache RUNNING pid 25941, uptime 0:00:38 nginx FATAL Exited too quickly (process log may have details) ploneftp FATAL Exited too quickly (process log may have details) transcodedaemon RUNNING pid 25939, uptime 0:00:38 uwsgi RUNNING pid 25937, uptime 0:00:38 worker RUNNING pid 25938, uptime 0:00:38 zeo RUNNING pid 25936, uptime 0:00:38 ``` - most things are working except `nginx` and `ploneftp` .. we'll come back to those * set up apache virtual host ```bash sam@dream> cat dream.engagemedia.org.conf <VirtualHost *:80> ServerName dream.engagemedia.org CustomLog /var/log/apache2/dream.engagemedia.org.log combined env=!dblog CustomLog /var/log/apache2/dream.engagemedia.org.log combined env=dblog ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> RewriteEngine On RewriteRule ^(.*) http://localhost:8080/VirtualHostBase/http/dream.engagemedia.org:80/plumi/VirtualHostRoot/$1 [L,P] </VirtualHost> ``` * why nginx didn't start: `nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)` ... fair enough: we forgot to change the nginx port to an unprivileged value * why didn't ploneftp start? Same reason: `socket.error: [Errno 13] Permission denied` * changed ploneftp and nginx ports and re-ran buildout (`.bin/buildout -Nv`) with the result: ``` plumi@dream:~/plumi.app$ ./bin/supervisorctl status cache RUNNING pid 26485, uptime 0:00:13 nginx RUNNING pid 26489, uptime 0:00:13 ploneftp RUNNING pid 26484, uptime 0:00:14 transcodedaemon RUNNING pid 26480, uptime 0:00:15 uwsgi RUNNING pid 26476, uptime 0:00:15 worker RUNNING pid 26479, uptime 0:00:15 zeo RUNNING pid 26475, uptime 0:00:15 ``` ## Transcode daemon not working .. in progress ---- -- Sam Stainsby Technical Director, Sustainable Software Pty Ltd (ABN: 32117186286) Web: http://www.sustainablesoftware.com.au/ Email: [email protected] Phone: +61 434 288 937 / Australia: 0434 288 937 _______________________________________________ Discuss mailing list [email protected] http://lists.plumi.org/listinfo/discuss
