Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7378

Eventing : Document the workaround for MB-41508

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 6.5.1, 6.6.0
    • None
    • eventing
    • None
    • 1

    Description

      Given that users might hit this unknowingly while debugging their functions, should be best to document the expectation as described as part of MB-41508 and the relevant workaround at least until we move to a newer V8 version.

      Note: Should also put in a note that these steps are necessary only for development / staging clusters as users aren't expected to spawn a debugger in a live prod environment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jon.strabala Jon Strabala added a comment - - edited

          Before I can update the doc pages, Abhishek Jindal we need the commands to fix a) MacOS and also b) PC/Windows

          NOTE: In versions 6.5.0, 6.5.1, and 6.6.0 users might experience bug MB-41508 a Chrome "WebSocket Disconnected" when debugging Eventing functions that call either toLocaleString() or Intl.DateTimeFormat.  Essentially the file "icudtl.dat" which provides support for International Components for Unicode (ICU) is not in the needed location. The following step (copying the Chrome "icudtl.dat" file) is necessary only for development / staging clusters as users aren't expected to spawn a debugger in a live production environment.

          • Linux
            cp -p /opt/couchbase/bin/icudtl.dat /opt/couchbase/var/lib/couchbase 
          • MacOS
            ????
            cp -p /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/icudtl.dat /Users/$USER/Library/Application\ Support/Couchbase/
          • PC/Windows
            ????
          jon.strabala Jon Strabala added a comment - - edited Before I can update the doc pages, Abhishek Jindal  we need the commands to fix a) MacOS and also b) PC/Windows NOTE: In versions 6.5.0, 6.5.1, and 6.6.0 users might experience bug MB-41508 a Chrome " WebSocket Disconnected " when debugging Eventing functions that call either toLocaleString() or Intl.DateTimeFormat.  Essentially the file " icudtl.dat " which provides support for International Components for Unicode (ICU) is not in the needed location. The following step (copying the Chrome " icudtl.dat " file) is necessary only for development / staging clusters as users aren't expected to spawn a debugger in a live production environment. Linux cp -p /opt/couchbase/bin/icudtl.dat /opt/couchbase/var/lib/couchbase  MacOS ???? cp -p /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/icudtl.dat /Users/$USER/Library/Application\ Support/Couchbase/ PC/Windows ????
          jon.strabala Jon Strabala added a comment - - edited

          I figured out the needed macOS file location by running the following to get the current working 'path' of the eventing-consumer 

          lsof -a -d cwd | grep -i eventing
          

          In my case it was, note the user name in a macOS shell can be $USER

          /Users/jonstrabala/Library/Application Support/Couchbase
          

          Thus for macOS the proper copy/fix for  MB-41508 seems to be 

          • MacOS
            cp -p /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/icudtl.dat /Users/$USER/Library/Application\ Support/Couchbase/

          Still need the equivalent WIndows file system copy command.

          jon.strabala Jon Strabala added a comment - - edited I figured out the needed macOS file location by running the following to get the current working 'path' of the eventing-consumer  lsof -a -d cwd | grep -i eventing In my case it was, note the user name in a macOS shell can be $USER /Users/jonstrabala/Library/Application Support/Couchbase Thus for macOS the proper copy/fix for   MB-41508  seems to be  MacOS cp -p /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/icudtl.dat /Users/$USER/Library/Application\ Support/Couchbase/ Still need the equivalent WIndows file system copy command.

          The above is in the 6.6 Eventing documentation, but we need the final update for PC/Windows before we can do the BP to 6.5 docs and this ticket.

          jon.strabala Jon Strabala added a comment - The above is in the 6.6 Eventing documentation, but we need the final update for PC/Windows before we can do the BP to 6.5 docs and this ticket.

          People

            jon.strabala Jon Strabala
            abhishek.jindal Abhishek Jindal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty