Issues that occur after installing with docker

61 views
Skip to first unread message

SungJe Hong (hongyver)

unread,
Sep 9, 2024, 10:59:42 AM9/9/24
to Review Board Community
I installed reviewboard on docker with sample docker-compose.mysql.yaml and registered the gitlab repository. And I installed the latest rbtools on my pc.

Things I modified:

docker-compose.yaml
- NGINX_PORT=81
ports:
- 81:81
# change volumes
volumes:
- /data/reviewboard/db_data:/var/lib/mysql
volumes:
- /data/reviewboard/sitedir:/site
volumes:
- /data/reviewboard/sitedir:/var/www/reviewboard

settings_local.py
ALLOWED_HOSTS = [
"10.10.110.245",
"127.0.0.1",
"localhost"
]
CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:81", "http://10.10.110.245:81"]

Other things I did:
$ cd /site
$ chown -R www-data data
$ chown -R www-data htdocs/media/uploaded
$ chown -R www-data htdocs/media/ext
$ chown -R www-data htdocs/static/ext

1. I ran rbt setup-repo to register the repository as instructed, but an error occurred saying that the key total_results could not be found. What should I do?
2. So, when I select the diff file to write a request review on the web, it goes into an infinite waiting state. I cancel it and only a blank request is created in all review requests. (Refer to the attached image)
3. Additionally, I forcibly added REVIEWBOARD_URL to .reviewboardrc and when I run rbt login --username admin, an error message saying authenticated occurs

Please advise what I can do to solve this problem.


logs
-----
C:\Users\hongyver.INCA\Desktop\ubuntu\test>rbt setup-repo -d
>>> RBTools 5.0
>>> Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
>>> Running on Windows-10-10.0.22631-SP0
>>> Home = C:\Users\hongyver.INCA\AppData\Roaming
>>> Current directory = C:\Users\hongyver.INCA\Desktop\ubuntu\test
>>> Command line: rbt setup-repo -d

This command is intended to help users create a .reviewboardrc file in the current
directory to connect a repository and Review Board server.

Repositories must currently exist on your server (either hosted
internally or via RBCommons) to successfully generate this file.
Repositories can be added using the Admin Dashboard in Review Board or
under your team administration settings in RBCommons.

Press CTRL + C anytime during this command to cancel generating your
config file.

Enter the Review Board server URL: http://10.10.110.245:81
>>> Making HTTP GET request to http://10.10.110.245:81/api/
>>> Cached response for HTTP GET http://10.10.110.245:81/api/ expired and was not modified
>>> [scan] Checking for available SCMs for C:\Users\hongyver.INCA\Desktop\ubuntu\test...
>>> [scan] Considering all repository types
>>> [scan] Skipping Bazaar: Command line tools (one of ('brz', 'bzr')) are missing.
>>> [scan] Skipping VersionVault / ClearCase: Command line tools ('cleartool') are missing.
>>> [scan] Skipping CVS: Command line tools ('cvs') are missing.
>>> [scan] Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config --get core.bare
>>> Running: git rev-parse --show-toplevel
>>> [scan] Skipping Mercurial: Command line tools ('hg') are missing.
>>> [scan] Skipping Perforce: Command line tools ('p4') are missing.
>>> [scan] Skipping Plastic: Command line tools ('cm') are missing.
>>> [scan] Skipping Cliosoft SOS: Command line tools ('soscmd') are missing.
>>> [scan] Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Command exited with rc=1 (errors ignored): svn --non-interactive info
>>> Command stdout=b''
>>> Command stderr=b"svn: E155007: 'C:\\Users\\hongyver.INCA\\Desktop\\ubuntu\\test' is not a working copy\r\n"
>>> Running: tf vc help
>>> Command not found (tf vc help)
>>> [scan] Skipping Team Foundation Server: Command line tools (one of ('VS2017+ tf', 'Team Explorer Everywhere tf.cmd', 'Our wrapper (rbt install tfs)')) are missing.
>>> [scan] SCM scan complete. Found git (C:\Users\hongyver.INCA\Desktop\ubuntu\test)
>>> [scan] Verifying repository information...
>>> Running: git rev-parse --git-dir
>>> Running: git config --get core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git show-ref --verify refs/remotes/p4/master
>>> Command errored with rc=128: git show-ref --verify refs/remotes/p4/master
>>> Command stdout=b''
>>> Command stderr=b"fatal: 'refs/remotes/p4/master' - not a valid ref\n"
>>> Running: git config --get branch.main.merge
>>> Running: git config --get branch.main.remote
>>> Running: git config --get remote.origin.url
>>> [scan] Successfully found repository information: <RepositoryInfo(path='http://10.10.110.245/root/test.git', base_path='', local_path='C:\\Users\\hongyver.INCA\\Desktop\\ubuntu\\test')>
>>> Making HTTP GET request to http://10.10.110.245/api/repositories/?only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info%2Cdiff_file_attachments&path=http%3A%2F%2F10.10.110.245%2Froot%2Ftest.git&tool=Git%2CPerforce%2CSubversion%2CTeam+Foundation+Server+%28git%29
>>> Cached response for HTTP GET http://10.10.110.245/api/repositories/?only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info%2Cdiff_file_attachments&path=http%3A%2F%2F10.10.110.245%2Froot%2Ftest.git&tool=Git%2CPerforce%2CSubversion%2CTeam+Foundation+Server+%28git%29 expired and was modified
Traceback (most recent call last):
  File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-5.0-py3.10.egg\rbtools\api\resource.py", line 809, in __getattr__
    field_payload = self._fields[name]
KeyError: 'total_results'
rb-new.pngrb-new2.pngrb-new3.pngrb-repo.png

Christian Hammond

unread,
Sep 11, 2024, 4:55:52 AM9/11/24
to revie...@googlegroups.com
Hi,

It definitely seems like there's an issue communicating with the API. From the logs you provided, it looks like you want to be accessing port 81, but the server's configured for port 80. It's starting off with your locally-configured port 81, but the links being returned via the API are port 80. This indicates that Review Board's configured to think it should serve from port 80.

Try going into Review Board -> Admin UI -> General Settings. From there, make sure the Server address is set to http://10.10.110.245:81, and then try these operations again.

Christian

--
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 "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/0796a871-3585-42e9-97af-b0d88bdadc85n%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages