"stderr: operation not permitted" on bootstrap


(Lee_Ars) #1

I haven’t been able to upgrade Discourse since 1.7.0.beta9 due to a frustrating error that I’m not smart enough to understand. On rebuilding or boostrapping, I get the following:

root@dockmaster:/var/discourse# ./launcher rebuild app

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/discourse:1.3.9' locally
1.3.9: Pulling from discourse/discourse
b87f06441b40: Pulling fs layer
69c598d5b6ca: Pulling fs layer
69c598d5b6ca: Verifying Checksum
69c598d5b6ca: Download complete
b87f06441b40: Retrying in 5 seconds
b87f06441b40: Retrying in 4 seconds
b87f06441b40: Retrying in 3 seconds
b87f06441b40: Retrying in 2 seconds
b87f06441b40: Retrying in 1 second
b87f06441b40: Verifying Checksum
b87f06441b40: Download complete
/usr/bin/docker: failed to register layer: ApplyLayer exit status 1 stdout:  stderr: operation not permitted.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly

See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam

I checked the topic listed, and I can run the command there without issue:

root@dockmaster:/var/discourse# docker run --rm -i -a stdin -a stdout ubuntu echo 1
1
root@dockmaster:/var/discourse# 

Running docker --version returns Docker version 1.12.1, build 23cf638.

Any help would be appreciated. My forum is currently offline and I am absolutely clueless how to bring it back.


(Rafael dos Santos Silva) #2

First, the launcher script updates by itself, but yours didn’t try to update :thinking:

Try:

cd /var/discourse
git pull
./launcher rebuild app

(Lee_Ars) #3

That worked, thank you. After manually executing the git pull operation, the rebuild proceeded as normal.

I spent like an hour trying various things, but turns out your fix was all I needed to do. That was really frustrating!


(Rafael dos Santos Silva) #4

That was unlucky, I think launcher self updates since 2014 or something (before my time).

From now on, a simple rebuild will update the scripts for you :slight_smile:


(Lee_Ars) #5

Yeah, I usually update discourse by doing a rebuild instead of using the in-app upgrade, and I’ve seen it git pull itself dozens of times. I have no idea why it suddenly decided to stop…