Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing quickstart-vdk results in Frontend hanging on page loader #2175

Closed
ivakoleva opened this issue May 31, 2023 · 4 comments
Closed
Assignees
Labels
area/frontend Related to changes in the folder projects/frontend for details about ui please see readme area/plugin/quickstart-vdk bug Something isn't working

Comments

@ivakoleva
Copy link
Contributor

Describe the bug
The Frontend is not loading upon installation with vdk-server.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Install quickstart-vdk latest
  2. Do server install.
  3. Open the Frontend in a browser (hanging on loading screen).

Expected behavior
The page should be loading, like prior the regression described.

Screensho
Screenshot 2023-05-31 at 17 58 48
ts

Version (please complete the following information):

  • OS: Mac
  • Version: vdk-server 0.1.865727599

Additional context
Not sure what exact version introduced the regression, need to find it and narrow the potential cause.

@ivakoleva ivakoleva added bug Something isn't working area/plugin/quickstart-vdk area/frontend Related to changes in the folder projects/frontend for details about ui please see readme labels May 31, 2023
@ivakoleva ivakoleva self-assigned this Jun 1, 2023
@ivakoleva
Copy link
Contributor Author

The issue is solved with latest quickstart-vdk. Frontend is completely operational.
The problem can be reproduced when using docker image vdk-operations-ui:1.3.883458742, and resolved with latest image.
Instructions on howto:

$ kubectl set image deployment.apps/vdk-ui management-service-ui=registry.hub.docker.com/versatiledatakit/vdk-operations-ui:1.3.883458742
$ kubectl rollout restart deployment.apps/vdk-ui 

On understanding the cause, and prevent this happening in the future:
the latest (fixed) image is published 3 hours ago, while to the older (faulty) docker image is from 2 days ago, see images.
3 hours ago, the only repo changes were merging control-service upgrades (I did it before standup).
So....I will now be looking to check if we had any Frontend functional changes released in the morning, that triggered the new docker images published? (The control-service dependencies upgrades are not supposed to release new Frontend images.)

@ivakoleva
Copy link
Contributor Author

Attaching the container-diff file changes report:

% container-diff diff registry.hub.docker.com/versatiledatakit/vdk-operations-ui:latest registry.hub.docker.com/versatiledatakit/vdk-operations-ui:1.3.883458742 --type=file





-----File-----

These entries have been added to registry.hub.docker.com/versatiledatakit/vdk-operations-ui:latest:
FILE                                                                     SIZE
/etc/apk/keys/[email protected]        451B
/etc/apk/keys/[email protected]        451B
/etc/apk/keys/[email protected]        451B
/etc/apk/keys/[email protected]        800B
/etc/apk/keys/[email protected]        800B
/lib/ld-musl-x86_64.so.1                                                 602.5K
/lib/libc.musl-x86_64.so.1                                               19B
/usr/share/nginx/html/main.05204a9552e98559.js                           3M

These entries have been deleted from registry.hub.docker.com/versatiledatakit/vdk-operations-ui:latest:
FILE                                                                     SIZE
/etc/apk/keys/[email protected]        451B
/etc/apk/keys/[email protected]        451B
/etc/apk/keys/[email protected]        800B
/etc/apk/keys/[email protected]        800B
/etc/apk/keys/[email protected]        800B
/lib/ld-musl-aarch64.so.1                                                642.4K
/lib/libc.musl-aarch64.so.1                                              20B
/usr/share/nginx/html/main.7414f1afdb7c238c.js                           2.5M

These entries have been changed between registry.hub.docker.com/versatiledatakit/vdk-operations-ui:latest and registry.hub.docker.com/versatiledatakit/vdk-operations-ui:1.3.883458742:
FILE                                                                SIZE1         SIZE2
/usr/lib/libaom.so.3.5.0                                            4.7M          7.4M
/lib/libcrypto.so.3                                                 3.5M          3.7M
/usr/sbin/nginx-debug                                               1.3M          1.2M
/usr/lib/libxml2.so.2.10.4                                          1.3M          1.1M
/usr/lib/libX11.so.6.4.0                                            1.2M          1.1M
/usr/sbin/nginx                                                     1.2M          1.2M
/usr/lib/libgcrypt.so.20.4.1                                        912.6K        1.2M
/bin/busybox                                                        897.6K        821.7K
/usr/lib/nginx/modules/ngx_http_js_module-debug.so                  890.9K        854.8K
/usr/lib/nginx/modules/ngx_http_js_module.so                        890.9K        850.7K
/usr/lib/nginx/modules/ngx_stream_js_module-debug.so                889.3K        833.2K
/usr/lib/nginx/modules/ngx_stream_js_module.so                      825.3K        833.2K
/usr/bin/njs                                                        818.9K        767.1K
/usr/lib/libfreetype.so.6.18.3                                      770K          738.2K
/usr/lib/libdav1d.so.6.6.0                                          769.6K        1.6M
/lib/libssl.so.3                                                    591.8K        588K
/usr/lib/libcurl.so.4.8.0                                           587.1K        559.5K
/usr/lib/libbrotlienc.so.1.0.9                                      578K          582.2K
/usr/lib/libpcre2-8.so.0.11.2                                       578K          642.1K
/usr/lib/libtiff.so.5.8.0                                           513.8K        461.9K
/usr/lib/libzstd.so.1.5.5                                           513.7K        505.9K
/usr/lib/libXt.so.6.0.0                                             399.1K        359.9K
/usr/lib/libncursesw.so.6.3                                         386.8K        367K
/usr/lib/libturbojpeg.so.0.2.0                                      386.1K        586.1K
/usr/lib/libgd.so.3.0.11                                            379.9K        372.2K
/usr/lib/libwebp.so.7.1.5                                           321.8K        338K
/usr/lib/libjpeg.so.8.2.2                                           321.8K        533.8K
/usr/lib/libGeoIP.so.1.6.12                                         261.8K        210K
/usr/lib/libxslt.so.1.1.37                                          258K          226.1K
/usr/bin/curl                                                       257.8K        254K
/usr/lib/libfontconfig.so.1.12.0                                    257.6K        249.8K
/lib/libapk.so.3.12.0                                               195.5K        179.7K
/usr/lib/libpng16.so.16.38.0                                        193.8K        189.9K
/usr/lib/libedit.so.0.0.70                                          193.8K        189.9K
/usr/lib/libnghttp2.so.14.24.1                                      193.7K        157.9K
/usr/lib/libxcb.so.1.1.0                                            193.7K        145.8K
/usr/lib/liblzma.so.5.2.9                                           193.6K        161.8K
/usr/lib/libexpat.so.1.8.10                                         193.6K        137.8K
/usr/lib/libXext.so.6.4.0                                           130.8K        71K
/usr/lib/libICE.so.6.3.0                                            130.4K        90.6K
/usr/lib/libgpg-error.so.0.33.1                                     129.8K        126K
/lib/libz.so.1.2.13                                                 129.8K        97.9K
/usr/lib/libwebpdecoder.so.3.1.5                                    129.7K        169.9K
/usr/lib/ossl-modules/legacy.so                                     129.7K        101.9K
/usr/lib/libavif.so.15.0.1                                          129.7K        129.9K
/usr/bin/scanelf                                                    129.7K        81.9K
/usr/lib/libexslt.so.0.8.20                                         129.7K        77.8K
/usr/lib/libxcb-glx.so.0.0.0                                        129.6K        97.8K
/usr/lib/libxcb-xkb.so.1.0.0                                        129.6K        101.8K
/usr/lib/libxcb-xinput.so.0.1.0                                     129.6K        125.8K
/usr/lib/libbrotlicommon.so.1.0.9                                   129.6K        133.8K
/lib/apk/db/installed                                               123.6K        123.4K
/usr/bin/getent                                                     92.7K         47.3K
/usr/bin/getconf                                                    79.4K         34.1K
/usr/bin/iconv                                                      76.8K         23.6K
/usr/lib/libbz2.so.1.0.8                                            68.6K         72.8K
/sbin/apk                                                           67.5K         67.9K
/usr/lib/nginx/modules/ngx_http_geoip_module-debug.so               67.4K         19.6K
/usr/lib/nginx/modules/ngx_http_geoip_module.so                     67.3K         19.6K
/usr/lib/nginx/modules/ngx_stream_geoip_module.so                   67K           19.2K
/usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so             67K           19.2K
/usr/lib/libbsd.so.0.11.7                                           66.7K         70.8K
/usr/lib/libformw.so.6.3                                            66.6K         63K
/usr/lib/nginx/modules/ngx_http_xslt_filter_module.so               66.6K         22.8K
/usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so         66.6K         22.8K
/usr/lib/nginx/modules/ngx_http_image_filter_module.so              66.6K         22.8K
/usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so        66.6K         26.8K
/usr/lib/engines-3/loader_attic.so                                  66.2K         46.5K
/usr/bin/sxpm                                                       66K           26.2K
/usr/lib/libmd.so.0.0.5                                             66K           42.1K
/usr/bin/gpg-error                                                  65.9K         34.2K
/usr/lib/engines-3/afalg.so                                         65.9K         22.1K
/usr/bin/cxpm                                                       65.9K         22.2K
/usr/bin/c_rehash                                                   65.8K         18K
/usr/lib/libXpm.so.4.11.0                                           65.8K         66K
/usr/lib/libmenuw.so.6.3                                            65.8K         34K
/usr/bin/xsltproc                                                   65.8K         26K
/usr/bin/ssl_client                                                 65.8K         14K
/usr/lib/libSM.so.6.0.1                                             65.7K         33.9K
/lib/libuuid.so.1.3.0                                               65.7K         29.8K
/usr/lib/libXdmcp.so.6.0.0                                          65.7K         25.8K
/usr/bin/fc-list                                                    65.7K         13.8K
/usr/bin/fc-query                                                   65.7K         13.8K
/usr/sbin/update-ca-certificates                                    65.7K         13.8K
/usr/bin/fc-cache                                                   65.7K         17.8K
/usr/bin/fc-cat                                                     65.7K         13.8K
/usr/bin/fc-conflist                                                65.7K         13.8K
/usr/bin/fc-match                                                   65.7K         13.8K
/usr/bin/fc-pattern                                                 65.7K         13.8K
/usr/bin/fc-validate                                                65.7K         13.8K
/usr/bin/fc-scan                                                    65.7K         13.8K
/usr/local/bin/envsubst                                             65.7K         33.8K
/usr/lib/libxcb-shm.so.0.0.0                                        65.6K         13.8K
/usr/lib/libxcb-present.so.0.0.0                                    65.6K         13.8K
/usr/lib/libxcb-randr.so.0.1.0                                      65.6K         61.8K
/usr/lib/libxcb-record.so.0.0.0                                     65.6K         17.8K
/usr/lib/libxcb-render.so.0.0.0                                     65.6K         49.8K
/usr/lib/libxcb-res.so.0.0.0                                        65.6K         17.8K
/usr/lib/libxcb-screensaver.so.0.0.0                                65.6K         13.8K
/usr/lib/libxcb-damage.so.0.0.0                                     65.6K         13.8K
/usr/lib/libxcb-dpms.so.0.0.0                                       65.6K         13.8K
/usr/lib/libxcb-sync.so.1.0.0                                       65.6K         29.8K
/usr/lib/libxcb-xf86dri.so.0.0.0                                    65.6K         17.8K
/usr/lib/libxcb-xfixes.so.0.0.0                                     65.6K         33.8K
/usr/lib/libxcb-xinerama.so.0.0.0                                   65.6K         13.8K
/usr/lib/libxcb-composite.so.0.0.0                                  65.6K         13.8K
/usr/lib/libxcb-dri3.so.0.1.0                                       65.6K         17.8K
/usr/lib/libxcb-xtest.so.0.0.0                                      65.6K         13.8K
/usr/lib/libxcb-xv.so.0.0.0                                         65.6K         29.8K
/usr/lib/libxcb-xvmc.so.0.0.0                                       65.6K         17.8K
/usr/lib/libxcb-dri2.so.0.0.0                                       65.6K         17.8K
/usr/lib/libxcb-shape.so.0.0.0                                      65.6K         13.8K
/usr/lib/libwebpdemux.so.2.0.11                                     65.6K         17.8K
/usr/bin/geoiplookup6                                               65.6K         13.8K
/usr/lib/libpcre2-posix.so.3.0.4                                    65.6K         13.8K
/usr/bin/geoiplookup                                                65.6K         13.8K
/usr/lib/libintl.so.8.3.0                                           65.6K         41.8K
/usr/lib/libbrotlidec.so.1.0.9                                      65.5K         49.7K
/usr/lib/libwebpmux.so.3.0.10                                       65.5K         37.7K
/usr/lib/libXau.so.6.0.0                                            65.5K         13.7K
/usr/lib/libpanelw.so.6.3                                           65.5K         17.6K
/usr/lib/libX11-xcb.so.1.0.0                                        65.5K         13.5K
/usr/lib/engines-3/padlock.so                                       65.4K         21.9K
/usr/lib/engines-3/capi.so                                          65.4K         13.5K
/usr/share/nginx/html/index.html                                    64.3K         64.3K
/etc/ca-certificates.conf                                           5.5K          5.5K
/docker-entrypoint.d/20-envsubst-on-templates.sh                    2.9K          1.2K
/etc/terminfo/p/putty-256color                                      2.4K          2.4K
/etc/shadow                                                         449B          449B
/lib/apk/db/triggers                                                262B          262B
/usr/bin/ldd                                                        53B           52B
/etc/apk/arch                                                       8B            7B

@ivakoleva
Copy link
Contributor Author

The detailed files comparison report (attached) suggests only system packages were upgraded, e.g. nginx. IMO, the issue was intermittent within the underlying alpine image and its packages.

Such issue would be prevented, with introducing e2e tests coverage with the quickstart-vdk Frontend deployment (smoke tests PR in progress).
We may need a more mature solution than smoke tests. For example, we may consider running the entire tests suite to verify pages content.

@ivakoleva
Copy link
Contributor Author

ivakoleva commented Jun 1, 2023

The images were manually pushed. Rebuilding the alpine image had fixed the issue.
The discussion on preventing issues propagation to production, by introducing e2e tests coverage with quickstart-vdk Frontend deployment, is in the #2101 in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to changes in the folder projects/frontend for details about ui please see readme area/plugin/quickstart-vdk bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant