Skip to content

Conversation

@micheljung
Copy link
Member

No description provided.

@micheljung micheljung requested a review from duk3luk3 October 9, 2017 20:58
@ghost ghost assigned micheljung Oct 9, 2017
@ghost ghost added the in progress label Oct 9, 2017
@micheljung micheljung force-pushed the bugfix/#313-clan-database branch from 928ef77 to 240078a Compare October 9, 2017 21:08
@duk3luk3
Copy link
Member

duk3luk3 commented Oct 15, 2017

I'm trying to figure out if content.faforever.com is actually needed to build the server, but when I try to run the pip install manually, I always get a 403 forbidden error from content.faforever.com/wheels:

(.venv) user@fafstack:/opt/faf/server$ pip install --trusted-host content.faforever.com -r requirements.txt
Collecting typing (from -r requirements.txt (line 1))
Exception:
Traceback (most recent call last):
...
pip._vendor.requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://content.faforever.com/wheel/

This is due to a permission problem on the server:

faforever@brackman:/opt/faf$ docker-compose logs --tail=100 faf-nginx | grep wheel
WARNING: Some networks were defined but are not used by any service: outside
faf-nginx                        | nginx.1    | 2017/10/15 05:32:58 [error] 2121#2121: *8417362 open() "/content/wheels" failed (13: Permission denied), client: 101.182.46.207, server: content.faforever.com, request: "GET /wheels HTTP/1.1", host: "content.faforever.com"
faf-nginx                        | nginx.1    | content.faforever.com 101.182.46.207 - - [15/Oct/2017:05:32:58 +0000] "GET /wheels HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
faf-nginx                        | nginx.1    | 2017/10/15 05:33:01 [error] 2121#2121: *8417362 "/content/wheels/index.html" is forbidden (13: Permission denied), client: 101.182.46.207, server: content.faforever.com, request: "GET /wheels/ HTTP/1.1", host: "content.faforever.com"
faf-nginx                        | nginx.1    | content.faforever.com 101.182.46.207 - - [15/Oct/2017:05:33:01 +0000] "GET /wheels/ HTTP/1.1" 403 169 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"

Should the nginx-server container run as faforever instead as root?

@micheljung
Copy link
Member Author

Do you mean faf-nginx? Yes, if possible. But I believe I failed when trying to do so. Or maybe it was another one..

@micheljung micheljung merged commit 6e33e3f into develop Oct 23, 2017
@ghost ghost removed the in progress label Oct 23, 2017
@Brutus5000 Brutus5000 deleted the bugfix/#313-clan-database branch February 29, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants