Blender - Flamenco local server setup
Oh man, I've been through this pain myself in the last week. I was able to get Flamenco up and running but I'm afraid I have zero help when it comes to the issues you're having with permissions.

The first thing is - everything is Python 3. Everything. I configured mine on CentOS 7. This script gets me pretty close to having everything working:

The basic gist is:


Install a LOT of pre-requisites, a lot of which you won't find out until you actually go to compile something. In the case of CentOS/RedHat:


git2u unzip gcc npm openssl openssl-devel libffi-devel python36u python36u-pip python36u-devel libffi-devel python-pip

Install docker and run docker images for Mongo, RabbitMQ and Redis
Check out ALL the components (pillar sdk, piller, blender-cloud, flamenco, a bunch of other things)
From within the blender-cloud repo:


Create a virtualenv for Python that points to a Python 3 runtime
Run the pip install
Run ./gulp (you need to have NPM installed, which is one of the prerequisites)



The documentation on https://pillarframework.org/development/install/ is out of date. You do not need to do the steps for urler

My CentOS script for doing this is below (do not invoke the script as sudo, it will elevate itself when required):

sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install -y epel-release
sudo yum install -y open-vm-tools yum-utils net-tools nano git2u unzip gcc npm screen openssl openssl-devel libffi-devel python36u python36u-pip python36u-devel libffi-devel python-pip

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce

sudo systemctl enable docker
sudo systemctl start docker

sudo systemctl stop firewalld
sudo systemctl disable firewalld

sudo docker run -d -v /data/db:/data/db -p 27017:27017 --name mongo mongo
sudo docker run -d -p 6379:6379 --name redis redis
sudo docker run -d -p 5672:5672 --name rabbit rabbitmq

sudo mkdir /data/storage
sudo chown -R markness:markness /data

mkdir ~/data
cd ~/data

git clone http://git.blender.org/pillar-python-sdk.git
git clone http://git.blender.org/pillar.git
git clone http://git.blender.org/attract.git
git clone http://git.blender.org/flamenco.git
git clone http://git.blender.org/pillar-svnman.git
git clone http://git.blender.org/blender-cloud.git

sudo pip install --upgrade pip
sudo pip install virtualenvwrapper

sudo pip3.6 install --upgrade pip

echo "export WORKON_HOME=$HOME/.virtualenvs" &gt;&gt; ~/.bashrc
echo "export PROJECT_HOME=$HOME/Devel" &gt;&gt; ~/.bashrc
echo "source /usr/bin/virtualenvwrapper.sh" &gt;&gt; ~/.bashrc

source ~/.bashrc

cd ~/data/blender-cloud
mkvirtualenv blender-cloud -p python3.6

pip install -r requirements-dev.txt
./gulp all


It probably won't get you completely on track, but I hope it helps.