Hi Christian,

I found out in the meantime, that this must have something todo with 
PostgreSQL; if I start the containers 1:1 as described at the Image's 
Docker Hub page, it works:

docker run -d --name rb-postgres -e POSTGRES_USER=reviewboard postgres:
alpine
docker run --name rb-memcached -d -p 11211 memcached:alpine
docker run -v /root/.ssh -v /media --name rb-data busybox true
docker run -it --link rb-postgres:pg --link rb-memcached:memcached --volumes
-from rb-data -p 8000:8000 ikatson/reviewboard

If I try to connect it to the host's PostgreSQL server like this, I get the 
errors in the output of rb-site install:

docker run --name rb-memcached -d -p 11211 memcached:alpine
docker run -v /root/.ssh -v /media --name rb-data busybox true
docker run --name reviewboard -it --link reviewboard-memcached:memcached -e 
"PGHOST=172.17.0.1 PGUSER=ww_reviewboard PGDB=ww_db_reviewboard 
PGPASSWORD=not_shown" --volumes-from rb-data -p 8000:8000 -d 
ikatson/reviewboard

When I enter the container and try to connect to the host's PostgreSQL 
server using exactly the same credentials which are used here using psql, 
it works:

[root@3ae76ae78b85 /]# psql -U ww_reviewboard -h 172.17.0.1 
ww_db_reviewboard
Password for user ww_reviewboard: 
psql (9.2.18, server 9.6.3)
WARNING: psql version 9.2, server version 9.6.
         Some psql features might not work.
Type "help" for help.

ww_db_reviewboard=> \l
                                         List of databases
       Name        |     Owner      | Encoding |   Collate   |    Ctype   
 |   Access privileges   
-------------------+----------------+----------+-------------+-------------+-----------------------
 postgres          | postgres       | UTF8     | de_DE.UTF-8 | de_DE.UTF-8 
| 
 template0         | postgres       | UTF8     | de_DE.UTF-8 | de_DE.UTF-8 
| =c/postgres          +
                   |                |          |             |             
| postgres=CTc/postgres
 template1         | postgres       | UTF8     | de_DE.UTF-8 | de_DE.UTF-8 
| postgres=CTc/postgres+
                   |                |          |             |             
| =c/postgres
 ww_db_reviewboard | ww_reviewboard | UTF8     | en_US.UTF8  | en_US.UTF8 
 | 
(4 rows)

ww_db_reviewboard=> \dt+
No relations found.
ww_db_reviewboard=>

So there seems to be something which RB is complaining about in my 
PostgreSQL Server - but what?

Regards,
Marc


Am Donnerstag, 17. August 2017 09:52:55 UTC+2 schrieb Marc Richter:

> Hi everyone,
> I tried to setup RB with the help of several different Docker containers; 
> I even started a new one from scratch myself. And I *always* end up with 
> the following error:
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34
>
>
> I have tried the following Docker containers:
>
> ducatel/reviewboard
> ikatson/reviewboard
> derjudge/reviewboard
>
> with this values:
> DB_HOST=172.17.0.1
> DB_USER=reviewboard
> DB_NAME=reviewboard
> DB_PASSWORD=not-shown-here
> DOMAIN=www.somewhere.com
> SITE_ROOT=/review/
> RB_PASSWORD=mypass
> [email protected]
>
> I connect to a PostgreSQL 9.6 DB with UTF-8 encoding.
> I have absolutely no idea where this comes from; do all people out there 
> have these issues with RB currently?
>
> Thanks for your ideas!
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to