Trying to install Kegbot


#1

Hello,

I am running my own virtual server (that I use to learn on), and I have installed Ubuntu 14.04 and patched it up for 14.04.5. I’ve ran @joshuawhite5522 install script, and gone through the install guide several times; and can’t seem to get it fully installed. I’ve upgraded python to 2.7.14 as I was getting the “six file unknown” error I saw in another post. I do have a ngnix! webpage if I go to my server’s ip address, but that’s it. It looks like it is not setting up something correctly on the python section. Below is my output screen from my install.

Can anyone give me some hints on how to install?

login as: root
[email protected]’s password:
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-133-generic x86_64)

System information as of Sun Oct 15 08:49:38 PDT 2017

System load: 0.0 Processes: 108
Usage of /: 7.3% of 27.43GB Users logged in: 0
Memory usage: 2% IP address for eth0: x.x.x.x
Swap usage: 0%

Graph this data and manage this system at:
https://landscape.canonical.com/

New release ‘16.04.3 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

[email protected]:~# export INSTALLFLAGS="–nopycore --allow_root"
[email protected]:~# 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 230 kB of archives.
    After this operation, 830 kB of additional disk space will be used.
    Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
    Fetched 230 kB in 0s (423 kB/s)
    Selecting previously unselected package python-setuptools.
    (Reading database … 113157 files and directories currently installed.)
    Preparing to unpack …/python-setuptools_3.3-1ubuntu2_all.deb …
    Unpacking python-setuptools (3.3-1ubuntu2) …
    Setting up python-setuptools (3.3-1ubuntu2) …
  • sudo easy_install pip
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Best match: pip 9.0.1
    Downloading https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
    Processing pip-9.0.1.tar.gz
    Writing /tmp/easy_install-1UfsBX/pip-9.0.1/setup.cfg
    Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1UfsBX/pip-9.0.1/egg-dist-tmp-Dx10y1
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires’
    warnings.warn(msg)
    warning: no previously-included files found matching '.coveragerc’
    warning: no previously-included files found matching '.mailmap’
    warning: no previously-included files found matching '.travis.yml’
    warning: no previously-included files found matching '.landscape.yml’
    warning: no previously-included files found matching 'pip/_vendor/Makefile’
    warning: no previously-included files found matching 'tox.ini’
    warning: no previously-included files found matching 'dev-requirements.txt’
    warning: no previously-included files found matching 'appveyor.yml’
    no previously-included directories found matching '.github’
    no previously-included directories found matching '.travis’
    no previously-included directories found matching 'docs/_build’
    no previously-included directories found matching 'contrib’
    no previously-included directories found matching 'tasks’
    no previously-included directories found matching 'tests’
    Adding pip 9.0.1 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-9.0.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

  • sudo pip install -U virtualenv
    Collecting virtualenv
    Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 320kB/s
    Installing collected packages: virtualenv
    Successfully installed virtualenv-15.1.0

  • sudo pip install -U --pre kegberry
    Collecting kegberry
    Downloading kegberry-2.1.1.tar.gz
    Collecting python-gflags (from kegberry)
    Downloading python-gflags-3.1.1.tar.gz (52kB)
    100% |████████████████████████████████| 61kB 1.9MB/s
    Installing collected packages: python-gflags, kegberry
    Running setup.py install for python-gflags … done
    Running setup.py install for kegberry … done
    Successfully installed kegberry-2.1.1 python-gflags-3.1.1

  • kegberry --nopycore --allow_root install

    oOOOOOo
    ,| oO Kegberry v2.1.1 - http://kegberry.com
    //| |
    \| | “Beer is made by men, wine by God.”
    | | -- Martin Luther-----`

INFO : Updating package list …
INFO : Installing required packages …
INFO : Cleaning up …
INFO : Checking if database exists …
INFO : Creating database …
INFO : Installing MySQL timezones …
INFO : Checking/installing virtualenv “kegbot-server.venv”…
Signature not found in user keyring
Perhaps try the interactive 'ecryptfs-mount-private’
Traceback (most recent call last):
File “/usr/local/bin/virtualenv”, line 11, in
sys.exit(main())
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 713, in main
symlink=options.symlink)
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 925, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 1110, in install_python
mkdir(lib_dir)
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 323, in mkdir
os.makedirs(path)
File “/usr/lib/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: ‘/home/kegbot/kegbot-server.venv’

ERROR : Command returned error:
ERROR : Command: sudo su -l kegbot -c "if [ ! -e /home/kegbot/kegbot-server.venv ]; then /usr/local/bin/virtualenv /home/kegbot/kegbot-server.venv; fi"
ERROR : Return code: 1
Traceback (most recent call last):
File “/usr/local/bin/kegberry”, line 7, in
app.run()
File “/usr/local/lib/python2.7/dist-packages/kegberry/app.py”, line 210, in run
command_fn(*args)
File “/usr/local/lib/python2.7/dist-packages/kegberry/app.py”, line 278, in install
run_as_kegberry(‘if [ ! -e {} ]; then {} {}; fi’.format(virtualenv, venv_cmd, virtualenv))
File “/usr/local/lib/python2.7/dist-packages/kegberry/app.py”, line 148, in run_as_kegberry
return run_command(wrapped, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/kegberry/app.py”, line 142, in run_command
raise e
subprocess.CalledProcessError: Command ‘sudo su -l kegbot -c “if [ ! -e /home/kegbot/kegbot-server.venv ]; then /usr/local/bin/virtualenv /home/kegbot/kegbot-server.venv; fi”’ returned non-zero exit status 1
[email protected]:~#


#2

Are you wanting to install the kegbot server, or kegberry?
You linked the kegbot install docs, but are using the kegberry repo.

You might take a look at http://old-forum.kegbot.org/discussions/kegbot-server/127-oserror-errno-13-permission-denied-data and see if it helps


#3

Tanner,

Kegbot server. I ended up reinstalling it about 20 times, and finally go it to work. Thanks for the reply.

I originally tried updating the python 2.7 version to a different distro, but that didn’t seem to work. I believe the trick was to update ubuntu first to the most recent updates (apt-get update), which forced it to update python from 2.7 to 3.3.

Once I did that, I rebooted then I found this link to install PIP: https://www.liquidweb.com/kb/how-to-install-pip-on-ubuntu-14-04-lts/ and installed it next. Rebooted again, then ran the Kegbot installer and it magically worked. Probably dumb luck that I got it up and running. How just trying to work thru the hardware part now.

Thanks,

Keg_n00b