Error when installing Runestone Docker on Ubuntu server

348 views
Skip to first unread message

sfl...@bridgew.edu

unread,
Oct 7, 2022, 5:23:28 PM10/7/22
to PreTeXt development
I asked about this at the Friday Pretext/Runestone drop in, and someone suggested that I ask this question here.  I am trying to set up Runestone via Docker on an Ubuntu 22 server, but have not been successful.  I also tried setting up Runestone on Ubuntu 20, and had a similar issue.  (The eventual goal is to have a local installation of Runestone that we can use to host PreTeXt books, and integrate with our local WebWork server).

I have followed the instructions up to https://runestoneserver.readthedocs.io/en/latest/docker/README.html#starting-the-containerized-application , but nothing loads when I visit the IP address of the server (which I configured in .env).  Furthermore, systemctl does not show any web server running.

The following command line output seems like it might be relevant.  Did I miss a step, or is some other software configuration required? 

runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ /usr/local/bin/python3 runestone_poetry_project/poetry_fix.py --no-dev
runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ poetry config virtualenvs.in-project true
runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ poetry install --no-dev
runestoneserver-runestone-1  | The `--no-dev` option is deprecated, use the `--only main` notation instead.
runestoneserver-runestone-1  | Updating dependencies
runestoneserver-runestone-1  | Resolving dependencies...
runestoneserver-runestone-1  |
runestoneserver-runestone-1  | Traceback (most recent call last):
runestoneserver-runestone-1  |   File "/srv/web2py/applications/runestone/docker/docker_tools.py", line 486, in build
runestoneserver-runestone-1  |     _build_phase_2_core(build_config, arm, pic24, rust, tex)
runestoneserver-runestone-1  |   File "/srv/web2py/applications/runestone/docker/docker_tools.py", line 904, in _build_phase_2_core
runestoneserver-runestone-1  |     run_poetry(build_config.is_dev())
runestoneserver-runestone-1  |   File "/srv/web2py/applications/runestone/docker/docker_tools.py", line 1083, in run_poetry
runestoneserver-runestone-1  |     xqt(
runestoneserver-runestone-1  |   File "/srv/web2py/applications/runestone/docker/../tests/ci_utils.py", line 67, in xqt
runestoneserver-runestone-1  |     cp = subprocess.run(
runestoneserver-runestone-1  |   File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
runestoneserver-runestone-1  |     raise CalledProcessError(retcode, process.args,
runestoneserver-runestone-1  | subprocess.CalledProcessError: Command 'poetry install --no-dev' died with <Signals.SIGKILL: 9>.
runestoneserver-runestone-1  | Failed to start the Runestone servers.
runestoneserver-runestone-1  | =-=-= Runestone setup finished =-=-=

Brad Miller

unread,
Oct 10, 2022, 11:48:52 AM10/10/22
to PreTeXt development, sfl...@bridgew.edu
From the part of the log you have included here, all I can tell you is that during the install process, the script is trying to run poetry install to grab all of the necessary packages need for Python and the various servers.  This command was killed with the most severe of the signals -- number 9.

If you want to send me the entire log I might be able to see more of what is going on and give you a better idea of what might be happening in your case.

Is this a nice clean ubuntu 20 / 22?  I have not tried an install from scratch on Ubuntu 22, but I regularly wipe and rebuild my ubuntu 20 image and have not had this issue.

What command and options did you use to build the container?

Brad

Bradley Miller, PhD
Professor Emeritus Computer Science
Luther College

Democratizing Textbooks for the 21st Century - Please Support Runestone
--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/c7a6323e-14b0-4815-8b52-41ea5ffaeb30n%40googlegroups.com.

sfl...@bridgew.edu

unread,
Oct 10, 2022, 3:55:07 PM10/10/22
to PreTeXt development
Thanks for your help with this.  I am using a clean installation of Debian using the default installation images from digitalocean.com , which I am using to try out the server.

They offer prebuilt images of Ubuntu 20.04 and Ubuntu 22.04.  When I tried the docker installation wtih Ubuntu 20.04, I recieved an error message that "docker-tools" was not found.  I'm not familiar with Docker, and apt install docker-tools didn't work, so I tried installing the system on the Ubuntu 22.04 image instead. 

Here is the log for docker-tools build and docker

sflood:~/rsdocker/RunestoneServer$ docker-tools build

/home/sflood/rsdocker/RunestoneServer$ cp docker/.env.prototype .env

/home/sflood/rsdocker/RunestoneServer$ ENABLE_BUILDKIT=1 docker build -t runestone/server . --build-arg DOCKER_BUILD_ARGS="build" --progress plain

Sending build context to Docker daemon   68.9MB

Step 1/13 : FROM python:3.9-bullseye

3.9-bullseye: Pulling from library/python

f606d8928ed3: Pull complete

47db815c6a45: Pull complete

bf4849400000: Pull complete

a572f7a256d3: Pull complete

8f7d05258955: Pull complete

7110f04115ae: Pull complete

fbbc348caac4: Pull complete

0fc5e2c629c7: Pull complete

12576cf3d20f: Pull complete

Digest: sha256:d084f55e2bfeb86ae8e1f3fbac55aad813c7c343c7cbacc91ee11a2d07c32d25

Status: Downloaded newer image for python:3.9-bullseye

 ---> e4bf78b64f77

Step 2/13 : LABEL authors="@bnmnetp,@vsoch,@yarikoptic,@bjones1"

 ---> Running in 57d2add4f91d

Removing intermediate container 57d2add4f91d

 ---> aac14da073f1

Step 3/13 : ARG DOCKER_BUILD_ARGS

 ---> Running in 4b7365e52b57

Removing intermediate container 4b7365e52b57

 ---> 9111db8c402d

Step 4/13 : ENV DOCKER_BUILD_ARGS=${DOCKER_BUILD_ARGS}

 ---> Running in 46f30fca2cee

Removing intermediate container 46f30fca2cee

 ---> e063e587904f

Step 5/13 : ENV WEB2PY_PATH=/srv/web2py

 ---> Running in 149dd16594b2

Removing intermediate container 149dd16594b2

 ---> 80170d639d8d

Step 6/13 : ENV RUNESTONE_PATH=${WEB2PY_PATH}/applications/runestone

 ---> Running in 3d98a9f8d090

Removing intermediate container 3d98a9f8d090

 ---> 82c0fbc8f900

Step 7/13 : ENV BOOK_SERVER_PATH=/srv/BookServer

 ---> Running in f78aed283448

Removing intermediate container f78aed283448

 ---> 429b5416142a

Step 8/13 : ENV LC_ALL=C.UTF-8

 ---> Running in ee20fd2e2a75

Removing intermediate container ee20fd2e2a75

 ---> 798273f34547

Step 9/13 : ENV LANG=C.UTF-8

 ---> Running in d89655229cf3

Removing intermediate container d89655229cf3

 ---> 58bf14c6f116

Step 10/13 : ARG DEBIAN_FRONTEND=noninteractive

 ---> Running in cde8f1ebc230

Removing intermediate container cde8f1ebc230

 ---> d88bfc92d904

Step 11/13 : COPY . ${RUNESTONE_PATH}

 ---> 022b609ed289

Step 12/13 : RUN     IN_DOCKER=1     python3 ${RUNESTONE_PATH}/docker/docker_tools.py ${DOCKER_BUILD_ARGS}

 ---> Running in 316c153f035a

pip 22.0.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

Checking for '/usr/local/bin/python3 -m pip --version'...

Found.

Installing Python dependencies...

/$ /usr/local/bin/python3 -m pip install --user --upgrade pip

Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (22.0.4)

Collecting pip

  Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 14.8 MB/s eta 0:00:00

Installing collected packages: pip

  WARNING: The scripts pip, pip3 and pip3.9 are installed in '/root/.local/bin' which is not on PATH.

  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed pip-22.2.2

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.

You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

/$ /usr/local/bin/python3 -m pip install --user --upgrade click

Collecting click

  Downloading click-8.1.3-py3-none-any.whl (96 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 4.1 MB/s eta 0:00:00

Installing collected packages: click

Successfully installed click-8.1.3

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

/$ apt update

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]

Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]

Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]

Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB]

Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [189 kB]

Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [6344 B]

Fetched 8587 kB in 2s (3668 kB/s)

Reading package lists...

Building dependency tree...

Reading state information...

All packages are up to date.

/$ apt install -y --no-install-recommends eatmydata lsb-release

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Reading package lists...

Building dependency tree...

Reading state information...

The following additional packages will be installed:

  distro-info-data libeatmydata1

The following NEW packages will be installed:

  distro-info-data eatmydata libeatmydata1 lsb-release

0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.

Need to get 67.2 kB of archives.

After this operation, 159 kB of additional disk space will be used.

Get:1 http://deb.debian.org/debian bullseye/main amd64 distro-info-data all 0.51+deb11u2 [7684 B]

Get:2 http://deb.debian.org/debian bullseye/main amd64 libeatmydata1 amd64 105-9 [15.5 kB]

Get:3 http://deb.debian.org/debian bullseye/main amd64 eatmydata all 105-9 [16.2 kB]

Get:4 http://deb.debian.org/debian bullseye/main amd64 lsb-release all 11.1.0 [27.9 kB]

debconf: delaying package configuration, since apt-utils is not installed

Fetched 67.2 kB in 0s (2047 kB/s)

Selecting previously unselected package distro-info-data.

(Reading database ... 23422 files and directories currently installed.)

Preparing to unpack .../distro-info-data_0.51+deb11u2_all.deb ...

Unpacking distro-info-data (0.51+deb11u2) ...

Selecting previously unselected package libeatmydata1:amd64.

Preparing to unpack .../libeatmydata1_105-9_amd64.deb ...

Unpacking libeatmydata1:amd64 (105-9) ...

Selecting previously unselected package eatmydata.

Preparing to unpack .../eatmydata_105-9_all.deb ...

Unpacking eatmydata (105-9) ...

Selecting previously unselected package lsb-release.

Preparing to unpack .../lsb-release_11.1.0_all.deb ...

Unpacking lsb-release (11.1.0) ...

Setting up distro-info-data (0.51+deb11u2) ...

Setting up libeatmydata1:amd64 (105-9) ...

Setting up lsb-release (11.1.0) ...

Setting up eatmydata (105-9) ...

Processing triggers for libc-bin (2.31-13+deb11u4) ...

/$ echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee  /etc/apt/sources.list.d/pgdg.list

deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main

/$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

OK

/$ apt update

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Hit:1 http://deb.debian.org/debian bullseye InRelease

Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease

Hit:3 http://deb.debian.org/debian bullseye-updates InRelease

Get:4 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease [91.7 kB]

Get:5 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [253 kB]

Fetched 345 kB in 1s (300 kB/s)

Reading package lists...

Building dependency tree...

Reading state information...

2 packages can be upgraded. Run 'apt list --upgradable' to see them.

curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3

Release-Date: 2020-12-09

Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp

Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

Checking for 'curl --version'...

Found.

/$ eatmydata apt install -y --no-install-recommends gcc unzip sudo graphviz libfreetype6-dev postgresql-client-13 libpq-dev libxml2-dev libxslt1-dev certbot python3-certbot-nginx rsync wget nginx acl nano less

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Reading package lists...

Building dependency tree...

Reading state information...

libfreetype6-dev is already the newest version (2.10.4+dfsg-1+deb11u1).

libfreetype6-dev set to manually installed.

gcc is already the newest version (4:10.2.1-1).

libxml2-dev is already the newest version (2.9.10+dfsg-6.7+deb11u2).

libxslt1-dev is already the newest version (1.1.34-4+deb11u1).

unzip is already the newest version (6.0-26+deb11u1).

wget is already the newest version (1.21-1+deb11u1).

The following additional packages will be installed:

  iproute2 libann0 libbpf0 libcap2 libcap2-bin libcdt5 libcgraph6 libgd3

  libgeoip1 libgts-0.7-5 libgvc6 libgvpr2 liblab-gamut1 libmnl0

  libnginx-mod-http-geoip libnginx-mod-http-image-filter

  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream

  libnginx-mod-stream-geoip libpathplan4 libpopt0 libpq5 libxaw7 libxmu6

  libxpm4 libxtables12 nginx-common nginx-core pgdg-keyring

  postgresql-client-common python3-acme python3-certbot python3-certifi

  python3-cffi-backend python3-chardet python3-configargparse

  python3-configobj python3-cryptography python3-distro python3-idna

  python3-josepy python3-openssl python3-parsedatetime python3-pkg-resources

  python3-pyparsing python3-requests python3-requests-toolbelt python3-rfc3339

  python3-six python3-tz python3-urllib3 python3-zope.component

  python3-zope.event python3-zope.hookable python3-zope.interface

Suggested packages:

  python3-certbot-apache python-certbot-doc gsfonts graphviz-doc iproute2-doc

  libgd-tools geoip-bin postgresql-doc-14 hunspell fcgiwrap nginx-doc ssl-cert

  postgresql-13 postgresql-doc-13 python-acme-doc python-certbot-nginx-doc

  python-configobj-doc python-cryptography-doc python3-cryptography-vectors

  python-openssl-doc python3-openssl-dbg python3-setuptools

  python-pyparsing-doc python3-socks python-requests-doc openssh-server

Recommended packages:

  fonts-liberation libatm1 libpam-cap geoip-database libgts-bin python3-icu

The following NEW packages will be installed:

  acl certbot graphviz iproute2 less libann0 libbpf0 libcap2 libcap2-bin

  libcdt5 libcgraph6 libgd3 libgeoip1 libgts-0.7-5 libgvc6 libgvpr2

  liblab-gamut1 libmnl0 libnginx-mod-http-geoip libnginx-mod-http-image-filter

  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream

  libnginx-mod-stream-geoip libpathplan4 libpopt0 libxaw7 libxmu6 libxpm4

  libxtables12 nano nginx nginx-common nginx-core pgdg-keyring

  postgresql-client-13 postgresql-client-common python3-acme python3-certbot

  python3-certbot-nginx python3-certifi python3-cffi-backend python3-chardet

  python3-configargparse python3-configobj python3-cryptography python3-distro

  python3-idna python3-josepy python3-openssl python3-parsedatetime

  python3-pkg-resources python3-pyparsing python3-requests

  python3-requests-toolbelt python3-rfc3339 python3-six python3-tz

  python3-urllib3 python3-zope.component python3-zope.event

  python3-zope.hookable python3-zope.interface rsync sudo

The following packages will be upgraded:

  libpq-dev libpq5

2 upgraded, 65 newly installed, 0 to remove and 0 not upgraded.

Need to get 11.4 MB of archives.

After this operation, 41.7 MB of additional disk space will be used.

Get:1 http://deb.debian.org/debian bullseye/main amd64 libpopt0 amd64 1.18-2 [49.6 kB]

Get:2 http://deb.debian.org/debian bullseye/main amd64 rsync amd64 3.2.3-4+deb11u1 [396 kB]

Get:3 http://deb.debian.org/debian bullseye/main amd64 libbpf0 amd64 1:0.3-2 [98.3 kB]

Get:4 http://deb.debian.org/debian bullseye/main amd64 libcap2 amd64 1:2.44-1 [23.6 kB]

Get:5 http://deb.debian.org/debian bullseye/main amd64 libmnl0 amd64 1.0.4-3 [12.5 kB]

Get:6 http://deb.debian.org/debian bullseye/main amd64 libxtables12 amd64 1.8.7-1 [45.1 kB]

Get:7 http://deb.debian.org/debian bullseye/main amd64 libcap2-bin amd64 1:2.44-1 [32.6 kB]

Get:8 http://deb.debian.org/debian bullseye/main amd64 iproute2 amd64 5.10.0-4 [930 kB]

Get:9 http://deb.debian.org/debian bullseye/main amd64 less amd64 551-2 [133 kB]

Get:10 http://deb.debian.org/debian bullseye/main amd64 nano amd64 5.4-2+deb11u1 [656 kB]

Get:11 http://deb.debian.org/debian bullseye/main amd64 acl amd64 2.2.53-10 [60.6 kB]

Get:12 http://deb.debian.org/debian bullseye/main amd64 python3-cffi-backend amd64 1.14.5-1 [85.8 kB]

Get:13 http://deb.debian.org/debian bullseye/main amd64 python3-six all 1.16.0-2 [17.5 kB]

Get:14 http://deb.debian.org/debian bullseye/main amd64 python3-cryptography amd64 3.3.2-1 [223 kB]

Get:15 http://deb.debian.org/debian bullseye/main amd64 python3-openssl all 20.0.1-1 [53.7 kB]

Get:16 http://deb.debian.org/debian bullseye/main amd64 python3-pkg-resources all 52.0.0-4 [190 kB]

Get:17 http://deb.debian.org/debian bullseye/main amd64 python3-josepy all 1.2.0-2 [28.4 kB]

Get:18 http://deb.debian.org/debian bullseye/main amd64 python3-certifi all 2020.6.20-1 [151 kB]

Get:19 http://deb.debian.org/debian bullseye/main amd64 python3-chardet all 4.0.0-1 [99.0 kB]

Get:20 http://deb.debian.org/debian bullseye/main amd64 python3-idna all 2.10-1 [37.4 kB]

Get:21 http://deb.debian.org/debian bullseye/main amd64 python3-urllib3 all 1.26.5-1~exp1 [114 kB]

Get:22 http://deb.debian.org/debian bullseye/main amd64 python3-requests all 2.25.1+dfsg-2 [69.3 kB]

Get:23 http://deb.debian.org/debian bullseye/main amd64 python3-requests-toolbelt all 0.9.1-1 [41.7 kB]

Get:24 http://deb.debian.org/debian bullseye/main amd64 python3-tz all 2021.1-1 [34.8 kB]

Get:25 http://deb.debian.org/debian bullseye/main amd64 python3-rfc3339 all 1.1-2 [6768 B]

Get:26 http://deb.debian.org/debian bullseye/main amd64 python3-acme all 1.12.0-2 [34.6 kB]

Get:27 http://deb.debian.org/debian bullseye/main amd64 python3-configargparse all 1.2.3-1 [25.2 kB]

Get:28 http://deb.debian.org/debian bullseye/main amd64 python3-configobj all 5.0.6-4 [35.8 kB]

Get:29 http://deb.debian.org/debian bullseye/main amd64 python3-distro all 1.5.0-1 [17.1 kB]

Get:30 http://deb.debian.org/debian bullseye/main amd64 python3-parsedatetime all 2.6-1 [41.3 kB]

Get:31 http://deb.debian.org/debian bullseye/main amd64 python3-zope.hookable amd64 5.0.1-1+b2 [12.8 kB]

Get:32 http://deb.debian.org/debian bullseye/main amd64 python3-zope.interface amd64 5.2.0-1 [142 kB]

Get:33 http://deb.debian.org/debian bullseye/main amd64 python3-zope.event all 4.4-3 [9420 B]

Get:34 http://deb.debian.org/debian bullseye/main amd64 python3-zope.component all 4.3.0-3 [43.1 kB]

Get:35 http://deb.debian.org/debian bullseye/main amd64 python3-certbot all 1.12.0-2 [194 kB]

Get:36 http://deb.debian.org/debian bullseye/main amd64 certbot all 1.12.0-2 [49.7 kB]

Get:37 http://deb.debian.org/debian bullseye/main amd64 libann0 amd64 1.1.2+doc-7 [25.3 kB]

Get:38 http://deb.debian.org/debian bullseye/main amd64 libcdt5 amd64 2.42.2-5 [62.2 kB]

Get:39 http://deb.debian.org/debian bullseye/main amd64 libcgraph6 amd64 2.42.2-5 [85.5 kB]

Get:40 http://deb.debian.org/debian bullseye/main amd64 libxpm4 amd64 1:3.5.12-1 [49.1 kB]

Get:41 http://deb.debian.org/debian bullseye/main amd64 libgd3 amd64 2.3.0-2 [137 kB]

Get:42 http://deb.debian.org/debian bullseye/main amd64 libgts-0.7-5 amd64 0.7.6+darcs121130-4+b1 [158 kB]

Get:43 http://deb.debian.org/debian bullseye/main amd64 libpathplan4 amd64 2.42.2-5 [64.3 kB]

Get:44 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 libpq-dev amd64 14.5-1.pgdg110+1 [138 kB]

Get:45 http://deb.debian.org/debian bullseye/main amd64 libgvc6 amd64 2.42.2-5 [695 kB]

Get:46 http://deb.debian.org/debian bullseye/main amd64 libgvpr2 amd64 2.42.2-5 [212 kB]

Get:47 http://deb.debian.org/debian bullseye/main amd64 liblab-gamut1 amd64 2.42.2-5 [221 kB]

Get:48 http://deb.debian.org/debian bullseye/main amd64 libxmu6 amd64 2:1.1.2-2+b3 [60.8 kB]

Get:49 http://deb.debian.org/debian bullseye/main amd64 libxaw7 amd64 2:1.0.13-1.1 [202 kB]

Get:50 http://deb.debian.org/debian bullseye/main amd64 graphviz amd64 2.42.2-5 [632 kB]

Get:51 http://deb.debian.org/debian bullseye/main amd64 libgeoip1 amd64 1.6.12-7 [92.5 kB]

Get:52 http://deb.debian.org/debian bullseye/main amd64 nginx-common all 1.18.0-6.1+deb11u2 [126 kB]

Get:53 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-http-geoip amd64 1.18.0-6.1+deb11u2 [98.4 kB]

Get:54 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-http-image-filter amd64 1.18.0-6.1+deb11u2 [102 kB]

Get:55 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-http-xslt-filter amd64 1.18.0-6.1+deb11u2 [100 kB]

Get:56 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-mail amd64 1.18.0-6.1+deb11u2 [129 kB]

Get:57 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-stream amd64 1.18.0-6.1+deb11u2 [155 kB]

Get:58 http://deb.debian.org/debian bullseye/main amd64 libnginx-mod-stream-geoip amd64 1.18.0-6.1+deb11u2 [97.6 kB]

Get:59 http://deb.debian.org/debian bullseye/main amd64 nginx-core amd64 1.18.0-6.1+deb11u2 [515 kB]

Get:60 http://deb.debian.org/debian bullseye/main amd64 nginx all 1.18.0-6.1+deb11u2 [92.9 kB]

Get:61 http://deb.debian.org/debian bullseye/main amd64 python3-pyparsing all 2.4.7-1 [109 kB]

Get:62 http://deb.debian.org/debian bullseye/main amd64 python3-certbot-nginx all 1.10.1-1 [35.1 kB]

Get:63 http://deb.debian.org/debian bullseye/main amd64 sudo amd64 1.9.5p2-3 [1059 kB]

Get:64 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 libpq5 amd64 14.5-1.pgdg110+1 [173 kB]

Get:65 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 pgdg-keyring all 2018.2 [10.7 kB]

Get:66 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 postgresql-client-common all 243.pgdg110+1 [91.8 kB]

Get:67 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 postgresql-client-13 amd64 13.8-1.pgdg110+1 [1507 kB]

debconf: delaying package configuration, since apt-utils is not installed

Fetched 11.4 MB in 1s (11.3 MB/s)

Selecting previously unselected package libpopt0:amd64.

(Reading database ... 23457 files and directories currently installed.)

Preparing to unpack .../00-libpopt0_1.18-2_amd64.deb ...

Unpacking libpopt0:amd64 (1.18-2) ...

Selecting previously unselected package rsync.

Preparing to unpack .../01-rsync_3.2.3-4+deb11u1_amd64.deb ...

Unpacking rsync (3.2.3-4+deb11u1) ...

Selecting previously unselected package libbpf0:amd64.

Preparing to unpack .../02-libbpf0_1%3a0.3-2_amd64.deb ...

Unpacking libbpf0:amd64 (1:0.3-2) ...

Selecting previously unselected package libcap2:amd64.

Preparing to unpack .../03-libcap2_1%3a2.44-1_amd64.deb ...

Unpacking libcap2:amd64 (1:2.44-1) ...

Selecting previously unselected package libmnl0:amd64.

Preparing to unpack .../04-libmnl0_1.0.4-3_amd64.deb ...

Unpacking libmnl0:amd64 (1.0.4-3) ...

Selecting previously unselected package libxtables12:amd64.

Preparing to unpack .../05-libxtables12_1.8.7-1_amd64.deb ...

Unpacking libxtables12:amd64 (1.8.7-1) ...

Selecting previously unselected package libcap2-bin.

Preparing to unpack .../06-libcap2-bin_1%3a2.44-1_amd64.deb ...

Unpacking libcap2-bin (1:2.44-1) ...

Selecting previously unselected package iproute2.

Preparing to unpack .../07-iproute2_5.10.0-4_amd64.deb ...

Unpacking iproute2 (5.10.0-4) ...

Selecting previously unselected package less.

Preparing to unpack .../08-less_551-2_amd64.deb ...

Unpacking less (551-2) ...

Selecting previously unselected package nano.

Preparing to unpack .../09-nano_5.4-2+deb11u1_amd64.deb ...

Unpacking nano (5.4-2+deb11u1) ...

Selecting previously unselected package acl.

Preparing to unpack .../10-acl_2.2.53-10_amd64.deb ...

Unpacking acl (2.2.53-10) ...

Selecting previously unselected package python3-cffi-backend:amd64.

Preparing to unpack .../11-python3-cffi-backend_1.14.5-1_amd64.deb ...

Unpacking python3-cffi-backend:amd64 (1.14.5-1) ...

Selecting previously unselected package python3-six.

Preparing to unpack .../12-python3-six_1.16.0-2_all.deb ...

Unpacking python3-six (1.16.0-2) ...

Selecting previously unselected package python3-cryptography.

Preparing to unpack .../13-python3-cryptography_3.3.2-1_amd64.deb ...

Unpacking python3-cryptography (3.3.2-1) ...

Selecting previously unselected package python3-openssl.

Preparing to unpack .../14-python3-openssl_20.0.1-1_all.deb ...

Unpacking python3-openssl (20.0.1-1) ...

Selecting previously unselected package python3-pkg-resources.

Preparing to unpack .../15-python3-pkg-resources_52.0.0-4_all.deb ...

Unpacking python3-pkg-resources (52.0.0-4) ...

Selecting previously unselected package python3-josepy.

Preparing to unpack .../16-python3-josepy_1.2.0-2_all.deb ...

Unpacking python3-josepy (1.2.0-2) ...

Selecting previously unselected package python3-certifi.

Preparing to unpack .../17-python3-certifi_2020.6.20-1_all.deb ...

Unpacking python3-certifi (2020.6.20-1) ...

Selecting previously unselected package python3-chardet.

Preparing to unpack .../18-python3-chardet_4.0.0-1_all.deb ...

Unpacking python3-chardet (4.0.0-1) ...

Selecting previously unselected package python3-idna.

Preparing to unpack .../19-python3-idna_2.10-1_all.deb ...

Unpacking python3-idna (2.10-1) ...

Selecting previously unselected package python3-urllib3.

Preparing to unpack .../20-python3-urllib3_1.26.5-1~exp1_all.deb ...

Unpacking python3-urllib3 (1.26.5-1~exp1) ...

Selecting previously unselected package python3-requests.

Preparing to unpack .../21-python3-requests_2.25.1+dfsg-2_all.deb ...

Unpacking python3-requests (2.25.1+dfsg-2) ...

Selecting previously unselected package python3-requests-toolbelt.

Preparing to unpack .../22-python3-requests-toolbelt_0.9.1-1_all.deb ...

Unpacking python3-requests-toolbelt (0.9.1-1) ...

Selecting previously unselected package python3-tz.

Preparing to unpack .../23-python3-tz_2021.1-1_all.deb ...

Unpacking python3-tz (2021.1-1) ...

Selecting previously unselected package python3-rfc3339.

Preparing to unpack .../24-python3-rfc3339_1.1-2_all.deb ...

Unpacking python3-rfc3339 (1.1-2) ...

Selecting previously unselected package python3-acme.

Preparing to unpack .../25-python3-acme_1.12.0-2_all.deb ...

Unpacking python3-acme (1.12.0-2) ...

Selecting previously unselected package python3-configargparse.

Preparing to unpack .../26-python3-configargparse_1.2.3-1_all.deb ...

Unpacking python3-configargparse (1.2.3-1) ...

Selecting previously unselected package python3-configobj.

Preparing to unpack .../27-python3-configobj_5.0.6-4_all.deb ...

Unpacking python3-configobj (5.0.6-4) ...

Selecting previously unselected package python3-distro.

Preparing to unpack .../28-python3-distro_1.5.0-1_all.deb ...

Unpacking python3-distro (1.5.0-1) ...

Selecting previously unselected package python3-parsedatetime.

Preparing to unpack .../29-python3-parsedatetime_2.6-1_all.deb ...

Unpacking python3-parsedatetime (2.6-1) ...

Selecting previously unselected package python3-zope.hookable.

Preparing to unpack .../30-python3-zope.hookable_5.0.1-1+b2_amd64.deb ...

Unpacking python3-zope.hookable (5.0.1-1+b2) ...

Selecting previously unselected package python3-zope.interface.

Preparing to unpack .../31-python3-zope.interface_5.2.0-1_amd64.deb ...

Unpacking python3-zope.interface (5.2.0-1) ...

Selecting previously unselected package python3-zope.event.

Preparing to unpack .../32-python3-zope.event_4.4-3_all.deb ...

Unpacking python3-zope.event (4.4-3) ...

Selecting previously unselected package python3-zope.component.

Preparing to unpack .../33-python3-zope.component_4.3.0-3_all.deb ...

Unpacking python3-zope.component (4.3.0-3) ...

Selecting previously unselected package python3-certbot.

Preparing to unpack .../34-python3-certbot_1.12.0-2_all.deb ...

Unpacking python3-certbot (1.12.0-2) ...

Selecting previously unselected package certbot.

Preparing to unpack .../35-certbot_1.12.0-2_all.deb ...

Unpacking certbot (1.12.0-2) ...

Selecting previously unselected package libann0.

Preparing to unpack .../36-libann0_1.1.2+doc-7_amd64.deb ...

Unpacking libann0 (1.1.2+doc-7) ...

Selecting previously unselected package libcdt5:amd64.

Preparing to unpack .../37-libcdt5_2.42.2-5_amd64.deb ...

Unpacking libcdt5:amd64 (2.42.2-5) ...

Selecting previously unselected package libcgraph6:amd64.

Preparing to unpack .../38-libcgraph6_2.42.2-5_amd64.deb ...

Unpacking libcgraph6:amd64 (2.42.2-5) ...

Selecting previously unselected package libxpm4:amd64.

Preparing to unpack .../39-libxpm4_1%3a3.5.12-1_amd64.deb ...

Unpacking libxpm4:amd64 (1:3.5.12-1) ...

Selecting previously unselected package libgd3:amd64.

Preparing to unpack .../40-libgd3_2.3.0-2_amd64.deb ...

Unpacking libgd3:amd64 (2.3.0-2) ...

Selecting previously unselected package libgts-0.7-5:amd64.

Preparing to unpack .../41-libgts-0.7-5_0.7.6+darcs121130-4+b1_amd64.deb ...

Unpacking libgts-0.7-5:amd64 (0.7.6+darcs121130-4+b1) ...

Selecting previously unselected package libpathplan4:amd64.

Preparing to unpack .../42-libpathplan4_2.42.2-5_amd64.deb ...

Unpacking libpathplan4:amd64 (2.42.2-5) ...

Selecting previously unselected package libgvc6.

Preparing to unpack .../43-libgvc6_2.42.2-5_amd64.deb ...

Unpacking libgvc6 (2.42.2-5) ...

Selecting previously unselected package libgvpr2:amd64.

Preparing to unpack .../44-libgvpr2_2.42.2-5_amd64.deb ...

Unpacking libgvpr2:amd64 (2.42.2-5) ...

Selecting previously unselected package liblab-gamut1:amd64.

Preparing to unpack .../45-liblab-gamut1_2.42.2-5_amd64.deb ...

Unpacking liblab-gamut1:amd64 (2.42.2-5) ...

Selecting previously unselected package libxmu6:amd64.

Preparing to unpack .../46-libxmu6_2%3a1.1.2-2+b3_amd64.deb ...

Unpacking libxmu6:amd64 (2:1.1.2-2+b3) ...

Selecting previously unselected package libxaw7:amd64.

Preparing to unpack .../47-libxaw7_2%3a1.0.13-1.1_amd64.deb ...

Unpacking libxaw7:amd64 (2:1.0.13-1.1) ...

Selecting previously unselected package graphviz.

Preparing to unpack .../48-graphviz_2.42.2-5_amd64.deb ...

Unpacking graphviz (2.42.2-5) ...

Selecting previously unselected package libgeoip1:amd64.

Preparing to unpack .../49-libgeoip1_1.6.12-7_amd64.deb ...

Unpacking libgeoip1:amd64 (1.6.12-7) ...

Selecting previously unselected package nginx-common.

Preparing to unpack .../50-nginx-common_1.18.0-6.1+deb11u2_all.deb ...

Unpacking nginx-common (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-http-geoip.

Preparing to unpack .../51-libnginx-mod-http-geoip_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-http-geoip (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-http-image-filter.

Preparing to unpack .../52-libnginx-mod-http-image-filter_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-http-image-filter (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-http-xslt-filter.

Preparing to unpack .../53-libnginx-mod-http-xslt-filter_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-http-xslt-filter (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-mail.

Preparing to unpack .../54-libnginx-mod-mail_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-mail (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-stream.

Preparing to unpack .../55-libnginx-mod-stream_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-stream (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package libnginx-mod-stream-geoip.

Preparing to unpack .../56-libnginx-mod-stream-geoip_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking libnginx-mod-stream-geoip (1.18.0-6.1+deb11u2) ...

Preparing to unpack .../57-libpq-dev_14.5-1.pgdg110+1_amd64.deb ...

Unpacking libpq-dev (14.5-1.pgdg110+1) over (13.8-0+deb11u1) ...

Preparing to unpack .../58-libpq5_14.5-1.pgdg110+1_amd64.deb ...

Unpacking libpq5:amd64 (14.5-1.pgdg110+1) over (13.8-0+deb11u1) ...

Selecting previously unselected package nginx-core.

Preparing to unpack .../59-nginx-core_1.18.0-6.1+deb11u2_amd64.deb ...

Unpacking nginx-core (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package nginx.

Preparing to unpack .../60-nginx_1.18.0-6.1+deb11u2_all.deb ...

Unpacking nginx (1.18.0-6.1+deb11u2) ...

Selecting previously unselected package pgdg-keyring.

Preparing to unpack .../61-pgdg-keyring_2018.2_all.deb ...

Unpacking pgdg-keyring (2018.2) ...

Selecting previously unselected package postgresql-client-common.

Preparing to unpack .../62-postgresql-client-common_243.pgdg110+1_all.deb ...

Unpacking postgresql-client-common (243.pgdg110+1) ...

Selecting previously unselected package postgresql-client-13.

Preparing to unpack .../63-postgresql-client-13_13.8-1.pgdg110+1_amd64.deb ...

Unpacking postgresql-client-13 (13.8-1.pgdg110+1) ...

Selecting previously unselected package python3-pyparsing.

Preparing to unpack .../64-python3-pyparsing_2.4.7-1_all.deb ...

Unpacking python3-pyparsing (2.4.7-1) ...

Selecting previously unselected package python3-certbot-nginx.

Preparing to unpack .../65-python3-certbot-nginx_1.10.1-1_all.deb ...

Unpacking python3-certbot-nginx (1.10.1-1) ...

Selecting previously unselected package sudo.

Preparing to unpack .../66-sudo_1.9.5p2-3_amd64.deb ...

Unpacking sudo (1.9.5p2-3) ...

Setting up python3-pkg-resources (52.0.0-4) ...

Setting up python3-configargparse (1.2.3-1) ...

Setting up pgdg-keyring (2018.2) ...

Removing apt.postgresql.org key from trusted.gpg: OK

Setting up libxmu6:amd64 (2:1.1.2-2+b3) ...

Setting up python3-parsedatetime (2.6-1) ...

Setting up libxpm4:amd64 (1:3.5.12-1) ...

Setting up python3-distro (1.5.0-1) ...

Setting up python3-zope.event (4.4-3) ...

Setting up python3-zope.interface (5.2.0-1) ...

Setting up liblab-gamut1:amd64 (2.42.2-5) ...

Setting up libpq5:amd64 (14.5-1.pgdg110+1) ...

Setting up less (551-2) ...

Setting up nginx-common (1.18.0-6.1+deb11u2) ...

Setting up libpq-dev (14.5-1.pgdg110+1) ...

Setting up libxaw7:amd64 (2:1.0.13-1.1) ...

Setting up libcap2:amd64 (1:2.44-1) ...

Setting up python3-tz (2021.1-1) ...

Setting up acl (2.2.53-10) ...

Setting up libcap2-bin (1:2.44-1) ...

Setting up libgts-0.7-5:amd64 (0.7.6+darcs121130-4+b1) ...

Setting up python3-six (1.16.0-2) ...

Setting up libnginx-mod-http-xslt-filter (1.18.0-6.1+deb11u2) ...

Setting up python3-zope.hookable (5.0.1-1+b2) ...

Setting up python3-chardet (4.0.0-1) ...

Setting up python3-configobj (5.0.6-4) ...

Setting up python3-pyparsing (2.4.7-1) ...

Setting up python3-certifi (2020.6.20-1) ...

Setting up libpathplan4:amd64 (2.42.2-5) ...

Setting up libann0 (1.1.2+doc-7) ...

Setting up libgd3:amd64 (2.3.0-2) ...

Setting up libmnl0:amd64 (1.0.4-3) ...

Setting up python3-idna (2.10-1) ...

Setting up sudo (1.9.5p2-3) ...

invoke-rc.d: could not determine current runlevel

invoke-rc.d: policy-rc.d denied execution of start.

Setting up libxtables12:amd64 (1.8.7-1) ...

Setting up python3-urllib3 (1.26.5-1~exp1) ...

Setting up nano (5.4-2+deb11u1) ...

update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode

update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode

Setting up libgeoip1:amd64 (1.6.12-7) ...

Setting up libcdt5:amd64 (2.42.2-5) ...

Setting up libcgraph6:amd64 (2.42.2-5) ...

Setting up libbpf0:amd64 (1:0.3-2) ...

Setting up python3-rfc3339 (1.1-2) ...

Setting up python3-cffi-backend:amd64 (1.14.5-1) ...

Setting up libpopt0:amd64 (1.18-2) ...

Setting up postgresql-client-common (243.pgdg110+1) ...

Setting up libnginx-mod-mail (1.18.0-6.1+deb11u2) ...

Setting up iproute2 (5.10.0-4) ...

Setting up libnginx-mod-http-image-filter (1.18.0-6.1+deb11u2) ...

Setting up libnginx-mod-stream (1.18.0-6.1+deb11u2) ...

Setting up libnginx-mod-stream-geoip (1.18.0-6.1+deb11u2) ...

Setting up python3-zope.component (4.3.0-3) ...

Setting up postgresql-client-13 (13.8-1.pgdg110+1) ...

update-alternatives: using /usr/share/postgresql/13/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode

Setting up libnginx-mod-http-geoip (1.18.0-6.1+deb11u2) ...

Setting up python3-cryptography (3.3.2-1) ...

Setting up python3-requests (2.25.1+dfsg-2) ...

Setting up libgvc6 (2.42.2-5) ...

Setting up libgvpr2:amd64 (2.42.2-5) ...

Setting up rsync (3.2.3-4+deb11u1) ...

invoke-rc.d: could not determine current runlevel

invoke-rc.d: policy-rc.d denied execution of start.

Setting up nginx-core (1.18.0-6.1+deb11u2) ...

invoke-rc.d: could not determine current runlevel

invoke-rc.d: policy-rc.d denied execution of start.

Setting up graphviz (2.42.2-5) ...

Setting up python3-requests-toolbelt (0.9.1-1) ...

Setting up nginx (1.18.0-6.1+deb11u2) ...

Setting up python3-openssl (20.0.1-1) ...

Setting up python3-josepy (1.2.0-2) ...

Setting up python3-acme (1.12.0-2) ...

Setting up python3-certbot (1.12.0-2) ...

Setting up certbot (1.12.0-2) ...

Setting up python3-certbot-nginx (1.10.1-1) ...

Processing triggers for libc-bin (2.31-13+deb11u4) ...

/$ mkdir /var/www/jobe

cd /var/www/jobe

/var/www/jobe$ cp -r $RUNESTONE_PATH/docker/runguard .

/var/www/jobe$ /usr/local/bin/python3 $RUNESTONE_PATH/docker/runguard-install.py

Configuring for 10 simultaneous job runs

Web server is www-data

Make user jobe

Setting up file cache

Making required job-runner users

Set up Jobe runs directory (/home/jobe/runs)

Set up Jobe files directory (/home/jobe/files)

Set up Jobe log directory (/var/log/jobe)

Building runguard

Runguard installation complete

/var/www/jobe$ mkdir -p $WEB2PY_PATH

/var/www/jobe$ eatmydata chown www-data:www-data $WEB2PY_PATH

/var/www/jobe$ eatmydata chmod g+ws $WEB2PY_PATH

/srv$ eatmydata wget --no-verbose https://mdipierro.pythonanywhere.com/examples/static/2.21.1/web2py_src.zip

2022-10-10 19:18:09 URL:https://mdipierro.pythonanywhere.com/examples/static/2.21.1/web2py_src.zip [6812071/6812071] -> "web2py_src.zip" [1]

/srv$ eatmydata unzip -q web2py_src.zip

/srv$ rm -f web2py_src.zip

cd /srv/web2py/applications/runestone

/srv/web2py/applications/runestone$ rm -rf $WEB2PY_PATH/.cache/*

/srv/web2py/applications/runestone$ cp scripts/routes.py $WEB2PY_PATH/routes.py

/srv/web2py/applications/runestone$ eatmydata curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 -

Retrieving Poetry metadata

 

# Welcome to Poetry!

 

This will download and install the latest version of Poetry,

a dependency and package manager for Python.

 

It will add the `poetry` command to Poetry's bin directory, located at:

 

/usr/local/bin

 

You can uninstall at any time by executing this script with the --uninstall option,

and these changes will be reverted.

 

Installing Poetry (1.2.1)

Installing Poetry (1.2.1): Creating environment

Installing Poetry (1.2.1): Installing Poetry

Installing Poetry (1.2.1): Creating script

Installing Poetry (1.2.1): Done

 

Poetry (1.2.1) is installed now. Great!

 

You can test that everything is set up by executing:

 

`poetry --version`

 

/srv/web2py/applications/runestone$ mkdir -p $WEB2PY_PATH/logs

/srv/web2py/applications/runestone$ cp $RUNESTONE_PATH/docker/wsgihandler.py $WEB2PY_PATH/wsgihandler.py

/srv/web2py/applications/runestone$ rm /etc/nginx/sites-enabled/default

/srv/web2py/applications/runestone$ ln -sf $RUNESTONE_PATH/docker/nginx/sites-available/runestone /etc/nginx/sites-enabled/runestone

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/1 /var/log/nginx/access.log

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/2 /var/log/nginx/error.log

/srv/web2py/applications/runestone$ mkdir -p /var/log/celery

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/1 /var/log/celery/access.log

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/2 /var/log/celery/error.log

/srv/web2py/applications/runestone$ mkdir -p /var/log/gunicorn

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/1 /var/log/gunicorn/access.log

/srv/web2py/applications/runestone$ ln -sf /proc/1/fd/2 /var/log/gunicorn/error.log

/srv/web2py/applications/runestone$ cp $RUNESTONE_PATH/docker/routes.py $WEB2PY_PATH

/srv/web2py/applications/runestone$ ln -sf $RUNESTONE_PATH/.venv/bin/sphinx-build /usr/local/bin

/srv/web2py/applications/runestone$ ln -sf $BOOK_SERVER_PATH $WEB2PY_PATH/applications/BookServer

/srv/web2py/applications/runestone$ ln -sf /srv/bookserver-dev $WEB2PY_PATH/applications/bookserver-dev

/srv/web2py/applications/runestone$ ln -sf /srv/RunestoneComponents $WEB2PY_PATH/applications/RunestoneComponents

/srv/web2py/applications/runestone$ ln -sf /srv/runestone-dev $WEB2PY_PATH/applications/runestone-dev

/srv/web2py/applications/runestone$ eatmydata sudo apt -y update

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Hit:1 http://deb.debian.org/debian bullseye InRelease

Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease

Hit:3 http://deb.debian.org/debian bullseye-updates InRelease

Hit:4 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg InRelease

Reading package lists...

Building dependency tree...

Reading state information...

All packages are up to date.

/srv/web2py/applications/runestone$ eatmydata sudo apt -y upgrade

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Reading package lists...

Building dependency tree...

Reading state information...

Calculating upgrade...

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

/srv/web2py/applications/runestone$ eatmydata sudo apt -y autoclean

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Reading package lists...

Building dependency tree...

Reading state information...

/srv/web2py/applications/runestone$ eatmydata sudo apt -y autoremove

 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

 

Reading package lists...

Building dependency tree...

Reading state information...

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

/srv/web2py/applications/runestone$ rm -rf /tmp/* /var/tmp/*

/srv/web2py/applications/runestone$ rm -rf $RUNESTONE_PATH

Removing intermediate container 316c153f035a

 ---> 0b01bafdd83a

Step 13/13 : CMD ["bash","-c","source ~/.profile; IN_DOCKER=2 python3 ${RUNESTONE_PATH}/docker/docker_tools.py ${DOCKER_BUILD_ARGS}"]

 ---> Running in b95825f40df6

Removing intermediate container b95825f40df6

 ---> 7d1e60a7b83f

Successfully built 7d1e60a7b83f

Successfully tagged runestone/server:latest

sflood:~/rsdocker/RunestoneServer$ docker compose up

WARN[0000] The "STRIPE_SECRET_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "STRIPE_DEV_PUBLISHABLE_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "ADSENSEID" variable is not set. Defaulting to a blank string.

WARN[0000] The "STRIPE_TEST_PUBLISHABLE_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "EMAIL_SENDER" variable is not set. Defaulting to a blank string.

WARN[0000] The "EMAIL_LOGIN" variable is not set. Defaulting to a blank string.

WARN[0000] The "GOOGLE_GA" variable is not set. Defaulting to a blank string.

WARN[0000] The "STRIPE_PUBLISHABLE_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "STRIPE_DEV_SECRET_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "LOAD_BALANCER_HOST" variable is not set. Defaulting to a blank string.

WARN[0000] The "QUICK_START" variable is not set. Defaulting to a blank string.

WARN[0000] The "EMAIL_SERVER" variable is not set. Defaulting to a blank string.

WARN[0000] The "CERTBOT_EMAIL" variable is not set. Defaulting to a blank string.

WARN[0000] The "STRIPE_TEST_SECRET_KEY" variable is not set. Defaulting to a blank string.

WARN[0000] The "ADS_FILE" variable is not set. Defaulting to a blank string.

[+] Running 20/21

  redis Pulled                                                                                            12.6s

   729b630784ac Pull complete                                                                             7.6s

   065c77bf222a Pull complete                                                                             8.3s

   961784053f68 Pull complete                                                                            10.8s

   b42f16846808 Pull complete                                                                            11.4s

   0f1fa5bb0033 Pull complete                                                                            12.0s

  db Pulled                                                                                               21.6s

   bd159e379b3b Pull complete                                                                             6.8s

   b955aac8d5e0 Pull complete                                                                             8.0s

   922fe4565b9a Pull complete                                                                             8.3s

   c39aa91943e9 Pull complete                                                                             9.0s

   59e6d12f4c90 Pull complete                                                                            12.1s

   d058e68b8750 Pull complete                                                                            12.5s

   03549096a058 Pull complete                                                                            12.7s

   c941aeed5670 Pull complete                                                                            12.9s

   e9ef221e3196 Pull complete                                                                            20.6s

   3f8b796beddc Pull complete                                                                            20.8s

   ea86c34b7e75 Pull complete                                                                            20.8s

   c5a56a4056cc Pull complete                                                                            20.9s

   28155096b4b0 Pull complete                                                                            21.0s

  jobe Error                                                                                               0.2s

[+] Building 100.9s (9/9) FINISHED                                                                              

 => [internal] load build definition from Dockerfile                                                        0.2s

 => => transferring dockerfile: 592B                                                                        0.0s

 => [internal] load .dockerignore                                                                           0.1s

 => => transferring context: 2B                                                                             0.0s

 => [internal] load metadata for docker.io/trampgeek/jobeinabox:latest                                      0.5s

 => [internal] load build context                                                                           0.3s

 => => transferring context: 3.99MB                                                                         0.3s

 => [1/4] FROM docker.io/trampgeek/jobeinabox:latest@sha256:3b69b1dcb5db8b587048aabf3c44eef5b3a9d605dcaef  58.3s

 => => resolve docker.io/trampgeek/jobeinabox:latest@sha256:3b69b1dcb5db8b587048aabf3c44eef5b3a9d605dcaef0  0.0s

 => => sha256:a31c7b29f4ad2bd946738970f040825704a523ded1b9d6f9c7c7cafc6ab731df 28.57MB / 28.57MB            0.6s

 => => sha256:0bae43576a4639243025c3521dc8ccc2bf1d0393867e5ff821ad86b0adc2c03a 580B / 580B                  0.2s

 => => sha256:03faafbb74e4e164429f107125b8b93c270182480213d56bb889b9bb0b93e540 293B / 293B                  0.3s

 => => sha256:3b69b1dcb5db8b587048aabf3c44eef5b3a9d605dcaef07ee3e4f8466919c3b1 1.16kB / 1.16kB              0.0s

 => => sha256:43e327d051f626462289b7419691a52b531dca19647c5aed9a2861fa17b67842 7.37kB / 7.37kB              0.0s

 => => sha256:3664762a2d648ac491f085296fe834ba744198e4f547ed6baca5b1a555fe1554 576.61MB / 576.61MB         21.1s

 => => extracting sha256:a31c7b29f4ad2bd946738970f040825704a523ded1b9d6f9c7c7cafc6ab731df                   3.5s

 => => extracting sha256:0bae43576a4639243025c3521dc8ccc2bf1d0393867e5ff821ad86b0adc2c03a                   0.0s

 => => extracting sha256:03faafbb74e4e164429f107125b8b93c270182480213d56bb889b9bb0b93e540                   0.0s

 => => extracting sha256:3664762a2d648ac491f085296fe834ba744198e4f547ed6baca5b1a555fe1554                  36.1s

 => [2/4] COPY include/* /usr/include/                                                                      0.3s

 => [3/4] RUN rm -rf /var/www/html/jobe &&     git clone https://github.com/RunestoneInteractive/jobe.git   3.4s

 => [4/4] RUN pip3 install install beautifulsoup4 pandas requests altair                                   32.9s

 => exporting to image                                                                                      5.0s

 => => exporting layers                                                                                     5.0s

 => => writing image sha256:0b8464b515b3acae0877031194b1c9dbc18177538dfa3318b9a8fc6c01ea4168                0.0s

 => => naming to docker.io/runestone/jobeinabox                                                             0.0s

                                                                                                                

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them            

[+] Running 5/5

  Network runestoneserver_default        Created                                                           0.1s

  Container runestoneserver-redis-1      Created                                                           0.2s

  Container runestoneserver-db-1         Created                                                           0.2s

  Container runestoneserver-jobe-1       Created                                                           0.2s

  Container runestoneserver-runestone-1  Created                                                           0.1s

Attaching to runestoneserver-db-1, runestoneserver-jobe-1, runestoneserver-redis-1, runestoneserver-runestone-1

runestoneserver-redis-1      | 1:C 10 Oct 2022 19:22:01.264 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

runestoneserver-redis-1      | 1:C 10 Oct 2022 19:22:01.265 # Redis version=7.0.5, bits=64, commit=00000000, modified=0, pid=1, just started

runestoneserver-redis-1      | 1:C 10 Oct 2022 19:22:01.265 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf

runestoneserver-redis-1      | 1:M 10 Oct 2022 19:22:01.270 * monotonic clock: POSIX clock_gettime

runestoneserver-redis-1      | 1:M 10 Oct 2022 19:22:01.275 * Running mode=standalone, port=6379.

runestoneserver-redis-1      | 1:M 10 Oct 2022 19:22:01.276 # Server initialized

runestoneserver-redis-1      | 1:M 10 Oct 2022 19:22:01.277 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

runestoneserver-redis-1      | 1:M 10 Oct 2022 19:22:01.279 * Ready to accept connections

runestoneserver-db-1         | The files belonging to this database system will be owned by user "postgres".

runestoneserver-db-1         | This user must also own the server process.

runestoneserver-db-1         |

runestoneserver-db-1         | The database cluster will be initialized with locale "en_US.utf8".

runestoneserver-db-1         | The default database encoding has accordingly been set to "UTF8".

runestoneserver-db-1         | The default text search configuration will be set to "english".

runestoneserver-db-1         |

runestoneserver-db-1         | Data page checksums are disabled.

runestoneserver-db-1         |

runestoneserver-db-1         | fixing permissions on existing directory /var/lib/postgresql/data ... ok

runestoneserver-db-1         | creating subdirectories ... ok

runestoneserver-db-1         | selecting dynamic shared memory implementation ... posix

runestoneserver-jobe-1       | [Tue Oct 11 08:22:01.808855 2022] [core:warn] [pid 7] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?

runestoneserver-jobe-1       | [Tue Oct 11 08:22:01.845333 2022] [mpm_prefork:notice] [pid 7] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations

runestoneserver-jobe-1       | [Tue Oct 11 08:22:01.845386 2022] [core:notice] [pid 7] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'

runestoneserver-db-1         | selecting default max_connections ... 100

runestoneserver-db-1         | selecting default shared_buffers ... 128MB

runestoneserver-db-1         | selecting default time zone ... Etc/UTC

runestoneserver-db-1         | creating configuration files ... ok

runestoneserver-db-1         | running bootstrap script ... ok

runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ /usr/local/bin/python3 -m pip install --user toml

runestoneserver-db-1         | performing post-bootstrap initialization ... ok

runestoneserver-db-1         | syncing data to disk ... ok

runestoneserver-db-1         |

runestoneserver-db-1         | initdb: warning: enabling "trust" authentication for local connections

runestoneserver-db-1         | You can change this by editing pg_hba.conf or using the option -A, or

runestoneserver-db-1         | --auth-local and --auth-host, the next time you run initdb.

runestoneserver-db-1         |

runestoneserver-db-1         | Success. You can now start the database server using:

runestoneserver-db-1         |

runestoneserver-db-1         |     pg_ctl -D /var/lib/postgresql/data -l logfile start

runestoneserver-db-1         |

runestoneserver-db-1         | waiting for server to start....2022-10-10 19:22:05.848 UTC [46] LOG:  starting PostgreSQL 13.8 (Debian 13.8-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

runestoneserver-db-1         | 2022-10-10 19:22:05.855 UTC [46] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

runestoneserver-db-1         | 2022-10-10 19:22:05.868 UTC [47] LOG:  database system was shut down at 2022-10-10 19:22:05 UTC

runestoneserver-db-1         | 2022-10-10 19:22:05.882 UTC [46] LOG:  database system is ready to accept connections

runestoneserver-db-1         |  done

runestoneserver-db-1         | server started

runestoneserver-db-1         | CREATE DATABASE

runestoneserver-db-1         |

runestoneserver-db-1         |

runestoneserver-db-1         | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

runestoneserver-db-1         |

runestoneserver-db-1         | 2022-10-10 19:22:06.622 UTC [46] LOG:  received fast shutdown request

runestoneserver-db-1         | waiting for server to shut down....2022-10-10 19:22:06.626 UTC [46] LOG:  aborting any active transactions

runestoneserver-db-1         | 2022-10-10 19:22:06.634 UTC [46] LOG:  background worker "logical replication launcher" (PID 53) exited with exit code 1

runestoneserver-db-1         | 2022-10-10 19:22:06.644 UTC [48] LOG:  shutting down

runestoneserver-db-1         | 2022-10-10 19:22:06.676 UTC [46] LOG:  database system is shut down

runestoneserver-db-1         |  done

runestoneserver-db-1         | server stopped

runestoneserver-db-1         |

runestoneserver-db-1         | PostgreSQL init process complete; ready for start up.

runestoneserver-db-1         |

runestoneserver-db-1         | 2022-10-10 19:22:06.826 UTC [1] LOG:  starting PostgreSQL 13.8 (Debian 13.8-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

runestoneserver-db-1         | 2022-10-10 19:22:06.828 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432

runestoneserver-db-1         | 2022-10-10 19:22:06.829 UTC [1] LOG:  listening on IPv6 address "::", port 5432

runestoneserver-db-1         | 2022-10-10 19:22:06.835 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

runestoneserver-db-1         | 2022-10-10 19:22:06.849 UTC [60] LOG:  database system was shut down at 2022-10-10 19:22:06 UTC

runestoneserver-db-1         | 2022-10-10 19:22:06.856 UTC [1] LOG:  database system is ready to accept connections

runestoneserver-runestone-1  | Collecting toml

runestoneserver-runestone-1  |   Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)

runestoneserver-runestone-1  | Installing collected packages: toml

runestoneserver-runestone-1  | Successfully installed toml-0.10.2

runestoneserver-runestone-1  | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ /usr/local/bin/python3 runestone_poetry_project/poetry_fix.py --no-dev

runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ poetry config virtualenvs.in-project true

runestoneserver-runestone-1  | /srv/web2py/applications/runestone$ poetry install --no-dev

runestoneserver-runestone-1  | Creating virtualenv runestone-poetry-project in /srv/web2py/applications/runestone/.venv

sfl...@bridgew.edu

unread,
Oct 12, 2022, 4:20:53 PM10/12/22
to PreTeXt development
Just a quick update in case anyone else has this problem in the future.  I attended the Runestone drop-in meeting, and everyone was very helpful. 

It turned out the problem is that I did not have enough RAM for one of the steps of the docker script.  (I was running a droplet with 512 MB, while 1GB seems to be absolutely required, and 2+GB is recommended).  After increasing the RAM in the droplet, the Runestone setup finished successfully. 
Reply all
Reply to author
Forward
0 new messages