You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is fine, it is allowed in the URL and I (think) I am checking the URL string for the question mark. THe idea is that if the URL makes the gmt_M_is_query return true then we dont try to make that lock file, but it is not triggering the test.
No, query is true. I told you the error message is not coming from that function but from gmt_download_file() where it tries to create a file with a question mark.
Activity
PaulWessel commentedon Jul 29, 2020
Fair enough. I need to disable locking on URLs queries.
Exempt URL queries from having lock files
Exempt URL queries from having lock files (#3768)
seisman commentedon Jul 29, 2020
Closed by #3768.
seisman commentedon Jul 30, 2020
Re-open the issue because I still see the same error in the recent cron CI job.
Checked wrong string for URL
Checked wrong string for URL (#3780)
joa-quim commentedon Jul 30, 2020
Still fails for me
But there are no file locks on Windows, at least like the unix ones, right?
PaulWessel commentedon Jul 30, 2020
Could you find out why my check for the url query fails? Perhaps that macro has a problem.
joa-quim commentedon Jul 31, 2020
The problem is not the macro. The error message is not coming from
gmtremote_get_url()but fromgmt_download_file()joa-quim commentedon Jul 31, 2020
Maybe the problem is this. Windows doesn't accept
?in file names (that file was manually created by me).PaulWessel commentedon Jul 31, 2020
That is fine, it is allowed in the URL and I (think) I am checking the URL string for the question mark. THe idea is that if the URL makes the gmt_M_is_query return true then we dont try to make that lock file, but it is not triggering the test.
joa-quim commentedon Jul 31, 2020
You are trying to create a file that has question marks in its name
and that is not allowed.
PaulWessel commentedon Jul 31, 2020
Well, I am trying not to create that file when it is an URL query:
So clearly query is false for this case and I dont know why.
joa-quim commentedon Jul 31, 2020
No, query is true. I told you the error message is not coming from that function but from
gmt_download_file()where it tries to create a file with a question mark.PaulWessel commentedon Jul 31, 2020
Shits, I must have forgotten to duplicate the test there... OK will fix now. Jeez.
Forgot the other place where locking occurred
joa-quim commentedon Jul 31, 2020
OK, it works now.
PaulWessel commentedon Jul 31, 2020
If I don't get it right on the n'th try, I usually get it right on the m'th try (m > n, sometimes m >> n).
Forgot the other place where locking occurred (#3785)
Exempt URL queries from having lock files (#3768)
Checked wrong string for URL (#3780)
Forgot the other place where locking occurred (#3785)
[Backport 6.1] File lock on CURL downloads (#3808)