rednoah wrote: ↑05 Jul 2019, 06:03
I see. It crashes due to QNAP authentication somehow not working. Once it's crashed, it doesn't serve requests anymore, so you'll need to restart it to run tests each time it crashes.
The relevant code starts here:
https://github.com/filebot/filebot-node ... pp.js#L564
1.
Are you logged into QNAP? How are you using FileBot Node?
yes
2.
Opening the QNAP WebUI and then clicking on FileBot Node? Or perhaps opening the iframe directly?
yes
3.
What do you get if you run this command?
/$ /home/httpd/cgi-bin/authLogin.cgi
Content-type: text/xml
<?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[0]]></SMBFW><model><modelName><![CDATA[TS-X82]]></modelName><internalModelName><![CDATA[TS-X82]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SKYLAKE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-1282]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported></model>
<firmware><version><![CDATA[4.4.1]]></version><number><![CDATA[0978]]></number><build><![CDATA[20190626]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2019/06/26]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[YAHA]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HTTPHost><![CDATA[--]]></HTTPHost><webAccessPort><![CDATA[8080]]></webAccessPort><QWebPort><![CDATA[80]]></QWebPort><webFSEnabled><![CDATA[1]]></webFSEnabled><QMultimediaEnabled><![CDATA[0]]></QMultimediaEnabled><MSV2Supported><![CDATA[0]]></MSV2Supported><MSV2WebEnabled><![CDATA[1]]></MSV2WebEnabled><MSV2URL><![CDATA[/MSV2/]]></MSV2URL><QDownloadEnabled><![CDATA[0]]></QDownloadEnabled><DSV2Supported><![CDATA[0]]></DSV2Supported><DSV3Supported><![CDATA[1]]></DSV3Supported><DSV2URL><![CDATA[/downloadstation/?ssid=]]></DSV2URL><QWebEnabled><![CDATA[1]]></QWebEnabled><QWebSSLEnabled><![CDATA[1]]></QWebSSLEnabled><QWebSSLPort><![CDATA[8081]]></QWebSSLPort><NVREnabled><![CDATA[0]]></NVREnabled><NVRURL><![CDATA[/surveillance/]]></NVRURL><NVRVER><![CDATA[1]]></NVRVER><WFM2><![CDATA[1]]></WFM2><wfmPortEnabled><![CDATA[0]]></wfmPortEnabled><wfmPort><![CDATA[8080]]></wfmPort><wfmSSLEnabled><![CDATA[0]]></wfmSSLEnabled><wfmSSLPort><![CDATA[443]]></wfmSSLPort><wfmURL><![CDATA[/filestation/]]></wfmURL><QMusicsEnabled><![CDATA[0]]></QMusicsEnabled><QMusicsURL><![CDATA[/musicstation/]]></QMusicsURL><QVideosEnabled><![CDATA[0]]></QVideosEnabled><QVideosURL><![CDATA[/videostation/]]></QVideosURL><QPhotosEnabled><![CDATA[0]]></QPhotosEnabled><QPhotosURL><![CDATA[/photostation/]]></QPhotosURL><stunnelEnabled><![CDATA[1]]></stunnelEnabled><stunnelPort><![CDATA[443]]></stunnelPort><forceSSL><![CDATA[0]]></forceSSL><HDAROOT_ALMOST_FULL><![CDATA[0]]></HDAROOT_ALMOST_FULL><passwdConstraints><passwdConstraint01><![CDATA[0]]></passwdConstraint01><passwdConstraint02><![CDATA[0]]></passwdConstraint02><passwdConstraint03><![CDATA[0]]></passwdConstraint03><passwdConstraint04><![CDATA[0]]></passwdConstraint04><pw_constraint01_opt><![CDATA[0]]></pw_constraint01_opt><pw_constraint01_letter><![CDATA[0]]></pw_constraint01_letter><pw_min_limit_en><![CDATA[0]]></pw_min_limit_en><pw_min_limit><![CDATA[5]]></pw_min_limit></passwdConstraints>
<ts><![CDATA[8112321]]></ts><fwNotice><![CDATA[0]]></fwNotice><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#FFFFFF]]></standard_color><standard_size><![CDATA[12 px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[1]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[ba73262c3eca7ecacc86f83346e042b9]]></cuid></QDocRoot>
You can simulate authentication by copying the Cookie value from the auth HTTP request via the Network Inspector in your Browser:
Code: Select all
export QUERY_STRING=<AUTH_COOKIE>
/home/httpd/cgi-bin/authLogin.cgi