grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
688 stars 62 forks source link

Demo app doesn't work #521

Closed willwill96 closed 2 months ago

willwill96 commented 3 months ago

Description

I tried running the demo application, but it seems like there are some pre-requisite environment variables that were not mentioned (at least that I could find).

When trying to run the demo application I get:

Error response from daemon: failed to mount local volume: mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/2adb7c7b876d780728dae8c88c0cc7cce00ed41867cd91a36148ebeb02d0ec1c:/var/lib/docker/volumes/faro-web-sdk_demo_demo_logs/_data, flags: 0x1000: no such file or directory

Steps to reproduce

  1. Pull down repo
  2. docker compose --profile demo up -d
  3. See the error posted above

Expected behavior

docker compose runs successfully

Actual behavior

docker compose fails

Environment

Demo

Context

wilfriedroset commented 3 months ago

I guess you can workaround this issue by adjusting the volume options

diff --git a/docker-compose.yaml b/docker-compose.yaml
index 2b9ce28..c773d54 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -139,11 +139,11 @@ volumes:
   demo_node_modules:
   demo_demo_dist:
   demo_demo_logs:
-    driver: 'local'
-    driver_opts:
-      type: 'none'
-      device: '${PWD}/${DEMO_DEMO_PATH}/${DEMO_SERVER_LOGS_PATH}'
-      o: 'bind'
+    # driver: 'local'
+    # driver_opts:
+    #   type: 'none'
+    #   device: '${PWD}/${DEMO_DEMO_PATH}/${DEMO_SERVER_LOGS_PATH}'
+    #   o: 'bind'
   demo_demo_node_modules:
   demo_core_dist:
   demo_core_node_modules:
codecapitano commented 2 months ago

@willwill96 seems to be fixed with #563. Closing this for now. If the issue still exists for you please feel free to re-open the issue.

Thanks and cheers Marco