Strange and very problematic behavior connecting to MongoDB Atlas

Getting pymongo.errors.ServerSelectionTimeoutError:Temporary failure in name resolution

talked to MongoDB.
no connection issues with anything else but our replit scripts
went through a list of possible reasons with MongoDB support
came to the conclusion it was a replit issue

Explain what you were trying to do:
running Python scripts making API calls and saving responses to MongoDB Cloud.

What areas or features are involved?
Seems the issue was something with environmental variables
Nix definitely involved somehow…

We created a new repl, literally copied and pasted the script(s) into it and ran it.
Running fine now on the new repl.

Why did this happen?

Here are replit errors we now get when we try to run on the original repl:

Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
instantiated 'llvm-src-14.0.6' -> '/nix/store/hzbkf2172vzda7nzzvh32ix2bkyvl9qy-llvm-src-14.0.6.drv'
instantiated 'llvm-14.0.6' -> '/nix/store/w7q392v0hqv8pz0bcz6pvzbdlyynw2bs-llvm-14.0.6.drv'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/remove-references-to/default.nix'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/remove-references-to/remove-references-to.sh' -> '/nix/store/bm9by9a8wn0ik9lsix9bvfqk7xrc9zdv-remove-references-to.sh'
instantiated 'remove-references-to' -> '/nix/store/848845bkjc8nwgpj11dl3jzj7dj78a6r-remove-references-to.drv'
instantiated 'rustc-1.64.0-src.tar.gz' -> '/nix/store/ws0v0x6f7yqigkfxp8vgzhmk2h5ybf10-rustc-1.64.0-src.tar.gz.drv'
instantiated 'rustc-1.64.0' -> '/nix/store/lppv3zkqbj2y1mf673hmkmj5632rj2dw-rustc-1.64.0.drv'
instantiated 'cargo-1.64.0' -> '/nix/store/v36sa8s85x8ch9lscj02w6r6grchqs15-cargo-1.64.0.drv'
instantiated 'stderred-0.1.0-vendor.tar.gz' -> '/nix/store/y5abrybwr705v5myr8lmmpvxq1qmxmgz-stderred-0.1.0-vendor.tar.gz.drv'
instantiated 'cargo-build-hook.sh' -> '/nix/store/apapd2wzi70yidvknzijy4na6wj33slj-cargo-build-hook.sh.drv'
instantiated 'cargo-check-hook.sh' -> '/nix/store/rdly9ahrydc1q3j3cwl74lxzq96f4w5s-cargo-check-hook.sh.drv'
instantiated 'cargo-install-hook.sh' -> '/nix/store/130wr2z53wqv45xfmd9djmws8z98asl3-cargo-install-hook.sh.drv'
instantiated 'cargo-setup-hook.sh' -> '/nix/store/50l87zlfrg0x6k255bgaip21mjiiizai-cargo-setup-hook.sh.drv'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/tools/misc/stderred/default.nix'
instantiated 'source' -> '/nix/store/s7pdlwr5hzfrcsix3gkhn8hrqdm4jqbw-source.drv'
instantiated 'stderred-unstable-2021-04-28' -> '/nix/store/5iakizzsfqf0dva6nqknmi4xmf9941p8-stderred-unstable-2021-04-28.drv'
instantiated 'stderred-0.1.0' -> '/nix/store/6n6r5c2la6msw4s5hh18q5q1fmj59c12-stderred-0.1.0.drv'
error: 'telnet' has been renamed to/replaced by 'inetutils'
(use '--show-trace' to show detailed location information)

Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
instantiated 'llvm-src-14.0.6' -> '/nix/store/hzbkf2172vzda7nzzvh32ix2bkyvl9qy-llvm-src-14.0.6.drv'
instantiated 'llvm-14.0.6' -> '/nix/store/w7q392v0hqv8pz0bcz6pvzbdlyynw2bs-llvm-14.0.6.drv'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/remove-references-to/default.nix'
copied source '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/build-support/remove-references-to/remove-references-to.sh' -> '/nix/store/bm9by9a8wn0ik9lsix9bvfqk7xrc9zdv-remove-references-to.sh'
instantiated 'remove-references-to' -> '/nix/store/848845bkjc8nwgpj11dl3jzj7dj78a6r-remove-references-to.drv'
instantiated 'rustc-1.64.0-src.tar.gz' -> '/nix/store/ws0v0x6f7yqigkfxp8vgzhmk2h5ybf10-rustc-1.64.0-src.tar.gz.drv'
instantiated 'rustc-1.64.0' -> '/nix/store/lppv3zkqbj2y1mf673hmkmj5632rj2dw-rustc-1.64.0.drv'
instantiated 'cargo-1.64.0' -> '/nix/store/v36sa8s85x8ch9lscj02w6r6grchqs15-cargo-1.64.0.drv'
instantiated 'stderred-0.1.0-vendor.tar.gz' -> '/nix/store/y5abrybwr705v5myr8lmmpvxq1qmxmgz-stderred-0.1.0-vendor.tar.gz.drv'
instantiated 'cargo-build-hook.sh' -> '/nix/store/apapd2wzi70yidvknzijy4na6wj33slj-cargo-build-hook.sh.drv'
instantiated 'cargo-check-hook.sh' -> '/nix/store/rdly9ahrydc1q3j3cwl74lxzq96f4w5s-cargo-check-hook.sh.drv'
instantiated 'cargo-install-hook.sh' -> '/nix/store/130wr2z53wqv45xfmd9djmws8z98asl3-cargo-install-hook.sh.drv'
instantiated 'cargo-setup-hook.sh' -> '/nix/store/50l87zlfrg0x6k255bgaip21mjiiizai-cargo-setup-hook.sh.drv'
evaluating file '/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/tools/misc/stderred/default.nix'
instantiated 'source' -> '/nix/store/s7pdlwr5hzfrcsix3gkhn8hrqdm4jqbw-source.drv'
instantiated 'stderred-unstable-2021-04-28' -> '/nix/store/5iakizzsfqf0dva6nqknmi4xmf9941p8-stderred-unstable-2021-04-28.drv'
instantiated 'stderred-0.1.0' -> '/nix/store/6n6r5c2la6msw4s5hh18q5q1fmj59c12-stderred-0.1.0.drv'
error: 'telnet' has been renamed to/replaced by 'inetutils'
(use '--show-trace' to show detailed location information)

Error: prybar-python310 not found in $PATH

Trying to stop it from running and cannot even do that…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.