Webinterface

Questions and answers on how to get the most out of FFAStrans
whtghst1
Posts: 11
Joined: Mon Oct 23, 2023 9:27 pm

Re: Webinterface

Post by whtghst1 »

Are you going to add FTP location capability in the next version?
whtghst1
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

No plans for it. Originally i planned to split off monitoring (also UNC and Local) completely from ffastrans for the sake of modularity (e.g. split monitoring/processing/core workflow into separate standalone modules) but that requires the whole team to pull in the same direction which is currently not the case for various reasons.

Honestly i was hoping that we can overcome most "special source protocol" problem by using some driver that emulates a virtual file system but i never had the need for other sources than UNC yet so i don't know if something like it exists.
emcodem, wrapping since 2009 you got the rhyme?
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Sorry for the long waiting time.
Big Update 1.4 was released, enjoy!
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Silicon
Posts: 98
Joined: Fri Sep 04, 2020 6:34 am

Re: Webinterface

Post by Silicon »

Christmas present 4 weeks earlier! Cool :)
BR,
Silicon
--------
FFAStrans 1.3.0.2; WebInterface 1.3.0.0
Manager: VM: 2x Xeon E5-2630v3@2.4GHz, 8GB RAM
Workers: 3x HP DL360 G9 (2x Xeon E5-2643v3@3.4GHz,16GB RAM, nVidia M2000)+ 2x Lenovo SR665 (2x AMD EPYC730216C@3.0GHz,128GB RAM, nVidia P2200)
User avatar
Silicon
Posts: 98
Joined: Fri Sep 04, 2020 6:34 am

Re: Webinterface

Post by Silicon »

Hi @emcodem
First of all: Happy New Year 2024 to you and your fellows from FFAStrans dev-team!

I'm sory to report an isuuse with latest Webinerface 1.4.0.4 ... it refuses to start. :(
It writes following errors into the log files:
1) database.log file
2024-01-03 18:53:04: info: [database]: ------------------------- log database startup -------------------------
2024-01-03 18:53:06: info: [database]: Database port: [33m8010[39m
2024-01-03 18:53:07: info: [database]: database process exited, code: [33m3221225785[39m

So it means, that database engine mongod.exe is not able to run correctly ... but why?

2) webint.log file:
2024-01-03 18:53:03: info: [webint]: ------------------------- log webint startup -------------------------
2024-01-03 18:53:03: warn: [webint]: No config in database, defaulting to default config
2024-01-03 18:53:03: info: [webint]: Default config: {
...
}
2024-01-03 18:53:03: info: [webint]: Checking alternate jobfetcher C:\FFAStrans\Webinterface\alternate-server\jobfetcher.js
2024-01-03 18:53:03: info: [webint]: No alternate server detected
2024-01-03 18:53:03: info: [webint]: NOT running on alternate-server, getting FFAStrans API about: http://localhost:65445/api/json/v2/about
2024-01-03 18:53:04: info: [webint]: [32mHello and welcome, thank you for using FFAStrans
2024-01-03 18:53:04: info: [webint]: [36mRunning on http://localhost:3002[0m
2024-01-03 18:53:04: info: [webint]: Database path: C:\FFAStrans\Webinterface\database\job_db
2024-01-03 18:53:04: info: [webint]: Database port: 8010
2024-01-03 18:53:04: info: [webint]: Writing Database binary to: C:\Windows\TEMP
2024-01-03 18:53:07: info: [webint]: Starting Database Process...
2024-01-03 18:53:07: info: [webint]: Database process pid [33m17132[39m
2024-01-03 18:53:07: error: [webint]: Could not get ffastrans about
2024-01-03 18:53:08: info: [webint]: FFAStrans config: {
...
}
2024-01-03 18:53:08: info: [webint]: calling http://localhost:65445/api/json/v2/about
2024-01-03 18:53:08: info: [webint]: [32mNew API starting up...
2024-01-03 18:53:08: info: [webint]: Web API Server started, check out http://127.0.0.1:3003/docs
2024-01-03 18:53:09: info: [webint]: Document { location: [36m[Getter/Setter][39m }
2024-01-03 18:53:09: info: [webint]: [36mRunning on http://localhost:3003[0m
2024-01-03 18:53:37: error: [webint]: Trace: Global unexpected error: TypeError: Cannot read properties of undefined (reading 'db')
at connectDb (C:\FFAStrans\Webinterface\server.js:150:28)
at process.<anonymous> (C:\FFAStrans\Webinterface\server.js:56:13)
at process.emit (node:events:513:28)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
2024-01-03 18:53:37: error: [webint]: TypeError: Cannot read properties of undefined (reading 'db')
at connectDb (C:\FFAStrans\Webinterface\server.js:150:28)

Thanks for your help.
BR,
Silicon
--------
FFAStrans 1.3.0.2; WebInterface 1.3.0.0
Manager: VM: 2x Xeon E5-2630v3@2.4GHz, 8GB RAM
Workers: 3x HP DL360 G9 (2x Xeon E5-2643v3@3.4GHz,16GB RAM, nVidia M2000)+ 2x Lenovo SR665 (2x AMD EPYC730216C@3.0GHz,128GB RAM, nVidia P2200)
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Hey @Silicon

sorry for the delay!
OK so the mongod.exe database is something i added in this recent version.

How it works is that the exe along with some vcredist dll's are being written to %TEMP% (on startup of server.exe). First thing is that your antivirus could find this a little strange and interfere in some way (if thats the case just exclude server.exe from A/V on access scan).

For you the %TEMP% Variable resolves to: C:\Windows\TEMP (i guess because it runs as Service), however there is no reason this should not work.

Can you confirm that you see these 4 files there:
mongod.exe
msvcp140.dll
vcruntime140.dll
vcruntime140_1.dll

If the files are there, can you try to start mongod.exe manually on commandline like:
c:\windows\temp\mongod.exe --dbpath "C:\FFAStrans\Webinterface\database\job_db" --port 8010

It should bring up the same result, e.g. nothing is printed to the console and the %ERRORLEVEL% is 3221225785

If this is the case, i would need you to check if any dependency is missing using e.g. dependencies_gui.exe, download here and drag mongod.exe into the dependencies_gui (missing dlls are displayed red)
https://github.com/lucasg/Dependencies/ ... ag/v1.11.1
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Silicon
Posts: 98
Joined: Fri Sep 04, 2020 6:34 am

Re: Webinterface

Post by Silicon »

Hi @emcodem
I can confirm that all 4 files listed in your replay are located in C:\Windows\TEMP

I have tried to start DB manually but I have got error message listed in a png file attached.

The dependecies tool has detected one missing DLL: C:\Windows\system32\bcrypt.dll

BR,
Attachments
Error.PNG
Error.PNG (8.43 KiB) Viewed 1954 times
BR,
Silicon
--------
FFAStrans 1.3.0.2; WebInterface 1.3.0.0
Manager: VM: 2x Xeon E5-2630v3@2.4GHz, 8GB RAM
Workers: 3x HP DL360 G9 (2x Xeon E5-2643v3@3.4GHz,16GB RAM, nVidia M2000)+ 2x Lenovo SR665 (2x AMD EPYC730216C@3.0GHz,128GB RAM, nVidia P2200)
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

You are the best, thanks for debugging @Silicon
Which OS is this, i guess below Server 2016, right?
emcodem, wrapping since 2009 you got the rhyme?
User avatar
Silicon
Posts: 98
Joined: Fri Sep 04, 2020 6:34 am

Re: Webinterface

Post by Silicon »

Yes indeed, it's a WS 2012 R2 :roll:
BR,
Silicon
--------
FFAStrans 1.3.0.2; WebInterface 1.3.0.0
Manager: VM: 2x Xeon E5-2630v3@2.4GHz, 8GB RAM
Workers: 3x HP DL360 G9 (2x Xeon E5-2643v3@3.4GHz,16GB RAM, nVidia M2000)+ 2x Lenovo SR665 (2x AMD EPYC730216C@3.0GHz,128GB RAM, nVidia P2200)
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

OK i was under the impression that my current mongod.exe actually supports down to 2012 but i researched now and found out that it does not (bcrypt.dll is part of windows and it depends on several other windows components).
I'll need to check out if i can support a 2 year old mongodb version, it can take a while unfortunately:(
emcodem, wrapping since 2009 you got the rhyme?
Post Reply