Closed NaLaUer closed 3 years ago
I entered the 10.0.10.56:8080/admin, seem like it's reachable, it shows me Django administration login page as this picture
docker exec -it cvat_ui nginx -T
gave me:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
# configuration file /etc/nginx/mime.types:
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
application/wasm wasm;
}
# configuration file /etc/nginx/conf.d/default.conf:
server {
root /usr/share/nginx/html;
# Any route that doesn't have a file extension (e.g. /devices)
location / {
try_files $uri $uri/ /index.html;
}
}
docker exec -it cvat_proxy nginx -T
give me:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# For long domain names (e.g. AWS hosts)
server_names_hash_bucket_size 128;
include /etc/nginx/conf.d/*.conf;
client_max_body_size 0;
}
# configuration file /etc/nginx/mime.types:
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
# configuration file /etc/nginx/conf.d/default.conf:
server {
listen 80;
server_name 10.0.10.56;
proxy_pass_header X-CSRFToken;
proxy_set_header Host $http_host;
proxy_pass_header Set-Cookie;
location ~* /api/.*|git/.*|tensorflow/.*|auto_annotation/.*|analytics/.*|static/.*|admin|admin/.*|documentation/.*|dextr/.*|reid/.* {
proxy_pass http://cvat:8080;
}
# workaround for match location by arguments
location = / {
error_page 418 = @annotation_ui;
if ( $query_string ~ "^id=\d+.*" ) { return 418; }
proxy_pass http://cvat_ui;
}
location / {
proxy_pass http://cvat_ui;
}
# old annotation ui, will be removed in the future.
location @annotation_ui {
proxy_pass http://cvat:8080;
}
}
docker exec -it cvat_ui cat /usr/share/nginx/html/index.html
give me this:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
when I docker exec -it cvat /bin/bash
&& ls
:
django@9e24d19d5d77:~$ ls
cvat cvat-core cvat-data data datumaro keys logs manage.py media mod_wsgi.conf models share static supervisord.conf tests utils wait-for-it.sh
@NaLaUer
First of all please dont ignore the issue template and specify CVAT version at least. Also please rebuild cvat_ui image with the following command docker-compose build --no-cache cvat_ui
and attach full build log as file.
@azhavoro CVAT version is 1.1.0 The full build log is :
Building cvat_ui
Step 1/36 : FROM node:lts-alpine AS cvat-ui
---> 7f1893c3ede0
Step 2/36 : ARG http_proxy
---> Running in c7a74f1a01a1
Removing intermediate container c7a74f1a01a1
---> 21c211a7ec70
Step 3/36 : ARG https_proxy
---> Running in 036b743ec60f
Removing intermediate container 036b743ec60f
---> abfe6bcba15f
Step 4/36 : ARG no_proxy
---> Running in 27456fee3d96
Removing intermediate container 27456fee3d96
---> 3e7d92fd8715
Step 5/36 : ARG socks_proxy
---> Running in ca3851db280d
Removing intermediate container ca3851db280d
---> 18bebef17b05
Step 6/36 : ARG PUBLIC_INSTANCE
---> Running in ba3004d1eee2
Removing intermediate container ba3004d1eee2
---> ee3cdb3842a3
Step 7/36 : ARG WA_PAGE_VIEW_HIT
---> Running in 45cb1fe85e99
Removing intermediate container 45cb1fe85e99
---> 63ff1ac9a4d9
Step 8/36 : ENV TERM=xterm http_proxy=${http_proxy} https_proxy=${https_proxy} no_proxy=${no_proxy} socks_proxy=${socks_proxy} LANG='C.UTF-8' LC_ALL='C.UTF-8'
---> Running in ca279bbe1c8c
Removing intermediate container ca279bbe1c8c
---> 80a56732adf4
Step 9/36 : COPY cvat-core/package*.json /tmp/cvat-core/
---> be42cdc5b4c5
Step 10/36 : COPY cvat-canvas/package*.json /tmp/cvat-canvas/
---> 52421370937a
Step 11/36 : COPY cvat-ui/package*.json /tmp/cvat-ui/
---> 53c1717ba8ac
Step 12/36 : COPY cvat-data/package*.json /tmp/cvat-data/
---> 73712d110254
Step 13/36 : RUN npm config set registry https://registry.npm.taobao.org
---> Running in 236b00735957
Removing intermediate container 236b00735957
---> 39f19b06682a
Step 14/36 : WORKDIR /tmp/cvat-data/
---> Running in 88dfac28b31d
Removing intermediate container 88dfac28b31d
---> a3ed0ecccdb3
Step 15/36 : RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
---> Running in beaf684c3732
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
+ cnpm@6.1.1
added 689 packages from 972 contributors in 14.278s
Removing intermediate container beaf684c3732
---> 1e82479a926d
Step 16/36 : WORKDIR /tmp/cvat-core/
---> Running in d086f34e002a
Removing intermediate container d086f34e002a
---> a539e49b64bb
Step 17/36 : RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
---> Running in 469c761f3411
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
+ cnpm@6.1.1
updated 1 package in 16.822s
Removing intermediate container 469c761f3411
---> 9c8ca0361bc8
Step 18/36 : WORKDIR /tmp/cvat-canvas/
---> Running in f5b1674ff1b6
Removing intermediate container f5b1674ff1b6
---> 69c4df47c349
Step 19/36 : RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
---> Running in b7946e2435c0
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
+ cnpm@6.1.1
updated 1 package in 15.709s
Removing intermediate container b7946e2435c0
---> 823e6f2ddbd9
Step 20/36 : WORKDIR /tmp/cvat-ui/
---> Running in 2e5b2ba68b30
Removing intermediate container 2e5b2ba68b30
---> 1ab386bc4327
Step 21/36 : RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
---> Running in 99e729e5563d
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
+ cnpm@6.1.1
updated 1 package in 14.51s
Removing intermediate container 99e729e5563d
---> d43d23dd0496
Step 22/36 : COPY cvat-data/ /tmp/cvat-data/
---> 25c9ba81bd26
Step 23/36 : COPY cvat-core/ /tmp/cvat-core/
---> c8567929e4f8
Step 24/36 : COPY cvat-canvas/ /tmp/cvat-canvas/
---> 80e0c2380a4b
Step 25/36 : COPY cvat-ui/ /tmp/cvat-ui/
---> 1614cc54b057
Step 26/36 : RUN npm install webpack -g cnpm --registry=https://registry.npm.taobao.org
---> Running in 726144e2bc92
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
+ cnpm@6.1.1
+ webpack@5.6.0
added 82 packages from 122 contributors and updated 1 package in 17.875s
Removing intermediate container 726144e2bc92
---> 354883339973
Step 27/36 : RUN npm install webpack-cli -g cnpm --registry=https://registry.npm.taobao.org
---> Running in c1d4a36d93a4
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
/usr/local/bin/webpack-cli -> /usr/local/lib/node_modules/webpack-cli/bin/cli.js
npm WARN webpack-cli@4.2.0 requires a peer of webpack@4.x.x || 5.x.x but none is installed. You must install peer dependencies yourself.
+ cnpm@6.1.1
+ webpack-cli@4.2.0
added 63 packages from 39 contributors and updated 1 package in 17.908s
Removing intermediate container c1d4a36d93a4
---> 2f41bdd2e786
Step 28/36 : RUN npm install webpack@2.1.0-beta.22 --save-dev -g cnpm --registry=https://registry.npm.taobao.org
---> Running in 11d0d9969d7e
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
/usr/local/bin/cnpm -> /usr/local/lib/node_modules/cnpm/bin/cnpm
/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack/node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/webpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ cnpm@6.1.1
+ webpack@2.1.0-beta.22
added 297 packages from 175 contributors, removed 63 packages and updated 17 packages in 25.114s
Removing intermediate container 11d0d9969d7e
---> 677238e1066c
Step 29/36 : RUN cnpm install html-webpack-plugin
---> Running in 6fe66c33a417
platform unsupported html-webpack-plugin@3.2.0 › webpack@4.44.2 › watchpack@1.7.5 › chokidar@3.4.3 › fsevents@~2.1.2 Package require os(darwin) not compatible with your platform(linux)
platform unsupported html-webpack-plugin@3.2.0 › webpack@4.44.2 › watchpack@1.7.5 › watchpack-chokidar2@2.0.1 › chokidar@2.1.8 › fsevents@^1.2.7 Package require os(darwin) not compatible with your platform(linux)
[fsevents@~2.1.2] optional install error: Package require os(darwin) not compatible with your platform(linux)
[fsevents@^1.2.7] optional install error: Package require os(darwin) not compatible with your platform(linux)
✔ Installed 1 packages
✔ Linked 319 latest versions
✔ Run 0 scripts
deprecate html-webpack-plugin@3.2.0 › webpack@4.44.2 › micromatch@3.1.10 › extglob@2.0.4 › snapdragon@0.8.2 › source-map-resolve@0.5.3 › resolve-url@^0.2.1 https://github.com/lydell/resolve-url#deprecated
deprecate html-webpack-plugin@3.2.0 › webpack@4.44.2 › micromatch@3.1.10 › extglob@2.0.4 › snapdragon@0.8.2 › source-map-resolve@0.5.3 › urix@^0.1.0 Please see https://github.com/lydell/urix#deprecated
deprecate html-webpack-plugin@3.2.0 › webpack@4.44.2 › watchpack@1.7.5 › watchpack-chokidar2@2.0.1 › chokidar@^2.1.8 Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
deprecate html-webpack-plugin@3.2.0 › webpack@4.44.2 › watchpack@1.7.5 › watchpack-chokidar2@2.0.1 › chokidar@2.1.8 › fsevents@^1.2.7 fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
Recently updated (since 2020-11-17): 2 packages (detail see file /tmp/cvat-ui/node_modules/.recently_updates.txt)
✔ All packages installed (368 packages installed from npm registry, used 5s(network 5s), speed 1.18MB/s, json 320(725.28kB), tarball 5.05MB)
Removing intermediate container 6fe66c33a417
---> b75dad048e75
Step 30/36 : RUN cnpm install tsconfig-paths-webpack-plugin
---> Running in 24a480625f0e
✔ Installed 1 packages
✔ Linked 13 latest versions
✔ Run 0 scripts
✔ All packages installed (11 packages installed from npm registry, used 757ms(network 749ms), speed 126.34kB/s, json 14(30.92kB), tarball 63.7kB)
Removing intermediate container 24a480625f0e
---> 7240ad8088c4
Step 31/36 : RUN cnpm install dotenv-webpack
---> Running in d4b660d06908
✔ Installed 1 packages
✔ Linked 3 latest versions
✔ Run 0 scripts
✔ All packages installed (3 packages installed from npm registry, used 552ms(network 549ms), speed 176.99kB/s, json 4(81.04kB), tarball 16.12kB)
Removing intermediate container d4b660d06908
---> 8d82012aa5c7
Step 32/36 : RUN npm run build
---> Running in 8661e58541a7
> cvat-ui@1.2.0 build /tmp/cvat-ui
> webpack --config ./webpack.config.js
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
Do you want to install 'webpack-cli' (yes/no): Removing intermediate container 8661e58541a7
---> 2e4113078ff9
Step 33/36 : FROM nginx:stable-alpine
---> 85e3ed8a51fa
Step 34/36 : RUN sed -i "s/}/application\/wasm wasm;\n}/g" /etc/nginx/mime.types
---> Running in 521b40d794eb
Removing intermediate container 521b40d794eb
---> f01c2a866696
Step 35/36 : COPY cvat-ui/react_nginx.conf /etc/nginx/conf.d/default.conf
---> 1471aacaa28f
Step 36/36 : COPY --from=cvat-ui /tmp/cvat-ui/dist /usr/share/nginx/html/
---> 96ad66347b14
Successfully built 96ad66347b14
Successfully tagged cvat_cvat_ui:latest
@azhavoro I added a little bit of content in the Dockerfile_ui中:
RUN npm install webpack -g cnpm --registry=https://registry.npm.taobao.org
RUN npm install webpack-cli -g cnpm --registry=https://registry.npm.taobao.org
#RUN npm i --save-dev html-webpack-plugin -g cnpm --registry=https://registry.npm.taobao.org
RUN npm install webpack@2.1.0-beta.22 --save-dev -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install html-webpack-plugin
RUN cnpm install tsconfig-paths-webpack-plugin
RUN cnpm install dotenv-webpack
without it will build error
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
Do you want to install 'webpack-cli' (yes/no): Removing intermediate container 8661e58541a7
---> 2e4113078ff9
I'm not sure that this step is completed successfully, I suppose in your case webpack doesn't generate js bundle.
@NaLaUer , try to rebuild. Be sure that you have enough memory on your server. I will close the issue. No reply more than 10 days.
I installed according to the installation guide
My docker-compose.override.yml is here
I did
docker-compose down
docker-compose -f docker-compose.yml -f docker-compose.override.yml build
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
The result is
T tried the flowing solution: #1289(comment)