Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: The local path, `/data/reviewboard` in my case, should have two lables: `httpd_sys_content_t` for nginx and `svirt_sandbox_file_t` for access from a contaier. I failed to apply both. Thus just have disabld the selinux completly by changing `/etc/selinux/config` file. Eventually I would go back and try to enable it again. -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210709070229.1724.98077%40ip-10-1-54-209.ec2.internal.
Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: Sorry you had to deal with this.. Yeah, Django/Gunicorn does not serve up static media, so something like nginx is required. The [Serving Content](https://www.reviewboard.org/docs/manual/4.0/admin/installation/docker/#serving-content) docs are intended to cover this, but we need to make some adjustments, as people often miss this. We'll fix up the `sitedir`/`site` issue. Definitely a problem that's probably confused plenty of people. What did you need to run for SELinux? We can add that to the docs. -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210708225505.1626.88332%40ip-10-1-54-209.ec2.internal.
Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: Some comments on docu improvement to let others to avoid the same mistakes: - The volume binding in the `docker run` command should be as ` :/site` (site vs. sitedir) - The extra server configuration should be un the top of the page, as in step-by-stel approach css files not available - Extra note on SELinux is required. I failed to allow podman and nginx to access the same directory in parallel and finally have disabled selinux -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210708130437.1625.16127%40ip-10-1-54-209.ec2.internal.
Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: Sorry for the noise. It was not obvious that static content requires extra web server. -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210708110902.1629.36829%40ip-10-1-54-209.ec2.internal.
Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: And more info: ``` 2021-07-07 16:44:02 +] [60] [DEBUG] GET /static/djblets/js/extensions.min.89cfb166357d.js Error rendering TemplateHook : Reverse for 'powerpack-apply-license' not found. 'powerpack-apply-license' is not a valid view function or pattern name. Traceback (most recent call last): File "/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 172, in _get_response resolver_match = resolver.resolve(request.path_info) File "/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 394, in resolve raise Resolver404({'tried': tried, 'path': new_path}) ``` No Powerpack is configured. -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210707164506.2029.50879%40ip-10-1-54-209.ec2.internal.
Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New update by kofemann For Beanbag, Inc. > Review Board > Ticket #4933 Reply: This is what I see on the console: ``` [2021-07-07 14:25:03 +] [61] [DEBUG] GET /static/djblets/js/datagrid.min.c3b715397200.js WARNING:django.request:Not Found: /static/djblets/js/datagrid.min.c3b715397200.js ``` However the file exists: ``` root@rb-pod:/# ls -l /site/htdocs/static/djblets/js/datagrid.min.c3b715397200.js -rw-r--r--. 1 root root 9281 Jun 29 08:49 /site/htdocs/static/djblets/js/datagrid.min.c3b715397200.js root@rb-pod:/# ``` Moreover, the direct get from the container returs an error: ``` root@rb-pod:/# curl -v localhost:8080/static/djblets/js/datagrid.min.c3b715397200.js * Trying ::1:8080... * TCP_NODELAY set * connect to ::1 port 8080 failed: Connection refused * Trying 127.0.0.1:8080... * TCP_NODELAY set * Connected to localhost (127.0.0.1) port 8080 (#0) > GET /static/djblets/js/datagrid.min.c3b715397200.js HTTP/1.1 > Host: localhost:8080 > User-Agent: curl/7.68.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 400 Bad Request < Server: gunicorn < Date: Wed, 07 Jul 2021 14:29:39 GMT < Connection: keep-alive < Content-Type: text/html < Vary: Accept-Language < Content-Language: en < ETag: "571e88fb6da35fec3989eca6b40f5e20" < Content-Length: 26 < X-Frame-Options: SAMEORIGIN < * Connection #0 to host localhost left intact Bad Request (400)root@rb-pod:/# ``` -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210707142954.2032.91088%40ip-10-1-54-209.ec2.internal.
Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container
-- To reply, visit https://hellosplat.com/s/beanbag/tickets/4933/ -- New ticket #4933 by kofemann For Beanbag, Inc. > Review Board Status: New Tags: Priority:Medium, Type:Defect -- Missing CSS and JS files (/static ?) after migration to official container == # What version are you running? 3.0.21, 4.0.3 # What's the URL of the page containing the problem? https://rb.dcache.org/ # What steps will reproduce the problem? 1. Just connect 2. 3. # What is the expected output? What do you see instead? A regular page # What operating system are you using? What browser? Centos # Please provide any additional information below. Until doday we are running unofficial contauers `ducatel/reviewboard` (https://github.com/Ducatel/reviewboard). Today I have switched to containers provided by beanbag, fist 3.0.21 and then 4.0.3. In both cases the the css and js files are not accesible. -- -- You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/20210707135039.2033.82433%40ip-10-1-54-209.ec2.internal.
Re: missing css and js files
It's unlikely that Apache will look in /usr/sbin, as that's intended for root. Put it in /usr/bin. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Tue, Apr 10, 2012 at 2:52 AM, Steven Zhu steven...@gmail.com wrote: Hi Christian, I searched the problem and got the similar problem from below url: http://code.google.com/p/reviewboard/issues/detail?id=1637can=1q=Error%20uploading%20new%20diff%3A%20[Errno%202]%20No%20such%20file%20or%20directorycolspec=ID%20Type%20Status%20Priority%20Component%20Owner%20Summary%20Milestone From the url that said can not web server can not find p4. Currently, I already add P4 into system path that is /usr/sbin. but still got the same problem. How to set P4 path at 1.6.5 ? Does anyone know this ? 2012/4/10 Steven Zhu steven...@gmail.com Hi Christian, After upgrade to RB 1.6.5, the previous error info is disappeared. But I encountered the following error that can not uploading diff file when execute post-review tool. It looks like could not found diff file. Do you know that what is the file location ? Sever log: Error uploading new diff: [Errno 2] No such file or directory Traceback (most recent call last): File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/webapi/resources.py, line 1509, in create request.FILES.get('parent_diff_path')) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/reviews/forms.py, line 286, in create history) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/diffviewer/forms.py, line 63, in create diff_file, basedir, check_existance=(not parent_diff_file))) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/diffviewer/forms.py, line 149, in _process_files not tool.file_exists(filename, revision))): File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/core.py, line 72, in file_exists self.get_file(path, revision) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/perforce.py, line 327, in get_file return self.client.get_file(path, revision) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/perforce.py, line 245, in get_file return self._run_worker(lambda: self._get_file(path, revision)) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/perforce.py, line 175, in _run_worker result = worker() File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/perforce.py, line 245, in lambda return self._run_worker(lambda: self._get_file(path, revision)) File /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.5-py2.6.egg/reviewboard/scmtools/perforce.py, line 222, in _get_file stderr=subprocess.PIPE) File /usr/lib/python2.6/subprocess.py, line 633, in __init__ errread, errwrite) File /usr/lib/python2.6/subprocess.py, line 1139, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Steven 2012/4/10 Christian Hammond chip...@chipx86.com Hi Steven, Yes, though you may need to manually remove Django 1.4 first. Django 1.4 changed how media files were accessed, and it broke Review Board 1.6.x. The 1.7 release will make use of Django 1.4's new architecture. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Apr 9, 2012 at 8:54 PM, Steven Zhu steven...@gmail.com wrote: Hi Christian, Do you mean that my issue is caused by RB version and Django ? If upgrade to RB 1.6.5, the issue will disappear. right ? 2012/4/10 Christian Hammond chip...@gmail.com This is a different issue. You'll need to remove Django 1.4 and upgrade to RB 1.6.5, and do a site upgrade. Christian On Apr 9, 2012, at 20:33, Steven Zhu steven...@gmail.com wrote: I am using 1.6.4.1 and found the similar error(missing css file and cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware ) in server log that is listed below. Anyone can help to fix ? Server log: 11:28:10 ERROR Exception thrown for user mstar at http://msstra066-ubuntu.mstarsemi.com.tw/admin/db/scmtools/repository/6/admin/css/forms.css/ repository object with primary key u'6/admin/css/forms.css' does not exist. Traceback (most recent call last): File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py, line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/options.py, line
missing css and js files
Hi all, We were trying to create a rb site with reviewboard 1.7alpha dev. The site seems to work functionally but doesn't have the expected layout. It seems that the static/rb/css/common.min.css and static/rb/js/base.min.js are missing. Anyone knows how to fix this? What could we do to have the nice layout of reviewboard? Thank a lot! Best, Dorothy -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: missing css and js files
Yeah, don't use 1.7 alpha yet :) That stuff is all undergoing a lot of work. Hoping to put out a beta this week or next, now that that work is almost done. We're doing nightly dogfoods first. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Apr 9, 2012 at 2:36 PM, Dorothy Kong dorot...@yahoo.cn wrote: Hi all, We were trying to create a rb site with reviewboard 1.7alpha dev. The site seems to work functionally but doesn't have the expected layout. It seems that the static/rb/css/common.min.css and static/rb/js/base.min.js are missing. Anyone knows how to fix this? What could we do to have the nice layout of reviewboard? Thank a lot! Best, Dorothy -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: missing css and js files
This is a different issue. You'll need to remove Django 1.4 and upgrade to RB 1.6.5, and do a site upgrade. Christian On Apr 9, 2012, at 20:33, Steven Zhu steven...@gmail.com wrote: I am using 1.6.4.1 and found the similar error(missing css file and cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware ) in server log that is listed below. Anyone can help to fix ? Server log: 11:28:10 ERROR Exception thrown for user mstar at http://msstra066-ubuntu.mstarsemi.com.tw/admin/db/scmtools/repository/6/admin/css/forms.css/ repository object with primary key u'6/admin/css/forms.css' does not exist. Traceback (most recent call last): File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py, line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/options.py, line 366, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/views/decorators/cache.py, line 89, in _wrapped_view_func response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/sites.py, line 196, in inner return view(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 25, in _wrapper return bound_func(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 21, in bound_func return func(self, *args2, **kwargs2) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/db/transaction.py, line 209, in inner return func(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/options.py, line 1023, in change_view raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)}) Http404: repository object with primary key u'6/admin/css/forms.css' does not exist. 11:28:10 ERROR Exception thrown for user mstar at http://msstra066-ubuntu.mstarsemi.com.tw/admin/db/scmtools/repository/6/admin/img/icon_addlink.gif/ repository object with primary key u'6/admin/img/icon_addlink.gif' does not exist. Traceback (most recent call last): File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py, line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/options.py, line 366, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/views/decorators/cache.py, line 89, in _wrapped_view_func response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/sites.py, line 196, in inner return view(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 25, in _wrapper return bound_func(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/utils/decorators.py, line 21, in bound_func return func(self, *args2, **kwargs2) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/db/transaction.py, line 209, in inner return func(*args, **kwargs) File /usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/contrib/admin/options.py, line 1023, in change_view raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)}) Http404: repository object with primary key u'6/admin/img/icon_addlink.gif' does not exist. 11:28:10 ERROR Exception thrown for user mstar at