-
Notifications
You must be signed in to change notification settings - Fork 82
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
dcm2bids hangs when connected via ethernet without internet #149
Comments
More infoI forked the repo and investigated a bit more. The internet() function does not work as intended. It always returns Why does it work for usual scenarios?When not connected to the internet, since Problems with the current methodThe problem arises when we are connected via ethernet, without internet. The connection hangs waiting indefinitely for a response. No error is raised because it is waiting for a response that will never come. Suggestion
|
To replicate the problem
|
Hi @po09i ! Thanks for the bug report and the accompanying PR. I've investigated the issue on my machine and a virtual machine not connected to ethernet and here's what I got using the latest version with the INFO:dcm2bids.sidecar:Sidecars pairing:
INFO:dcm2bids.sidecar:_T1w <- 007_07-anat_T1w_anat_T1w_19000101111111
INFO:dcm2bids.dcm2bids:moving acquisitions into BIDS folder
DEBUG:dcm2bids.version:Checking latest version of dcm2bids was not possible
DEBUG:dcm2bids.version:internet: False, curl: True
DEBUG:dcm2bids.version:Checking latest version of dcm2niix was not possible
DEBUG:dcm2bids.version:internet: False, curl: True I noticed it was slightly slower than when connected to internet due to the timeout while checking if it can reach I think the issue is not dcm2bids per se but your computer thinking it is connected to internet while it's only connected to a local network through an ethernet port. I think it is important to deal with this as the behaviour seems unpredictable for now on machines which are connected to ethernet but cant reach outside.. That being said, to investigate this further, can you reproduce your issue using the Thanks |
Thanks for answering @SamGuay! Here is my output when I run dcm2bids on the latest version of master without internet and not connected via ethernet using
As you can see, the error message is within |
I tried to debug the
and got an output
|
Good news, I found out the problem and why you can't replicate it. I have a VPN installed and even when it is disconnected, it seems to mess up whatever is going on when connecting with a socket. I uninstalled the vpn and I was able to reproduce the expected behaviour. The VPN I have to use is Cisco AnyConnect Secure Mobility Client and would find it really inconvenient to uninstall the VPN to use dcm2bids. I am not sure if this is a problem for all VPNs... Proposed solutions:
|
Bug Description
When scanning at the UNF, we connect to the scanner via ethernet so that a drive can be mounted from the scanner. When running
dcm2bids
, it hangs and we have to manually cancel the execution. This is the last line shown on the command line.Note:
We lose our internet connection when connecting via ethernet to mount the drive.
Potential Reasons behind Bug:
Since we don't have internet, but it looks like we are (we are connected via ethernet), I think dcm2bids is hanging trying to retrieve its version in this line.
Command line output
The text was updated successfully, but these errors were encountered: