In order to make it more comfortable for you to advice, I post some information.

I did `docker-compose logs` and found these things for *web_1* and *http_1*:

> web_1      | [2021-12-30 19:55:55 +0000] [9] [INFO] Starting gunicorn 20.1.0
web_1      | [2021-12-30 19:55:55 +0000] [9] [INFO] Listening at: 
http://0.0.0.0:8088 (9)
web_1      | [2021-12-30 19:55:55 +0000] [9] [INFO] Using worker: sync
web_1      | [2021-12-30 19:55:55 +0000] [12] [INFO] Booting worker with pid: 12
web_1      | 19:55:59,271 ERROR [tg.configuration.app_config] Failed to 
initialize mako template engine, removing it...
web_1      | 19:56:15,659 WARNI [allura.lib.app_globals] Image path not set for 
nav_logo
web_1      | 19:56:36,555 WARNI [forgeimporters.github] github_importer.* not 
set up in .ini file; cannot use OAuth for GitHub
web_1      | 19:56:52,614 WARNI [forgeimporters.github] github_importer.* not 
set up in .ini file; cannot use OAuth for GitHub
web_1      | 19:57:06,479 WARNI [forgeimporters.github] github_importer.* not 
set up in .ini file; cannot use OAuth for GitHub
web_1      | 19:57:24,707 WARNI [forgeimporters.github] github_importer.* not 
set up in .ini file; cannot use OAuth for GitHub
web_1      | 19:58:07,140 ERROR [forgegit.model.git_repo] Error with 
rev_parse(master^0) at http://allura.tennis24.ee/p/poster/code/ref/master/
web_1      | Traceback (most recent call last):
web_1      |   File "/allura/ForgeGit/forgegit/model/git_repo.py", line 240, in 
commit
web_1      |     impl = self._git.rev_parse(str(rev) + '^0')
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 120, in wrapper
web_1      |     return self.run_and_log(func, inst, *args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 152, in run_and_log
web_1      |     retval = func(*args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
225, in rev_parse
web_1      |     obj = name_to_object(repo, rev[:start])
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
159, in name_to_object
web_1      |     raise BadName(name)
web_1      | gitdb.exc.BadName: Ref 'master' did not resolve to an object
web_1      | 18:11:53,079 ERROR [forgegit.model.git_repo] Error with 
rev_parse(master^0) at http://allura.tennis24.ee/p/poster/code/ref/master/
web_1      | Traceback (most recent call last):
web_1      |   File "/allura/ForgeGit/forgegit/model/git_repo.py", line 240, in 
commit
web_1      |     impl = self._git.rev_parse(str(rev) + '^0')
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 120, in wrapper
web_1      |     return self.run_and_log(func, inst, *args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 152, in run_and_log
web_1      |     retval = func(*args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
225, in rev_parse
web_1      |     obj = name_to_object(repo, rev[:start])
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
159, in name_to_object
web_1      |     raise BadName(name)
web_1      | gitdb.exc.BadName: Ref 'master' did not resolve to an object
web_1      | 20:53:57,126 ERROR [forgegit.model.git_repo] Error with 
rev_parse(master^0) at http://allura.tennis24.ee/p/poster/code/ref/master/
web_1      | Traceback (most recent call last):
web_1      |   File "/allura/ForgeGit/forgegit/model/git_repo.py", line 240, in 
commit
web_1      |     impl = self._git.rev_parse(str(rev) + '^0')
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 120, in wrapper
web_1      |     return self.run_and_log(func, inst, *args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/timermiddleware/__init__.py",
 line 152, in run_and_log
web_1      |     retval = func(*args, **kwargs)
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
225, in rev_parse
web_1      |     obj = name_to_object(repo, rev[:start])
web_1      |   File 
"/allura-data/virtualenv/lib/python3.6/site-packages/git/repo/fun.py", line 
159, in name_to_object
web_1      |     raise BadName(name)
web_1      | gitdb.exc.BadName: Ref 'master' did not resolve to an object

> http_1     | AH00558: apache2: Could not reliably determine the server's 
> fully qualified domain name, using 172.25.0.7. Set the 'ServerName' directive 
> globally to suppress this message
inmail_1   | 19:55:59,301 INFO  [allura.command] Loaded tools
http_1     | AH00558: apache2: Could not reliably determine the server's fully 
qualified domain name, using 172.25.0.7. Set the 'ServerName' directive 
globally to suppress this message
http_1     | [Thu Dec 30 19:56:00.737742 2021] [:error] [pid 1:tid 
140034370296768] python_init: Python version mismatch, expected '2.7.6', found 
'2.7.17'.
http_1     | [Thu Dec 30 19:56:00.739671 2021] [:error] [pid 1:tid 
140034370296768] python_init: Python executable found '/usr/bin/python'.
http_1     | [Thu Dec 30 19:56:00.739688 2021] [:error] [pid 1:tid 
140034370296768] python_init: Python path being used 
'/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
http_1     | [Thu Dec 30 19:56:00.739714 2021] [:notice] [pid 1:tid 
140034370296768] mod_python: Creating 8 session mutexes based on 6 max 
processes and 25 max threads.
http_1     | [Thu Dec 30 19:56:00.739721 2021] [:notice] [pid 1:tid 
140034370296768] mod_python: using mutex_directory /tmp 
http_1     | [Thu Dec 30 19:56:00.761391 2021] [mpm_event:notice] [pid 1:tid 
140034370296768] AH00489: Apache/2.4.29 (Ubuntu) mod_python/3.3.1 Python/2.7.17 
configured -- resuming normal operations
http_1     | [Thu Dec 30 19:56:00.761631 2021] [core:notice] [pid 1:tid 
140034370296768] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'

Regarding to configuration, I have these rows regarding to web addresses and 
ports in *docker-dev.ini*:

> domain = allura.tennis24.ee
base_url = http://allura.tennis24.ee

> scm.repos.refresh_base_url = http://web:8080

> scm.host.http.git = http://allura.tennis24.ee/git$path
scm.host.file.git = /allura-data/scm/git$path

> scm.repos.tarball.url_prefix = http://localhost:8088/

Regarding to the same things, I have the following configuration rows in 
*production.ini*:

> use = config:/allura/Allura/docker-dev.ini#main

> base_url = http://allura.tennis24.ee
domain = allura.tennis24.ee

> scm.repos.refresh_base_url = http://web:8080

> scm.host.https.git = https://allura.tennis24.ee/git$path

*nginx* configuration:

> server {
        server_name allura.tennis24.ee;
        location / {
                proxy_http_version  1.1;
                proxy_set_header    Upgrade $http_upgrade;
                proxy_set_header    Connection "Upgrade";
                proxy_pass http://localhost:8088;
        }

}

If I change *8088* into *8080* in that file then for the address 
http://allura.tennis24.ee/git/p/poster/puud.kalmer, I get:

> This allura.tennis24.ee page can’t be foundNo webpage was found for the web 
> address: http://allura.tennis24.ee/git/p/poster/puud.kalmer
HTTP ERROR 404


---

** [tickets:#8406] Installing on "Ubuntu 20.04" not possible**

**Status:** open
**Milestone:** v1.13.0
**Labels:** install 
**Created:** Fri Dec 24, 2021 11:34 PM UTC by peacecop kalmer:
**Last Updated:** Tue Jan 04, 2022 06:16 PM UTC
**Owner:** nobody


Installing on *Ubuntu 20.04* according to the 
[manual](https://forge-allura.apache.org/docs/getting_started/installation.html)
 giving in the command:
~~~

sudo docker-compose run taskd paster setup-app docker-dev.ini
~~~

results with:

> Creating network "allura-git_default" with the default driver
> Building web
> Step 1/9 : FROM ubuntu:18.04
>  ---> 5a214d77f5d7
> Step 2/9 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get 
> install -y --no-install-recommends     git-core     python3-dev     gcc     
> libmagic1     libssl-dev     libldap2-dev     libsasl2-dev     libjpeg8-dev   
>   zlib1g-dev     python3-venv     zip     subversion     python3-svn     curl 
>     locales     sudo     && rm -rf /var/lib/apt/lists/*
>  ---> Using cache
>  ---> 9e4c012987ac
> Step 3/9 : RUN curl --silent --location https://deb.nodesource.com/setup_10.x 
> | sudo bash - &&     DEBIAN_FRONTEND=noninteractive apt-get install --yes 
> --no-install-recommends nodejs
>  ---> Using cache
>  ---> 03e2dc378636
> Step 4/9 : RUN locale-gen en_US.UTF-8
>  ---> Using cache
>  ---> 754eb37004ea
> Step 5/9 : ENV LANG en_US.UTF-8
>  ---> Using cache
>  ---> 80fe4470c51b
> Step 6/9 : ENV USER root
>  ---> Using cache
>  ---> a9a65fbce4c4
> Step 7/9 : WORKDIR /allura
>  ---> Using cache
>  ---> f3205a90cce3
> Step 8/9 : ENV PYTHONUNBUFFERED 1
>  ---> Using cache
>  ---> 336704d9b3c3
> Step 9/9 : CMD gunicorn --paste Allura/docker-dev.ini -b :8088 --reload
>  ---> Using cache
>  ---> 6eb3703bbbf8
> Successfully built 6eb3703bbbf8
> Successfully tagged allura-git_web:latest
> WARNING: Image for service web was built because it did not already exist. To 
> rebuild this image you must use `docker-compose build` or `docker-compose up 
> --build`.
> Creating allura-git_solr_1  ... done
> Creating allura-git_mongo_1 ... done
> Creating allura-git_web_1   ... error
> 
> ERROR: for allura-git_web_1  Cannot create container for service web: create 
> .: volume name is too short, names should be at least two alphanumeric 
> characters
> 
> ERROR: for web  Cannot create container for service web: create .: volume 
> name is too short, names should be at least two alphanumeric characters
> ERROR: Encountered errors while bringing up the project.



---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to