Git Product home page Git Product logo

docker-reviewboard's People

Contributors

antonlindahlcevt avatar apollux avatar benstaveleytaylor avatar frakman1 avatar ikatson avatar leoger avatar mamewotoko avatar markusn avatar melroy89 avatar sjuxax avatar spitty avatar tetsurom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-reviewboard's Issues

About data backup and restore

Step 1:Setup ReviewBoard with docker ikatson/reviewboard and add subversion repository then try to pubilsh some review request.
Step 2: upgrade from 3.0.17 to 3.0.20
Step 3: make postgres backup
Step 4: all over again run docker postgres on a new server and restore with the backup
Step 5:run ikatson/reviewboard on the same new server and found

1.requests are list but could not be open with error msg "It appears something broke when you tried to go here.This is either a bug in Review Board or a server configuration error"
2.subversion configuration is gone and there is no “Subversion ” option for repository type at all!

Can't create repository

I am trying to add a regular git repository hosted in my network but keep getting errors.

When I go to http://<myip>:8000/admin/db/scmtools/repository/add/ and try to add a repository, the only option I am allowed to select for Repository Hosting is

image

Everything else requires a PowerPack. e.g.

image

In that case, the next field, Repository Information only has two options:

image

Both of them give me errors.

failed to run reviewboard seems centos:7 docker image update broken

It was just running fabulously last day and i just deleted my all images from local.
It started failing then and there, figured it out that the centos image has been updated on 28-nov-2017.

ref: CentOS/sig-cloud-instance-images@37e0a7f

reviewboard_1 | mapped 145536 bytes (142 KB) for 1 cores
reviewboard_1 | *** Operational MODE: single process ***
reviewboard_1 | mapped virtual pymodule "settings_local" to real pymodule "/var/www/reviewboard/conf/settings_local.py"
reviewboard_1 | ImportError: No module named django.core.handlers.wsgi
reviewboard_1 | unable to load app 0 (mountpoint='') (callable not found or import error)
reviewboard_1 | *** no app loaded. going in full dynamic mode ***
reviewboard_1 | *** uWSGI is running in multiple interpreter mode ***
...

Failed to run review board start.sh

I'm using docker-compose to start the service.
I've made changes in docker-compose.yml for volumes:

            - /projects/reviewboard/.ssh:/root/.ssh
            - /projects/reviewboard/media:/media

And I got following info while trying to run with docker-compose up

reviewboard_1 | Postgres is up!
reviewboard_1 | [uWSGI] getting INI configuration from /uwsgi.ini
reviewboard_1 | [uwsgi-static] added mapping for /static => /var/www/reviewboard/htdocs/static
reviewboard_1 | [uwsgi-static] added mapping for /media => /var/www/reviewboard/htdocs/media
reviewboard_1 | [uwsgi-static] added mapping for /errordocs => /var/www/reviewboard/htdocs/errordocs
reviewboard_1 | *** Starting uWSGI 2.0.16 (64bit) on [Fri Mar 30 17:03:20 2018] ***
reviewboard_1 | compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 13 February 2018 02:48:03
reviewboard_1 | os: Linux-4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018
reviewboard_1 | nodename: 719f496b9d1f
reviewboard_1 | machine: x86_64
reviewboard_1 | clock source: unix
reviewboard_1 | pcre jit disabled
reviewboard_1 | detected number of CPU cores: 2
reviewboard_1 | current working directory: /
reviewboard_1 | detected binary path: /usr/sbin/uwsgi
reviewboard_1 | dropping root privileges as early as possible
reviewboard_1 | uWSGI running as root, you can use --uid/--gid/--chroot options
reviewboard_1 | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
reviewboard_1 | your memory page size is 4096 bytes
reviewboard_1 | detected max file descriptor number: 1048576
reviewboard_1 | building mime-types dictionary from file /etc/mime.types...1060 entry found
reviewboard_1 | lock engine: pthread robust mutexes
reviewboard_1 | thunder lock: disabled (you can enable it with --thunder-lock)
reviewboard_1 | uWSGI http bound on :8000 fd 4
reviewboard_1 | uwsgi socket 0 bound to TCP address 127.0.0.1:33529 (port auto-assigned) fd 3
reviewboard_1 | dropping root privileges after socket binding
reviewboard_1 | uWSGI running as root, you can use --uid/--gid/--chroot options
reviewboard_1 | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
reviewboard_1 | Python version: 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
reviewboard_1 | Python main interpreter initialized at 0x2358860
reviewboard_1 | dropping root privileges after plugin initialization
reviewboard_1 | uWSGI running as root, you can use --uid/--gid/--chroot options
reviewboard_1 | *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
reviewboard_1 | python threads support enabled
reviewboard_1 | your server socket listen backlog is limited to 100 connections
reviewboard_1 | your mercy for graceful operations on workers is 60 seconds
reviewboard_1 | mapped 145840 bytes (142 KB) for 1 cores
reviewboard_1 | *** Operational MODE: single process ***
reviewboard_1 | failed to open python file /var/www/reviewboard/conf/settings_local.py

Could you pls help?

broken pipe error in uWSGI

SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /static/lib/css/images/ui-bg_flat_75_ffffff_40x100.8692e6efddf8.png
Wed Aug 3 07:47:58 2016 - uwsgi_response_sendfile_do(): Broken pipe [core/writer.c line 645] during GET /static/lib/css/images/ui-bg_flat_75_ffffff_40x100.8692e6efddf8.png

psql login fails

To reproduce: in current master, docker-compose up

PSQL login continually fails:

reviewboard_1  | psql: FATAL:  password authentication failed for user "reviewboard"
reviewboard_1  | Postgres is unavailable - sleeping
postgres_1     | 2020-03-20 10:59:07.222 UTC [51] FATAL:  password authentication failed for user "reviewboard"
postgres_1     | 2020-03-20 10:59:07.222 UTC [51] DETAIL:  Password does not match for user "reviewboard".
postgres_1     |        Connection matched pg_hba.conf line 95: "host all all all md5"

... ad infinitum

psql: could not connect to server: Connection refused

I had to add

- POSTGRES_HOST_AUTH_METHOD=trust

to the postgres environment block of docker-compose.yml because it would fail for a different reason (password not set error). Now I get this error and have no idea how to proceed.

root@Tower:/mnt/user/appdata/docker-reviewboard# docker-compose up
Creating network "docker-reviewboard_default" with the default driver
Creating docker-reviewboard_memcached_1 ... done
Creating docker-reviewboard_postgres_1  ... done
Creating docker-reviewboard_reviewboard_1 ... done
Attaching to docker-reviewboard_memcached_1, docker-reviewboard_postgres_1, docker-reviewboard_reviewboard_1
reviewboard_1  | Waiting for Postgres readiness...
postgres_1     | ********************************************************************************
postgres_1     | WARNING: POSTGRES_HOST_AUTH_METHOD has been set to "trust". This will allow
postgres_1     |          anyone with access to the Postgres port to access your database without
postgres_1     |          a password, even if POSTGRES_PASSWORD is set. See PostgreSQL
postgres_1     |          documentation about "trust":
postgres_1     |          https://www.postgresql.org/docs/current/auth-trust.html
postgres_1     |          In Docker's default configuration, this is effectively any other
postgres_1     |          container on the same system.
postgres_1     | 
postgres_1     |          It is not recommended to use POSTGRES_HOST_AUTH_METHOD=trust. Replace
postgres_1     |          it with "-e POSTGRES_PASSWORD=password" instead to set a password in
postgres_1     |          "docker run".
postgres_1     | ********************************************************************************
postgres_1     | The files belonging to this database system will be owned by user "postgres".
postgres_1     | This user must also own the server process.
postgres_1     | 
postgres_1     | The database cluster will be initialized with locale "en_US.utf8".
postgres_1     | The default database encoding has accordingly been set to "UTF8".
postgres_1     | The default text search configuration will be set to "english".
postgres_1     | 
postgres_1     | Data page checksums are disabled.
postgres_1     | 
postgres_1     | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1     | creating subdirectories ... ok
postgres_1     | selecting dynamic shared memory implementation ... posix
postgres_1     | selecting default max_connections ... 100
postgres_1     | selecting default shared_buffers ... 128MB
postgres_1     | selecting default time zone ... UTC
postgres_1     | creating configuration files ... ok
postgres_1     | running bootstrap script ... ok
postgres_1     | performing post-bootstrap initialization ... sh: locale: not found
postgres_1     | 2020-05-04 04:14:22.672 UTC [30] WARNING:  no usable system locales were found
reviewboard_1  | psql: could not connect to server: Connection refused
reviewboard_1  |        Is the server running on host "postgres" (172.21.0.3) and accepting
reviewboard_1  |        TCP/IP connections on port 5432?
reviewboard_1  | Postgres is unavailable - sleeping
postgres_1     | ok

Environment:

root@Tower:/mnt/user/appdata/docker-reviewboard# uname -a
Linux Tower 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64 Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz GenuineIntel GNU/Linux

root@Tower:/mnt/user/appdata/docker-reviewboard# cat /etc/os-release 
NAME=Slackware
VERSION="14.2"
ID=slackware
VERSION_ID=14.2
PRETTY_NAME="Slackware 14.2 x86_64 (post 14.2 -current)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slackware:slackware_linux:14.2"
HOME_URL="http://slackware.com/"
SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/"
VERSION_CODENAME=current

root@Tower:/mnt/user/appdata/docker-reviewboard# docker-compose --version
docker-compose version 1.26.0-rc4, build d279b7a8

Installation yields error

Following the installation process yields a result

* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... 
[!] There was an error synchronizing the database. Make sure the
    database is created and has the appropriate permissions, and then
    continue.
[!] Details: FATAL:  no pg_hba.conf entry for host "172.17.0.16", user
    "reviewboard", database "reviewboard", SSL off

Location of SSH key

At least on my installation Review Board puts the generated or uploaded private key into /root/.ssh. Should't it go into /.ssh? Or what is /.ssh for? No doubt it must be persistent and thus stored in a volume. Am I missing something? Why do I seem to be the only one with this problem?

Cheers,
Ezra.

Fails to build PIL

#6 160.6     running build_ext
#6 160.6
#6 160.6
#6 160.6     The headers or library files could not be found for zlib,
#6 160.6     a required dependency when compiling Pillow from source.
#6 160.6
#6 160.6     Please see the install instructions at:
#6 160.6        https://pillow.readthedocs.io/en/latest/installation.html
#6 160.6
#6 160.6     Traceback (most recent call last):
#6 160.6       File "<string>", line 1, in <module>
#6 160.6       File "/tmp/pip-install-CAJEdS/pillow/setup.py", line 903, in <module>
#6 160.6         raise RequiredDependencyException(msg)
#6 160.6     __main__.RequiredDependencyException:
#6 160.6
#6 160.6     The headers or library files could not be found for zlib,
#6 160.6     a required dependency when compiling Pillow from source.
#6 160.6
#6 160.6     Please see the install instructions at:
#6 160.6        https://pillow.readthedocs.io/en/latest/installation.html
#6 160.6
#6 160.6
#6 160.6     ----------------------------------------
#6 160.6 ERROR: Command errored out with exit status 1: /opt/venv/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-CAJEdS/pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-CAJEdS/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ywtjM_/install-record.txt --single-version-externally-managed --compile --install-headers /opt/venv/include/site/python2.7/Pillow Check the logs for full command output.
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c set -ex;     if [ "${RB_VERSION}" ]; then RB_VERSION="==${RB_VERSION}"; fi;     python -m virtualenv --system-site-packages /opt/venv;     . /opt/venv/bin/activate;     pip install "ReviewBoard${RB_VERSION}" django-storages==1.1.8 oauthlib==1.0.1 semver;     rm -rf /root/.cache]: exit code: 1

ansible installation failed on redhat 7

while install ansible using git repo , i failed Please check below error output

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
compiling '_configtest.c':
int main(void) { __sync_synchronize(); return 0; }

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -c _configtest.c -o _configtest.o
gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
make: *** [install] Error 1

Please release 3.0.11

Hi Igor,

I would like to update our reviewboard instance to 3.0.11. Could you please release a 3.0.11 tag?

Cheers,
André

Exception Value: relation "django_site" does not exist

Did some testing and everything worked fine. Removed the docker containers and created new (tried to get correct timezone), and after that I get below error regardless of what I do..

Tried to clean everything using docker system prune -a but cant get it to work again?

Tested using:

# Install postgres
docker run -d --name rb-postgres -e POSTGRES_USER=reviewboard postgres:alpine

# Install memcached
docker run --name rb-memcached -d -p 11211 memcached:alpine

# Run reviewboard with a named volume to hold your site's data
docker run -it -v reviewboard-site:/var/www/ --link rb-postgres:pg --link rb-memcached:memcached -p 8000:8000 ikatson/reviewboard

Error when running with DEBUG set.

Environment:


Request Method: GET
Request URL: http://192.168.0.222:8000/

Django Version: 1.6.11
Python Version: 2.7.15
Installed Applications:
[u'corsheaders',
 u'django.contrib.admin',
 u'django.contrib.auth',
 u'django.contrib.contenttypes',
 u'django.contrib.sites',
 u'django.contrib.sessions',
 u'django.contrib.staticfiles',
 u'djblets',
 u'djblets.avatars',
 u'djblets.configforms',
 u'djblets.datagrid',
 u'djblets.extensions',
 u'djblets.features',
 u'djblets.feedview',
 u'djblets.forms',
 u'djblets.gravatars',
 u'djblets.integrations',
 u'djblets.log',
 u'djblets.pipeline',
 u'djblets.privacy',
 u'djblets.recaptcha',
 u'djblets.siteconfig',
 u'djblets.util',
 u'haystack',
 u'oauth2_provider',
 u'pipeline',
 u'reviewboard',
 u'reviewboard.accounts',
 u'reviewboard.admin',
 u'reviewboard.attachments',
 u'reviewboard.avatars',
 u'reviewboard.changedescs',
 u'reviewboard.diffviewer',
 u'reviewboard.extensions',
 u'reviewboard.hostingsvcs',
 u'reviewboard.integrations',
 u'reviewboard.notifications',
 u'reviewboard.oauth',
 u'reviewboard.reviews',
 u'reviewboard.scmtools',
 u'reviewboard.site',
 u'reviewboard.webapi',
 u'django_evolution']
Installed Middleware:
[u'django.middleware.gzip.GZipMiddleware',
 u'reviewboard.admin.middleware.InitReviewBoardMiddleware',
 u'corsheaders.middleware.CorsMiddleware',
 u'django.middleware.clickjacking.XFrameOptionsMiddleware',
 u'django.middleware.common.CommonMiddleware',
 u'django.middleware.http.ConditionalGetMiddleware',
 u'django.middleware.locale.LocaleMiddleware',
 u'django.contrib.sessions.middleware.SessionMiddleware',
 u'django.contrib.auth.middleware.AuthenticationMiddleware',
 u'django.contrib.messages.middleware.MessageMiddleware',
 u'djblets.siteconfig.middleware.SettingsMiddleware',
 u'reviewboard.admin.middleware.LoadSettingsMiddleware',
 u'djblets.extensions.middleware.ExtensionsMiddleware',
 u'djblets.integrations.middleware.IntegrationsMiddleware',
 u'djblets.log.middleware.LoggingMiddleware',
 u'reviewboard.accounts.middleware.TimezoneMiddleware',
 u'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware',
 u'reviewboard.accounts.middleware.X509AuthMiddleware',
 u'reviewboard.site.middleware.LocalSiteMiddleware',
 u'djblets.extensions.middleware.ExtensionsMiddlewareRunner',
 u'reviewboard.admin.middleware.ExtraExceptionInfoMiddleware']


Traceback:
File "/opt/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  88.                 response = middleware_method(request)
File "/opt/venv/local/lib/python2.7/site-packages/reviewboard/admin/middleware.py" in process_request
  27.             initialize()
File "/opt/venv/local/lib/python2.7/site-packages/reviewboard/__init__.py" in initialize
  152.     signals.initializing.send(sender=None)
File "/opt/venv/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py" in send
  185.             response = receiver(signal=self, sender=sender, **named)
File "/opt/venv/local/lib/python2.7/site-packages/reviewboard/accounts/__init__.py" in _on_initializing
  22.     register_privacy_consents()
File "/opt/venv/local/lib/python2.7/site-packages/reviewboard/accounts/privacy.py" in register_privacy_consents
  60.         siteconfig = SiteConfiguration.objects.get_current()
File "/opt/venv/local/lib/python2.7/site-packages/djblets/siteconfig/managers.py" in get_current
  42.         return self.get_for_site_id(Site.objects.get_current().pk)
File "/opt/venv/local/lib/python2.7/site-packages/django/contrib/sites/models.py" in get_current
  47.             current_site = self.get(pk=sid)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/manager.py" in get
  151.         return self.get_queryset().get(*args, **kwargs)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/query.py" in get
  304.         num = len(clone)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
  77.         self._fetch_all()
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
  857.             self._result_cache = list(self.iterator())
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
  220.         for row in compiler.results_iter():
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
  713.         for rows in self.execute_sql(MULTI):
