Page 32 of 40

Re: Webinterface

Posted: Wed Oct 25, 2023 10:30 pm
by whtghst1
Are you going to add FTP location capability in the next version?

Re: Webinterface

Posted: Thu Oct 26, 2023 4:05 pm
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.

Re: Webinterface

Posted: Mon Dec 04, 2023 5:20 pm
by emcodem
Sorry for the long waiting time.
Big Update 1.4 was released, enjoy!

Re: Webinterface

Posted: Tue Dec 05, 2023 9:11 pm
by Silicon
Christmas present 4 weeks earlier! Cool :)

Re: Webinterface

Posted: Wed Jan 03, 2024 6:18 pm
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.

Re: Webinterface

Posted: Fri Jan 05, 2024 2:26 pm
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

Re: Webinterface

Posted: Tue Jan 09, 2024 1:09 pm
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,

Re: Webinterface

Posted: Wed Jan 10, 2024 12:27 pm
by emcodem
You are the best, thanks for debugging @Silicon
Which OS is this, i guess below Server 2016, right?

Re: Webinterface

Posted: Thu Jan 11, 2024 11:48 am
by Silicon
Yes indeed, it's a WS 2012 R2 :roll:

Re: Webinterface

Posted: Thu Jan 11, 2024 1:00 pm
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:(