Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tracy Connection in the Devcontainer #466

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

hoerstl
Copy link
Contributor

@hoerstl hoerstl commented Dec 3, 2024

Issue

Resolves Issue #465

When we try to connect to Tracy in our application we get a connection error:

pyodbc.OperationalError: ('08S01', '[08S01] [FreeTDS][SQL Server]Unable to connect: Adaptive Server is unavailable or does not exist (20009) (SQLDriverConnect)')

image

Solution

Some simple code refactoring for clarity (not integral to the solution) as well as connecting your laptop to ethernet before attempting to connect to Tracy from within a devcontainer. In testing, our Tracy connection fails whenever we're connected to either BCSecure or BereaBYOD but when we plug our laptops into ethernet, the connection works with no issues:

image

Tests passed! The file executes as intended without error.

To Test

Swap to our branch devcontainer_tracy_connection, open VS Code in the LSF devcontainer, connect to Ethernet, put the Tracy password in the secret_config.yaml file and then run python db_test.py and ensure that it exits with no errors.

@hoerstl
Copy link
Contributor Author

hoerstl commented Dec 3, 2024

@hoerstl
Copy link
Contributor Author

hoerstl commented Dec 4, 2024

I brought the "plug into ethernet" solution to Brian and while it was true for me that we couldn't access Tracy via a wireless network, Brian was able to access it just fine even within the devcontainer.

Brian is now having an email conversation with IT to resolve what must be a server permissions issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant