04-05-2024 03:35 AM
Hello,
Context: We have an application (.exe) with a webservice that is working on the development computer and other no-dev computers. It doesn't work on the computer of a customer in China.
We have activated the error log for the webserver by adding the line 'ErrorLog "error.log", level=9' to the file 'niembeddedws.conf'.
We can see from the error log that the webserver doesn't have any error and start and stop correctly.
We have a startup VI for my webservice so we can see that the webservice doesn't start.
We have made a simple webservice with hello world and this is working.
Is there a way to activate error log for the web service (.lvws)?
Webserver error log :
appweb: 2: Configuration for Embedthis Appweb
appweb: 2: ---------------------------------------------
appweb: 2: Version: 1.1.0-0
appweb: 2: BuildType: Release
appweb: 2: CPU: x64
appweb: 2: OS: windows
appweb: 2: Host: DESKTOP-N401J0H
appweb: 2: Directory: C:\Users\user\Desktop\Test WS
appweb: 2: Configure: bit configure --platform windows-x64
appweb: 2: ---------------------------------------------
appweb: 8: Line 9, Parse AccessLog "access.log", level=9
appweb: Error: Unknown option null
appweb: Error: Unknown option level
appweb: 8: Line 10, Parse NI.AddLVRouteVars
appweb: 8: Line 11, Parse TypesConfig $LVSERVER_ROOT/mime.types
appweb: 8: Line 12, Parse LimitWorkers 10
appweb: 8: Line 13, Parse LimitRequestBody 50000000
appweb: 8: Line 14, Parse LoadModulePath $LVSERVER_ROOT/modules;$LVSERVER_ROOT/..
appweb: 8: Line 15, Parse LoadModule niSessionManagerModule mod_nisessmgr
appweb: 7: Probe for native module mod_nisessmgr
appweb: 7: Probe for native module mod_nisessmgr.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_nisessmgr
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_nisessmgr.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_nisessmgr
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_nisessmgr.dll
appweb: 6: Found native module mod_nisessmgr at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_nisessmgr.dll
appweb: 2: Loading native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_nisessmgr.dll
appweb: 4: NI Session Manager -- Session manager module loaded
appweb: 8: Line 16, Parse LoadModule niAuthModule mod_niauth
appweb: 7: Probe for native module mod_niauth
appweb: 7: Probe for native module mod_niauth.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niauth
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niauth.dll
appweb: 6: Found native module mod_niauth at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niauth.dll
appweb: 2: Loading native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niauth.dll
appweb: 4: NI Auth Module -- NIAuth module loaded
appweb: 8: Line 17, Parse LoadModule EspModule mod_niesp
appweb: 7: Probe for native module mod_niesp
appweb: 7: Probe for native module mod_niesp.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niesp
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niesp.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niesp
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niesp.dll
appweb: 6: Found native module mod_niesp at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niesp.dll
appweb: 2: Loading native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niesp.dll
appweb: 3: In maEspModuleInit()
appweb: 8: Line 18, Parse LoadModule WSRuntime mod_niws
appweb: 7: Probe for native module mod_niws
appweb: 7: Probe for native module mod_niws.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niws
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\webserver\modules\mod_niws.dll
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niws
appweb: 7: Probe for native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niws.dll
appweb: 6: Found native module mod_niws at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niws.dll
appweb: 2: Loading native module C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\2023\mod_niws.dll
appweb: 3: In maWSRuntimeInit()
appweb: 8: Line 19, Parse Listen 8002
appweb: 8: Line 24, Parse NI.ServerName "LV Embedded Web Server"
appweb: 8: Line 25, Parse DocumentRoot $LVSERVER_ROOT/ws_www
appweb: 8: Line 26, Parse InactivityTimeout 60
appweb: 8: Line 27, Parse SetConnector netConnector
appweb: 8: Line 28, Parse AddHandler niAuthHandler
appweb: 8: Line 29, Parse AddHandler WSRuntime
appweb: 8: Line 30, Parse AddHandler fileHandler ""
appweb: 8: Line 31, Parse AddOutputFilter chunkFilter
appweb: 8: Line 32, Parse LimitRequestForm 50000000
appweb: 8: Line 33, Parse NI.WSRuntime.Configuration embedded "$LVSERVER_ROOT/services"
appweb: 8: Line 34, Parse NI.WSRuntime.LoadWebService test.lvws
appweb: 6: listenSocket: 8002, flags 300
appweb: 2: Started HTTP service on "*:8002"
appweb: 6: Close socket 7808, graceful 0
appweb: 3: Normal exit.
appweb: 4: Worker exiting. There are 0 workers remaining in the pool.
appweb: 3: In moduleFinalize()
appweb: 3: Exiting