ogin as: root
root@(removed IP)'s password:
You are required to change your password immediately (root enforced)
Welcome to Ubuntu 14.10 (GNU/Linux 3.16.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sat Nov 1 17:08:41 EDT 2014
System load: 0.0 Processes: 73
Usage of /: 7.5% of 19.56GB Users logged in: 0
Memory usage: 16% IP address for eth0: (removed IP)
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Changing password for root.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
root@my-kegbot:~# export INSTALLFLAGS="--nopycore --allow_root"
root@my-kegbot:~# bash -c "$(curl -fsSL https://raw.github.com/Kegbot/kegberry/master/install.sh)"
+ sudo bash -c 'DEBIAN_FRONTEND=noninteractive apt-get -yq install python-setuptools'
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
python-setuptools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 218 kB of archives.
After this operation, 770 kB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu/ utopic/main python-setuptools all 5.5.1-1 [218 kB]
Fetched 218 kB in 0s (7,058 kB/s)
Selecting previously unselected package python-setuptools.
(Reading database ... 86197 files and directories currently installed.)
Preparing to unpack .../python-setuptools_5.5.1-1_all.deb ...
Unpacking python-setuptools (5.5.1-1) ...
+ sudo easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 1.5.6
Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e
Processing pip-1.5.6.tar.gz
Writing /tmp/easy_install-FJFKcS/pip-1.5.6/setup.cfg
Running pip-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FJFKcS/pip-1.5.6/egg-dist-tmp-XVzm2B
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.5.6 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
+ sudo pip install -U virtualenv
Downloading/unpacking virtualenv
Downloading virtualenv-1.11.6-py2.py3-none-any.whl (1.6MB): 1.6MB downloaded
Installing collected packages: virtualenv
Successfully installed virtualenv
Cleaning up...
+ sudo pip install -U --pre kegberry
Downloading/unpacking kegberry
Downloading kegberry-2.0.0b4.tar.gz
Running setup.py (path:/tmp/pip_build_root/kegberry/setup.py) egg_info for package kegberry
Downloading/unpacking python-gflags (from kegberry)
Downloading python-gflags-2.0.tar.gz (65kB): 65kB downloaded
Running setup.py (path:/tmp/pip_build_root/python-gflags/setup.py) egg_info for package python-gflags
Installing collected packages: kegberry, python-gflags
Running setup.py install for kegberry
changing mode of build/scripts-2.7/kegberry from 644 to 755
changing mode of /usr/local/bin/kegberry to 755
Running setup.py install for python-gflags
Successfully installed kegberry python-gflags
Cleaning up...
+ kegberry --nopycore --allow_root install
oOOOOOo
,| oO Kegberry v2.0.0b4 - http://kegberry.com
//| |
\\| | "Beer: So much more than just a breakfast drink."
`| | -- Homer Simpson
`-----`
INFO : Updating package list ...
INFO : Installing required packages ...
INFO : Cleaning up ...
INFO : Checking if database exists ...
INFO : Creating database ...
INFO : Installing MySQL timezones ...
INFO : User "kegbot" does not exist, creating ...
INFO : Checking/installing virtualenv "kegbot-server.venv"...
INFO : Installing python server packages, this may take a while ...
Downloading/unpacking kegbot==1.1.0
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/kegbot/setup.py) egg_info for package kegbot
Downloading/unpacking kegbot-pyutils==0.1.7 (from kegbot==1.1.0)
Downloading kegbot-pyutils-0.1.7.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/kegbot-pyutils/setup.py) egg_info for package kegbot-pyutils
Downloading/unpacking kegbot-api==1.1.0 (from kegbot==1.1.0)
Downloading kegbot-api-1.1.0.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/kegbot-api/setup.py) egg_info for package kegbot-api
Downloading/unpacking Django==1.6.6 (from kegbot==1.1.0)
Downloading/unpacking django-imagekit==3.1 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-imagekit/setup.py) egg_info for package django-imagekit
Downloading/unpacking django-registration==1.0 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-registration/setup.py) egg_info for package django-registration
Downloading/unpacking django-socialregistration==0.5.10 (from kegbot==1.1.0)
Downloading django-socialregistration-0.5.10.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-socialregistration/setup.py) egg_info for package django-socialregistration
Downloading/unpacking django-bootstrap-pagination==0.1.10 (from kegbot==1.1.0)
Downloading django-bootstrap-pagination-0.1.10.zip
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-bootstrap-pagination/setup.py) egg_info for package django-bootstrap-pagination
Downloading/unpacking Celery==3.1.11 (from kegbot==1.1.0)
Downloading/unpacking kombu==3.0.16 (from kegbot==1.1.0)
Downloading/unpacking South==0.8.4 (from kegbot==1.1.0)
Downloading/unpacking django-crispy-forms==1.2.8 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-crispy-forms/setup.py) egg_info for package django-crispy-forms
Downloading/unpacking foursquare==2014.04.10 (from kegbot==1.1.0)
Downloading foursquare-2014.04.10.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/foursquare/setup.py) egg_info for package foursquare
warning: no previously-included files found matching 'foursquare/tests/_creds.py'
Downloading/unpacking gunicorn==18.0 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/gunicorn/setup.py) egg_info for package gunicorn
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
Downloading/unpacking MySQL-python==1.2.5 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/MySQL-python/setup.py) egg_info for package MySQL-python
Downloading/unpacking pillow==2.4.0 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/pillow/setup.py) egg_info for package pillow
Downloading/unpacking protobuf==2.5.0 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/protobuf/setup.py) egg_info for package protobuf
Downloading/unpacking python-gflags==2.0 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/python-gflags/setup.py) egg_info for package python-gflags
Downloading/unpacking django-redis==3.6.1 (from kegbot==1.1.0)
Downloading django-redis-3.6.1.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/django-redis/setup.py) egg_info for package django-redis
warning: no files found matching 'redis_cache/stats/templates/redis_cache/*.html'
warning: no files found matching 'redis_cache/stats/static/redis_cache/*'
Downloading/unpacking pytz==2014.2 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/pytz/setup.py) egg_info for package pytz
Downloading/unpacking redis==2.9.1 (from kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/redis/setup.py) egg_info for package redis
warning: no previously-included files found matching '__pycache__'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking requests==2.2.1 (from kegbot==1.1.0)
Downloading/unpacking tweepy==2.2 (from kegbot==1.1.0)
Downloading tweepy-2.2.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/tweepy/setup.py) egg_info for package tweepy
Downloading/unpacking jsonfield==0.9.20 (from kegbot==1.1.0)
Downloading jsonfield-0.9.20.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/jsonfield/setup.py) egg_info for package jsonfield
Downloading/unpacking isodate==0.4.9 (from kegbot-pyutils==0.1.7->kegbot==1.1.0)
Downloading isodate-0.4.9.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/isodate/setup.py) egg_info for package isodate
Downloading/unpacking django-appconf>=0.5 (from django-imagekit==3.1->kegbot==1.1.0)
Downloading django_appconf-0.6-py2.py3-none-any.whl
Downloading/unpacking pilkit>=0.2.0 (from django-imagekit==3.1->kegbot==1.1.0)
Downloading pilkit-1.1.12.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/pilkit/setup.py) egg_info for package pilkit
no previously-included directories found matching 'tests'
Downloading/unpacking oauth2 (from django-socialregistration==0.5.10->kegbot==1.1.0)
Downloading oauth2-1.5.211.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/oauth2/setup.py) egg_info for package oauth2
Downloading/unpacking python-openid (from django-socialregistration==0.5.10->kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/python-openid/setup.py) egg_info for package python-openid
warning: no files found matching 'CHANGELOG'
warning: no files found matching '*.css' under directory 'doc'
warning: no files found matching '*.html' under directory 'doc'
Downloading/unpacking mock (from django-socialregistration==0.5.10->kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/mock/setup.py) egg_info for package mock
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.js' under directory 'docs'
Downloading/unpacking billiard>=3.3.0.17,<3.4 (from Celery==3.1.11->kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/billiard/setup.py) egg_info for package billiard
warning: no files found matching '*.py' under directory 'Lib'
Downloading/unpacking amqp>=1.4.5,<2.0 (from kombu==3.0.16->kegbot==1.1.0)
Downloading/unpacking anyjson>=0.3.3 (from kombu==3.0.16->kegbot==1.1.0)
Downloading anyjson-0.3.3.tar.gz
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/anyjson/setup.py) egg_info for package anyjson
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./kegbot-server.venv/lib/python2.7/site-packages (from protobuf==2.5.0->kegbot==1.1.0)
Downloading/unpacking six (from django-appconf>=0.5->django-imagekit==3.1->kegbot==1.1.0)
Downloading six-1.8.0-py2.py3-none-any.whl
Downloading/unpacking httplib2 (from oauth2->django-socialregistration==0.5.10->kegbot==1.1.0)
Running setup.py (path:/home/kegbot/kegbot-server.venv/build/httplib2/setup.py) egg_info for package httplib2
Installing collected packages: kegbot, kegbot-pyutils, kegbot-api, Django, django-imagekit, django-registration, django-socialregistration, django-bootstrap-pagination, Celery, kombu, South, django-crispy-forms, foursquare, gunicorn, MySQL-python, pillow, protobuf, python-gflags, django-redis, pytz, redis, requests, tweepy, jsonfield, isodate, django-appconf, pilkit, oauth2, python-openid, mock, billiard, amqp, anyjson, six, httplib2
Running setup.py install for kegbot
changing mode of build/scripts-2.7/kegbot from 664 to 775
changing mode of build/scripts-2.7/setup-kegbot.py from 664 to 775
changing mode of /home/kegbot/kegbot-server.venv/bin/setup-kegbot.py to 775
changing mode of /home/kegbot/kegbot-server.venv/bin/kegbot to 775
Installing instance script to /home/kegbot/kegbot-server.venv/bin
Running setup.py install for kegbot-pyutils
Skipping installation of /home/kegbot/kegbot-server.venv/lib/python2.7/site-packages/kegbot/__init__.py (namespace package)
Installing /home/kegbot/kegbot-server.venv/lib/python2.7/site-packages/kegbot_pyutils-0.1.7-py2.7-nspkg.pth
Running setup.py install for kegbot-api
Skipping installation of /home/kegbot/kegbot-server.venv/lib/python2.7/site-packages/kegbot/__init__.py (namespace package)
Installing /home/kegbot/kegbot-server.venv/lib/python2.7/site-packages/kegbot_api-1.1.0-py2.7-nspkg.pth
Running setup.py install for django-imagekit
Running setup.py install for django-registration
Running setup.py install for django-socialregistration
Running setup.py install for django-bootstrap-pagination
Running setup.py install for django-crispy-forms
Running setup.py install for foursquare
warning: no previously-included files found matching 'foursquare/tests/_creds.py'
Running setup.py install for gunicorn
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
Installing gunicorn_paster script to /home/kegbot/kegbot-server.venv/bin
Installing gunicorn script to /home/kegbot/kegbot-server.venv/bin
Installing gunicorn_django script to /home/kegbot/kegbot-server.venv/bin
Running setup.py install for MySQL-python
building '_mysql' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /home/kegbot/kegbot-server.venv/bin/python -c "import setuptools, tokenize;__file__='/home/kegbot/kegbot-server.venv/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_3zSuB-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/kegbot/kegbot-server.venv/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb
creating build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/kegbot/kegbot-server.venv/bin/python -c "import setuptools, tokenize;__file__='/home/kegbot/kegbot-server.venv/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_3zSuB-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/kegbot/kegbot-server.venv/include/site/python2.7 failed with error code 1 in /home/kegbot/kegbot-server.venv/build/MySQL-python
Storing debug log for failure in /home/kegbot/.pip/pip.log
ERROR : Command returned error:
ERROR : Command: sudo su -l kegbot -c ". /home/kegbot/kegbot-server.venv/bin/activate && pip install kegbot==1.1.0"
ERROR : Return code: 1
Traceback (most recent call last):
File "/usr/local/bin/kegberry", line 7, in <module>
app.run()
File "/usr/local/lib/python2.7/dist-packages/kegberry/app.py", line 209, in run
command_fn(*args)
File "/usr/local/lib/python2.7/dist-packages/kegberry/app.py", line 280, in install
run_in_virtualenv(SERVER_VENV, 'pip install {}'.format(FLAGS.kegbot_server_package))
File "/usr/local/lib/python2.7/dist-packages/kegberry/app.py", line 153, in run_in_virtualenv
return run_as_kegberry(cmd, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/kegberry/app.py", line 147, in run_as_kegberry
return run_command(wrapped, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/kegberry/app.py", line 141, in run_command
raise e
subprocess.CalledProcessError: Command 'sudo su -l kegbot -c ". /home/kegbot/kegbot-server.venv/bin/activate && pip install kegbot==1.1.0"' returned non-zero exit status 1
root@my-kegbot:~#