mongodb-js / vscode

Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode
Apache License 2.0
311 stars 52 forks source link

Connection issues: Unable to connect: querySrv ECONNREFUSED #727

Closed terashy88 closed 4 weeks ago

terashy88 commented 2 months ago

Hello, I have an Issue connecting to MongoDB via vscodium plugin.

It's work fine over mongodb-compass 1.43.0-1 but not on mongodb.mongodb-vscode v1.5.0

The Error message is:

Unable to connect: querySrv ECONNREFUSED _mongodb._tcp.terashy.cvqxoj9.mongodb.net

I did add my IP on mondodb Site under an see it onder the section Network Access and try with allow all connection on my firewall but can't ping point it down why it's not working. I used to work on my old PC from two weeks. What also working is to connect to the localhost on the VS Code plugin.

My System:

``` ❯ inxi -Fanzy System: Kernel: 6.6.26-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 clocksource: tsc avail: acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64 root=UUID=3a83acce-69e9-40cb-bee4-cc26abd0b1a7 rw quiet cryptdevice=UUID=0752852e-4b57-4c20-a17d-14b6b63a40db:luks-0752852e-4b57-4c20-a17d-14b6b63a40db root=/dev/mapper/luks-0752852e-4b57-4c20-a17d-14b6b63a40db splash apparmor=1 security=apparmor udev.log_priority=3 i915.enable_dpcd_backlight=1 Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm4 v: 4.18.0 with: xfce4-panel tools: avail: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0 Distro: Manjaro base: Arch Linux Machine: Type: Laptop System: Acer product: Nitro ANV15-51 v: V1.08 serial: Chassis: type: 10 serial: Mobo: RPL model: Sportage_RTH v: V1.08 serial: part-nu: 0000000000000000 uuid: UEFI: INSYDE v: 1.08 date: 10/31/2023 Battery: ID-1: BAT1 charge: 60.1 Wh (100.0%) condition: 60.1/58.8 Wh (102.2%) volts: 17.3 min: 15.4 model: SIMPLO AP18E7M type: Li-ion serial: status: full cycles: 3 CPU: Info: model: 13th Gen Intel Core i7-13620H bits: 64 type: MST AMCP arch: Raptor Lake gen: core 13 level: v3 note: check built: 2022+ process: Intel 7 (10nm) family: 6 model-id: 0xBA (186) stepping: 2 microcode: 0x411C Topology: cpus: 1x cores: 10 mt: 6 tpc: 2 st: 4 threads: 16 smt: enabled cache: L1: 864 KiB desc: d-4x32 KiB, 6x48 KiB; i-6x32 KiB, 4x64 KiB L2: 9.5 MiB desc: 6x1.2 MiB, 1x2 MiB L3: 24 MiB desc: 1x24 MiB Speed (MHz): avg: 1555 high: 3434 min/max: 400/4700:4900:3600 scaling: driver: intel_pstate governor: powersave cores: 1: 545 2: 495 3: 2455 4: 808 5: 3434 6: 2315 7: 825 8: 2732 9: 1605 10: 400 11: 839 12: 2636 13: 1368 14: 400 15: 2128 16: 1901 bogomips: 93424 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Vulnerabilities: Type: gather_data_sampling status: Not affected Type: itlb_multihit status: Not affected Type: l1tf status: Not affected Type: mds status: Not affected Type: meltdown status: Not affected Type: mmio_stale_data status: Not affected Type: reg_file_data_sampling status: Vulnerable: No microcode Type: retbleed status: Not affected Type: spec_rstack_overflow status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S Type: srbds status: Not affected Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel Raptor Lake-P [UHD Graphics] vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports: active: DP-3,DP-5,eDP-1 empty: DP-1, DP-2, DP-4, HDMI-A-1 bus-ID: 0000:00:02.0 chip-ID: 8086:a7a8 class-ID: 0300 Device-2: NVIDIA AD107M [GeForce RTX 4050 Max-Q / Mobile] vendor: Acer Incorporated ALI driver: nvidia v: 550.67 alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current (as of 2024-04) arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ bus-ID: 0000:01:00.0 chip-ID: 10de:28a1 class-ID: 0300 Device-3: Quanta ACER HD User Facing driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-6:5 chip-ID: 0408:403a class-ID: fe01 serial: Display: x11 server: X.Org v: 21.1.12 with: Xwayland v: 23.2.6 compositor: xfwm4 v: 4.18.0 driver: X: loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1 Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x572mm (40.00x22.52") s-diag: 1166mm (45.9") Monitor-1: DP-3 mapped: DP-1-1 pos: primary,top-left model: DX270A1 serial: built: 2021 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 685mm (27") ratio: 16:9 modes: max: 1920x1080 min: 720x400 Monitor-2: DP-5 mapped: DP-1-3 pos: middle-r model: Asus VS278 serial: built: 2015 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes: max: 1920x1080 min: 720x400 Monitor-3: eDP-1 pos: bottom-l model: LG Display 0x0742 built: 2021 res: 1920x1080 hz: 144 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080 API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0 drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast surfaceless: drv: nvidia x11: drv: nvidia inactive: wayland,device-2 API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.67 glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4050 Laptop GPU/PCIe/SSE2 memory: 5.86 GiB API: Vulkan v: 1.3.279 layers: 14 device: 0 type: integrated-gpu name: Intel Graphics (RPL-P) driver: mesa intel v: 24.0.2-manjaro1.1 device-ID: 8086:a7a8 surfaces: xcb,xlib device: 1 type: discrete-gpu name: NVIDIA GeForce RTX 4050 Laptop GPU driver: nvidia v: 550.67 device-ID: 10de:28a1 surfaces: xcb,xlib Audio: Device-1: Intel Raptor Lake-P/U/H cAVS vendor: Acer Incorporated ALI driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:51ca class-ID: 0401 Device-2: NVIDIA vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:22be class-ID: 0403 Device-3: HP USB Audio driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.2:4 chip-ID: 03f0:056b class-ID: 0300 serial: API: ALSA v: k6.6.26-1-MANJARO status: kernel-api with: aoss type: oss-emulator tools: alsactl,alsamixer,amixer Server-1: JACK v: 1.9.22 status: off tools: N/A Server-2: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin tools: pactl,pw-cat,pw-cli,wpctl Network: Device-1: Intel Raptor Lake PCH CNVi WiFi driver: iwlwifi v: kernel modules: wl bus-ID: 0000:00:14.3 chip-ID: 8086:51f1 class-ID: 0280 IF: wlp0s20f3 state: up mac: Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI RTL8111/8168/8411 driver: r8168 v: 8.052.01-NAPI modules: r8169 port: 3000 bus-ID: 0000:3e:00.0 chip-ID: 10ec:8168 class-ID: 0200 IF: enp62s0 state: down mac: Device-3: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB rev: 3.2 speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-1.4:4 chip-ID: 0bda:8153 class-ID: 0000 serial: IF: enp0s13f0u1u4 state: down mac: Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant Bluetooth: Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:10 chip-ID: 8087:0026 class-ID: e001 Report: btmgmt ID: hci0 rfk-id: 3 state: up address: bt-v: 5.2 lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c RAID: Hardware-1: Intel Volume Management Device NVMe RAID Controller Intel driver: vmd v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:a77f rev: class-ID: 0104 Drives: Local Storage: total: 2.75 TiB used: 659.19 GiB (23.4%) SMART Message: Required tool smartctl not installed. Check --recommends ID-1: /dev/nvme0n1 maj-min: 259:4 vendor: Western Digital model: WD PC SN740 SDDQNQD-1T00-1014 size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: fw-rev: 73101100 temp: 39.9 C scheme: GPT ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 2TB size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: fw-rev: 2B2QEXM7 temp: 40.9 C scheme: GPT Partition: ID-1: / raw-size: 865.54 GiB size: 850.88 GiB (98.31%) used: 659.19 GiB (77.5%) fs: ext4 block-size: 4096 B dev: /dev/dm-0 maj-min: 254:0 mapped: luks-0752852e-4b57-4c20-a17d-14b6b63a40db ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 448 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p6 maj-min: 259:10 Swap: Kernel: swappiness: 11 (default 60) cache-pressure: 66 (default 100) zswap: yes compressor: zstd max-pool: 20% ID-1: swap-1 type: file size: 21.7 GiB used: 4.43 GiB (20.4%) priority: -2 file: /swapfile Sensors: System Temperatures: cpu: 48.0 C mobo: N/A Fan Speeds (rpm): N/A Info: Memory: total: 32 GiB note: est. available: 31.06 GiB used: 22.4 GiB (72.1%) Processes: 657 Power: uptime: 2h 21m states: freeze,mem,disk suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 12.37 GiB services: upowerd,xfce4-power-manager Init: systemd v: 255 default: graphical tool: systemctl Packages: pm: pacman pkgs: 2425 libs: 596 tools: pamac,yay pm: flatpak pkgs: 0 Compilers: clang: 16.0.6 gcc: 13.2.1 alt: 12 Shell: Zsh v: 5.9 running-in: xfce4-terminal inxi: 3.3.34 ```
Anemy commented 4 weeks ago

It may be an issue with how our extension works in vscodium. Maybe something with getting the system certificate authority? Not quite sure. Going to close this as we're building for VSCode. If this issue happens with regular VSCode please do re-open it.