File "/opt/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
  786.         cursor.execute(sql, params)
File "/opt/venv/local/lib/python2.7/site-packages/djblets/log/middleware.py" in execute
  63.             return super(CursorDebugWrapper, self).execute(*args, **kwargs)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute
  69.             return super(CursorDebugWrapper, self).execute(sql, params)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute
  53.                 return self.cursor.execute(sql, params)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/utils.py" in __exit__
  99.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/venv/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute
  53.                 return self.cursor.execute(sql, params)

Exception Type: ProgrammingError at /
Exception Value: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
                                                             ^

Multi-threaded single process configuration

I posted a problem on the ReviewBoard user support forum and this was part of the reply from Christian Hammond:

I looked at the Docker image and I suspect part of what's happening is that uwsgi (set up in the image) is running multi-threaded but only with a single process. This can lead to blocking issues. You're really going to want to update that to use multiple processes, for things like this. Maybe start with 10, go up from there. You'll have to determine what numbers are best for your scale (and how many Docker instances you plan to run). It doesn't look like the image natively supports customizing this, so you'll probably have to fork the image.

If you agree it is an issue with this Docker image, could it be changed, or at least made configurable? Thanks.

SSL certificate of repo server changed

Added an SVN repo with SSL certificate. After a repo server outage, Reviewboard complains with

Unable to connect to a repository at URL 'https://repo_server/repo'
OPTIONS of 'https://repo_server/repo': Server certificate verification failed: certificate has expired, certificate issued for a different hostname, issuer is not trusted (https://repo_server)

Any hints on how to trust the new server certificate? IIUC, I would need to mount the data-only container and work on the checkouts directly. Is there another way?

differences in dockerhub and github

Hi ikatson,

I run reviewboard from dockerhub is working beautifully fine (thanks to provide this),
however I need to make some changes, so I pull it from your git repo, before I make some changes I try to build and run it
the build was sucessful, however the run has an issue

/start.sh: line 24: rb-site: command not found

[uWSGI] getting INI configuration from /uwsgi.ini
.
.
.
*** Operational MODE: single process ***
failed to open python file /var/www/reviewboard/conf/settings_local.py

I suspect the one in github is slightly outdated, could you please have a look and update it? Thanks so much

Please release 3.0.14

Hi,

I just tested ReviewBoard 3.0.14. The Docker image builds without issues and seems to function correctly. Could you release a new version?

Thanks,

failed on centos7 64bit,

docker run -it --link rb-postgres:pg --link rb-memcached:memcached --volumes-from rb-data -p 8000:8000 ikatson/reviewboard
[uWSGI] getting INI configuration from /uwsgi.ini
[uwsgi-static] added mapping for /static => /var/www/reviewboard/htdocs/static
[uwsgi-static] added mapping for /media => /var/www/reviewboard/htdocs/media
[uwsgi-static] added mapping for /errordocs => /var/www/reviewboard/htdocs/errordocs
*** Starting uWSGI 2.0.15 (64bit) on [Mon Mar 19 17:11:05 2018] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-11) on 19 May 2017 14:33:49
os: Linux-3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018
nodename: 72327e7d271f
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /
detected binary path: /usr/sbin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your processes number limit is 1048576
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
building mime-types dictionary from file /etc/mime.types...1060 entry found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8000 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:33740 (port auto-assigned) fd 3
Python version: 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Python main interpreter initialized at 0x1d4fa90
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145536 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
failed to open python file /var/www/reviewboard/conf/settings_local.py

i don't know what's going on..

uwsgi need pcre lib

should add

ADD apt-get install -y libpcre3 libpcre3-dev

to the Dockerfile

jessie version

would it be possible to have a jessie version of docker-reviewboard ?

Error loading psycopg2 module: No module named psycopg2

make build && make run

Everything seemed to work in docker, but as soon as I hit http://localhost:8000 I get an empty response, and the following in the console:

reviewboard_1  |     __import__(name)
reviewboard_1  |   File "/opt/venv/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 25, in <module>
reviewboard_1  |     raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
reviewboard_1  | django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2

I tried adding psycopg2 to the pip command in the Dockerfile, and it looked like pip installed it, but I still got the same result.

No module named pygments

Commands:

git clone https://github.com/ikatson/docker-reviewboard
cd docker-reviewboard
make build
make run

The following errors persists (even when I update Dockerfile to install python-pygments or use pip to install it. I suspect that something else is broken.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
    self.load_middleware()
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 45, in load_middleware
    mw_class = import_by_path(middleware_path)
  File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 26, in import_by_path
    sys.exc_info()[2])
  File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 21, in import_by_path
    module = import_module(module_path)
  File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/reviewboard/admin/middleware.py", line 19, in <module>
    from reviewboard.admin.siteconfig import load_site_config
  File "/usr/lib/python2.7/site-packages/reviewboard/admin/siteconfig.py", line 48, in <module>
    from reviewboard.accounts.backends import get_registered_auth_backend
  File "/usr/lib/python2.7/site-packages/reviewboard/accounts/backends.py", line 31, in <module>
    from reviewboard.accounts.models import LocalSiteProfile
  File "/usr/lib/python2.7/site-packages/reviewboard/accounts/models.py", line 19, in <module>
    from reviewboard.reviews.models import Group, ReviewRequest
  File "/usr/lib/python2.7/site-packages/reviewboard/reviews/models/__init__.py", line 6, in <module>
    from reviewboard.reviews.models.file_attachment_comment import \
  File "/usr/lib/python2.7/site-packages/reviewboard/reviews/models/file_attachment_comment.py", line 9, in <module>
    from reviewboard.attachments.models import FileAttachment
  File "/usr/lib/python2.7/site-packages/reviewboard/attachments/models.py", line 15, in <module>
    from reviewboard.attachments.mimetypes import MimetypeHandler
  File "/usr/lib/python2.7/site-packages/reviewboard/attachments/mimetypes.py", line 13, in <module>
    from pygments import highlight
django.core.exceptions.ImproperlyConfigured: Error importing module reviewboard.admin.middleware: "No module named pygments"
[pid: 28|app: 0|req: 1/1] 172.18.0.1 () {38 vars in 656 bytes} [Fri Sep 29 04:08:32 2017] GET / => generated 0 bytes in 292 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory compilation terminated.

Adding Django 1.6.11 to easy-install.pth file
Installing django-admin.py script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg
Searching for six>=1.4.0
Reading http://pypi.python.org/simple/six/
Best match: six 1.10.0
Downloading https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab142f8b55
Processing six-1.10.0.tar.gz
Running six-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8sORx2/six-1.10.0/egg-dist-tmp-y36dfa
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __path__
Adding six 1.10.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/six-1.10.0-py2.7.egg
Searching for pyasn1>=0.1.7
Reading http://pypi.python.org/simple/pyasn1/
Best match: pyasn1 0.1.9
Downloading https://pypi.python.org/packages/c3/ea/03328a42adfc16a1babbe334ad969f6e27862bcaff9576444d423d2c9257/pyasn1-0.1.9-py2.7.egg#md5=08eef0e822233609f6ca55b419ae00c
Processing pyasn1-0.1.9-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/pyasn1-0.1.9-py2.7.egg
Extracting pyasn1-0.1.9-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pyasn1 0.1.9 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/pyasn1-0.1.9-py2.7.egg
Searching for cryptography>=1.1
Reading http://pypi.python.org/simple/cryptography/
Best match: cryptography 1.5.2
Downloading https://pypi.python.org/packages/03/1a/60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/cryptography-1.5.2.tar.gz#md5=f977a6ddb38b07121c0157fc77c62ab
Processing cryptography-1.5.2.tar.gz
Running cryptography-1.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-85lxYx/cryptography-1.5.2/egg-dist-tmp-dZUJrw
Checking .pth file support in .
/usr/bin/python -E -c pass
Searching for cffi>=1.4.1
Reading http://pypi.python.org/simple/cffi/
Best match: cffi 1.8.3
Downloading https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a/cffi-1.8.3.tar.gz#md5=c8e877fe0426a99d0cf5872cff95b27
Processing cffi-1.8.3.tar.gz
Running cffi-1.8.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-85lxYx/cryptography-1.5.2/temp/easy_install-9KPQgU/cffi-1.8.3/egg-dist-tmp-ONUhzI
compiling '_configtest.c':
__thread int some_threadlocal_variable_42;

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
The command '/bin/sh -c easy_install reviewboard' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.