Re: Review Board Ticket #4933: Missing CSS and JS files (/static ?) after migration to official container

2021-07-09 Thread Tiramisu Mokka
--
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

2021-07-08 Thread Christian Hammond
--
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

2021-07-08 Thread Tiramisu Mokka
--
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

2021-07-08 Thread Tiramisu Mokka
--
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

2021-07-07 Thread Tiramisu Mokka
--
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

2021-07-07 Thread Tiramisu Mokka
--
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

2021-07-07 Thread Tiramisu Mokka
--
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.