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

[Erddap 2.24] Verbose option not working anymore for GenerateDatasetXML.sh #235

Open
LeoLeLonquer opened this issue Dec 9, 2024 · 1 comment

Comments

@LeoLeLonquer
Copy link

LeoLeLonquer commented Dec 9, 2024

I recently updated Erddap from version 2.18 to 2.24 and verbose option does not work anymore when running GenerateDatasetXML.sh.

-verbose is not used as a java parameter and then shifted as it used to be, it is now used as an input to GenerateDatasetXML.sh

$ bash GenerateDatasetsXml.sh -verbose
GenerateDatasetsXml.sh: line 4: $'\r': command not found

////**** EDStatic Low Level Startup
localTime=2024-12-09T10:01:56+00:00
erddapVersion=2.24
Java 21.0.4 (64 bit, Eclipse Adoptium) on Linux (5.10.0-10-amd64).

...

Which EDDType? -verbose
ERROR: eddType=-verbose is not an option.
*** closed logFile=/erddapData/logs/GenerateDatasetsXml.log at 2024-12-09T10:01:58+00:00

Moreover there is a non blocking error : GenerateDatasetsXml.sh: line 4: $'\r': command not found

@ChrisJohnNOAA
Copy link
Contributor

The build generation for 2.24 accidentally included Windows line endings "\r\n" instead of Mac/Linux line endings "\n". That is very likely the cause of the \r error you encountered. It may have caused the other error. You can either strip the '\r' symbols from the script or update to 2.25_1 which should have proper line endings.

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

No branches or pull requests

2 participants