Project

General

Profile

Logging the wt_config.xml

Added by Sebastian Fett about 4 years ago

I currently run my software on 2 different systems, both have an identical wt_config.xml yet on one system it fires "fileTooLarge()" while on the other it doesnt while using identical files. Is there a way to show which config file the application loaded? Do I break the library by copy and pasting it form one system to another? (Especially considering the config)

Regards

Sebastian


Replies (7)

RE: Logging the wt_config.xml - Added by Roel Standaert about 4 years ago

When Wt starts up, you should get a log line similar to this:

[2020-Feb-10 10:11:35.799] 30247 - [info] "config: reading Wt config file: approot/wt_config.xml

That should indicate which wt_config.xml was loaded. With wthttp can always specify it exactly with the -c or --config option.

Copying the library shouldn't necessary break it as long as the OS isn't too different.

RE: Logging the wt_config.xml - Added by Sebastian Fett about 4 years ago

Thanks Ill recheck, everything is working exactly the same except for one firing the "fileTooLarge()" while the other one uploads the file.

I am working with geometries on my server so uploads in the Gigabytes are quite common, so I needed to change that in the config and copy pasting the config apparently doesnt work for me.

RE: Logging the wt_config.xml - Added by Sebastian Fett about 4 years ago

Okay I rechecked, on system says

[2020-Feb-10 10:26:17.677] 26905 - [info] "config: reading Wt config file: /p/tv/local/redhat/wt-4.1.0-libs/etc/wt/wt_config.xml (location = './test.wt')"                                                        
[2020-Feb-10 10:26:17.678] 26905 - [info] "WServer/wthttp: initializing built-in wthttpd"                                                                                                                         
[2020-Feb-10 10:26:17.678] 26905 - [info] "wthttp: started server: http://0.0.0.0:8080" 

the other one exactly the same but without the config line, so only the last 2 lines and thats the one failing the upload. So I found the problem but I have no idea how to progress except for installing the library again.

RE: Logging the wt_config.xml - Added by Roel Standaert about 4 years ago

Interesting that the reading Wt config file line gets eaten. Are you logging to std::cerr (the default), or do you have it configured to log to a file? What if you tried to explicitly specify the location of your wt_config.xml?

RE: Logging the wt_config.xml - Added by Sebastian Fett about 4 years ago

Yes I am using the standard error, no piping to a file and there is nothing on the console. What would be the environment variable I need to set to explicitly to specify the config location?

RE: Logging the wt_config.xml - Added by Roel Standaert about 4 years ago

Are you using wthttp or wtfcgi?

With wthttp it should just be the --config command line option.

In general (for both wthttp and wtfcgi) it should also look at the WT_CONFIG_XML environment variable.

RE: Logging the wt_config.xml - Added by Sebastian Fett about 4 years ago

http, ---config worked perfectly. Thanks a lot. Ran into another issue but Ill make a separate post about it.

    (1-7/7)