Webinterface

Questions and answers on how to get the most out of FFAStrans
emcodem
Posts: 1752
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Hi @taner,

uhm, to be honest, reading your description i am not really sure how exactly your current setup looks like. This sentence made me struggle understanding it:
ffastrans and webinterface-statusmonitor on NAS are running as service with the local administrator-account.
This could mean so much different things... like do they really run on the server that "is" the NAS? (in that case your NAS is a windows file server?)

However, ffastrans has a masterless design so actually there is no such concept as "transcode instances and non transcode instances". They all work with the ame /db directory and therefore all of them have to be able to read/write to it.
It does not really matter if ffastrans is started as background service or not, the only thing that matters is file access permissions. One thing you must avoid at all costs is to run mixed as you do now and let one instance work with a mapped network drive and another instance with full UNC paths.

What happens when you cancel a job is that the webinterface talks to one of your hosts API (if you did not change, it talks to "localhost"). This ffastrans instance must be able to write a file to the DB directory ffastrans. (this is how cancelling works: a file is written to the db folder and running jobs react to this file).

In that case it does not even matter at all under which credentials (nor service or not) the webinterface exe is running as only ffastrans needs file access to the db directory.

Again, the flow is: webinterface talks to API (localhost:65445), and this ffastrans instance writes file to the db directory. Then the ffastrans instance that executing a running job is constantly looking for the "cancel file" and reacting to it.

You can e.g. try to reconfigure the webinterface STATIC_API_HOST to talk to one of the other nodes.
emcodem, wrapping since 2009 you got the rhyme?
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

Is there a way to tell what version webinterface I have installed and running? Looked on the UI at :3002, looked at the service, not seeing anything.
emcodem
Posts: 1752
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

@crispyjones
as usual a very valid and helpful question...
the answer is no, we dont expose the current version in any way, you can only know the version from the "date modified" version of the server.exe file.

I'd love to implement some version info but i am not sure where/how to expose this information. So let me ask, how would you like to read/see this info?
emcodem, wrapping since 2009 you got the rhyme?
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

Perhaps a small "ver #.##" blurb by the helmets/hats on the main status page. Or a read only entry on the settings page? My server.exe has a datemod of 7/16/20 which lines up with 1.0.5, so probably time for an upgrade.
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

Ha! Just updated to 1.2.1 and I see @francebb has his own helmet! So glad this is growing project with motivated contributors!
User avatar
Silicon
Posts: 98
Joined: Fri Sep 04, 2020 6:34 am

Re: Webinterface

Post by Silicon »

Hi emcodem
I have upgraded FFAStrans to ver. 1.1.0.2 and WebInterface to ver. 1.1.2.1 (was 1.0.3 before). Since then I'm experiencing troubles with WebInterface:
1. It is significantly slower comparing to 1.0.3
2. It reports error messages "Error getting running jobs, webserver lost connection to ffastrans server ..." repeatedly (see screenshot attached) :( . The FFAStrans status monitor works normally.
Any idea what is wrong with WebInterface? Should I try to downgrade to version 1.0.3? Is it compatible with FFAStrans to ver. 1.1.0.2?
BTW I have noticed small error when “Incoming” status is displayed … the Start time is reported in GMT not local time.
Attachments
FFAStrans WebIF Errors.png
FFAStrans WebIF Errors.png (13.37 KiB) Viewed 7918 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: 1752
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Aye Silicon,

yeah i already found out whats the problem with that, it should be connected to the number of files in your watchfolders. No worries, it is not an ffastrans issue as the message states but instead just wrong programming inside the webinterface.
I'm not yet finished with the correction for it so i fear for now you should use the older version unfortnuantely.
And thanks for notifying about the issue with the GMT time, i'll investigate!
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
Thanks for quick reply. I'll rollback to 1.0.3 then and wait for new version :-)
Anyway thanks for excellent job you guys are doing with FFAStrans development.
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
FranceBB
Posts: 258
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Webinterface

Post by FranceBB »

crispyjones wrote: Wed Jan 20, 2021 9:10 pm Ha! Just updated to 1.2.1 and I see @francebb has his own helmet! So glad this is growing project with motivated contributors!
Eheheh
I'm a computer science engineer, but I was born in Italy and I also speak Latin (ancient Italian) on top of regular Italian and English, so I guess the helmet was pretty appropriate! ehehe
By the way, I don't really contribute to the web interface, that's emcodem's little baby. He cares about it, updates it, fixes bugs etc all on his own, but I do contribute to the nodes inside the main FFASTrans executable (which is Grandmaster Steinar's enormous baby), but I guess you'll have to wait 'till 1.2 is out to see it. :)
taurojo
Posts: 35
Joined: Mon Dec 19, 2016 2:44 pm

Re: Webinterface

Post by taurojo »

You can filter by extension the files that appear in the search explorer.
It would save a lot of trouble.
Thanks!
Post Reply