Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28399

Odo created component nodejs v14 community with NodeJS devfile not working properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 4.30.x
    • 4.23.0.AM1
    • openshift
    • None
    • Hide

      1. Import NodeJS v14 community app via Application launcher
      2. Connect to OS application explorer connection (I am using both crc (with developer priviledges) and cluster-bot cluster)
      3. Create component using NodeJS devfile and nodejs app
      4. Push the app
      5. Create new URL (8080)
      6. Assert: Application is deployed and working on the given port
      Actual result: Application is deployed, but insert a record ends up with an error:
      Error: connect ECONNREFUSED 127.0.0.1:5432
      7. Assert: Insert breakpoint into app.js and debug application successfully
      Actual result: Cannot attach the debugger

      Show
      1. Import NodeJS v14 community app via Application launcher 2. Connect to OS application explorer connection (I am using both crc (with developer priviledges) and cluster-bot cluster) 3. Create component using NodeJS devfile and nodejs app 4. Push the app 5. Create new URL (8080) 6. Assert: Application is deployed and working on the given port Actual result: Application is deployed, but insert a record ends up with an error: Error: connect ECONNREFUSED 127.0.0.1:5432 7. Assert: Insert breakpoint into app.js and debug application successfully Actual result: Cannot attach the debugger

    Description

      I am having some problem running NodeJS Devfile nodejs app. Deployed app is not working properly and cannot be debugged. All tried on Linux.

      Inserting a record via deployed app:

      Error: connect ECONNREFUSED 127.0.0.1:5432
          at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
        errno: -111,
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 5432
      

      Debugging: Error while attaching the debugger:

      Started port forwarding at ports - 32855:5858
      E0321 16:33:00.975741  167182 portforward.go:400] an error occurred forwarding 32855 -> 5858: error forwarding port 5858 to pod 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6, uid : port forward into network namespace "/var/run/netns/e725a7c5-7813-4fe2-b4df-e0c0d8ed5fe0": failed to connect to localhost:5858 inside namespace 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6: dial tcp [::1]:5858: connect: connection refused
      E0321 16:33:00.977893  167182 portforward.go:400] an error occurred forwarding 32855 -> 5858: error forwarding port 5858 to pod 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6, uid : port forward into network namespace "/var/run/netns/e725a7c5-7813-4fe2-b4df-e0c0d8ed5fe0": failed to connect to localhost:5858 inside namespace 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6: dial tcp [::1]:5858: connect: connection refused
      E0321 16:33:00.984946  167182 portforward.go:400] an error occurred forwarding 32855 -> 5858: error forwarding port 5858 to pod 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6, uid : port forward into network namespace "/var/run/netns/e725a7c5-7813-4fe2-b4df-e0c0d8ed5fe0": failed to connect to localhost:5858 inside namespace 7bfce5c4e9111e2fdcc145336960f0190ce2635296b464a3d2cb0ae4446b14a6: dial tcp [::1]:5858: connect: connection refused
      E0321 16:33:31.188456  167182 portforward.go:340] error creating error stream for port 32855 -> 5858: Timeout occurred
      E0321 16:33:31.189579  167182 portforward.go:362] error creating forwarding stream for port 32855 -> 5858: Timeout occurred
      E0321 16:34:01.195812  167182 portforward.go:362] error creating forwarding stream for port 32855 -> 5858: Timeout occurred
      
      

      Attachments

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            odockal@redhat.com Ondrej Dockal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: