【发布时间】:2025-11-30 23:15:02
【问题描述】:
我收到权限错误。我的 docker 容器上的 /admin/fonts/Roboto-Regular-webfont.woff 权限被拒绝。我通过命令 docker exec -it container /bin/bash 进入 docker 容器并运行 curl -XGET 'http://localhost' 它在我的基础上的行 {% stylesheet 'style' %} 上显示错误.html。泊坞窗位于 aws 上的 ubuntu 机器内。我正在使用 nginx 和 uwsgi 运行这个应用程序。 uwsgi .ini 中的 uid 和 gid 是 www-data。请帮我解决这个问题。
请查找 docker 日志
root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/ntdl/ntdl# docker logs
ntdl
> ntdl@1.0.2 start-prod /home/ntdl/code
> concurrently --no-color "uwsgi --ini /home/ntdl/code/uwsgi.ini" "nginx"
"npm run render-prod"
[0] [uWSGI] getting INI configuration from /home/ntdl/code/uwsgi.ini
[2]
[2] > ntdl@1.0.2 render-prod /home/ntdl/code
[2] > babel-node node/react-render.jsx
[2]
[2] React render server listening at http://0.0.0.0:9009
[2] ***** app. post
[2] Warning: Accessing PropTypes via the main React package is deprecated,
and will be removed in React v16.0. Use the latest available v15.* prop-
types package from npm instead. For info on usage, compatibility, migration
and more, see
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] ***** app. post
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] ***** app. post
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] ***** app. post
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] ***** app. post
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] ***** app. post
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
[2] global ntdl - react render - url http://54.252.92.17/api/search
[2] AJAX Failed: Error: connect ECONNREFUSED 54.252.92.17:80
[2] advancedFacets - constructor - props []
[2] _updateProps []
[2] render advanced Facets - facets []
嗨 Gasman,您可以看到权限错误 实际上,roboto 字体文件在该路径中可用。其次它在 {% stylesheet 'style' %} 请告诉我会是什么问题。
非常感谢, 巴拉特AK
【问题讨论】:
标签: django amazon-web-services ubuntu docker wagtail