Webinterface

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

Re: Webinterface

Post by emcodem »

Thats fantastic, thanks a lot for your understanding @Noqras
Server 2012R2 dies on 10/10/2023 so maybe it's a good idea to go for Win10 if you don't have to be on Server :D
emcodem, wrapping since 2009 you got the rhyme?
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

I had some issues trying to install release 1.2.0.3. My normal upgrade procedure is to stop the FFAStrans Webinterface service, overwrite the existing server.exe file with the new version and then start FFAStrans Webinterface. This time that didn't work, the webui came up but without any history and with none of the buttons on the left responding. I noticed that the 1.2.0.3 node_modules directory has many more items it so I copied that over and retried. It worked better, the job history was there, but the manual submit page was broken, complaining about a missing regex package. Running server.exe directly (with service stopped) resulted in the output pasted below. It appears to be looking for a non-existent node_components directory.

Rolled back to 1.2.0 without issue. Figured this should go here instead of the bug thread?

Code: Select all

undefined
[[11:09:03.394]] [LOG]   Running as compiled file
[[11:09:03.788]] [LOG]   Serving Server config from database
[[11:09:03.790]] [LOG]   Checking alternate jobfetcher C:\FFAStrans\Webinterface\alternate-server\jobfetcher.js
[[11:09:03.792]] [LOG]   NOT running on alternate-server, getting about
[[11:09:04.099]] [LOG]   Hello and welcome, thank you for using FFAStrans
[[11:09:04.101]] [LOG]   Running on http://localhost:3002
[[11:09:04.109]] [ERROR] Trace: Global unexpected error:  Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\filebrowser.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\filebrowser.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:250:5) {
  code: 'ERR_MODULE_NOT_FOUND'
}
    at process.<anonymous> (C:\FFAStrans\Webinterface\server.js:54:13)
    at process.emit (events.js:315:20)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)
[[11:09:04.110]] [ERROR] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\filebrowser.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\filebrowser.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:250:5)
[[11:09:04.111]] [ERROR] Trace: Global unexpected error:  Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\logparser.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\logparser.js:3:21)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:252:5) {
  code: 'ERR_MODULE_NOT_FOUND'
}
    at process.<anonymous> (C:\FFAStrans\Webinterface\server.js:54:13)
    at process.emit (events.js:315:20)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)
[[11:09:04.112]] [ERROR] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\logparser.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\logparser.js:3:21)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:252:5)
[[11:09:04.113]] [ERROR] Trace: Global unexpected error:  Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\mediainfo.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\mediainfo.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:265:5) {
  code: 'ERR_MODULE_NOT_FOUND'
}
    at process.<anonymous> (C:\FFAStrans\Webinterface\server.js:54:13)
    at process.emit (events.js:315:20)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)
[[11:09:04.114]] [ERROR] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'escape-string-regexp' imported from C:\FFAStrans\Webinterface\node_components\mediainfo.js
    at packageResolve (internal/modules/esm/resolve.js:655:9)
    at moduleResolve (internal/modules/esm/resolve.js:696:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/cjs/loader.js:1006:27)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Object.<anonymous> (C:\FFAStrans\Webinterface\node_components\mediainfo.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at init (C:\FFAStrans\Webinterface\server.js:265:5)
[[11:09:04.127]] [LOG]   Starting up REST API on Port 3003
[[11:09:04.127]] [LOG]   calling http://localhost:65445/api/json/v2/about
[[11:09:04.212]] [LOG]   Approt:  C:\FFAStrans\Webinterface\rest_service
[[11:09:04.572]] [LOG]   Document { location: [Getter/Setter] }
[[11:09:04.711]] [LOG]   Web API Server started, check out http://127.0.0.1:3003/docs
[[11:09:04.767]] [LOG]   New socket io client connected, client: PolGhXXl4DQ9qgrnAAAC
[[11:09:04.768]] [LOG]   Count of concurrent connections: 2
[[11:09:04.770]] [LOG]   New socket io client connected, client: jWfMaeEs2nCmY0PcAAAD
[[11:09:04.770]] [LOG]   Count of concurrent connections: 2
[[11:09:05.923]] [LOG]   New History data, Number of Jobs  247 Number of splits 249
emcodem
Posts: 1750
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Aye Mr Jones, we missed you :D
as you expected thats an issue with the packaging, i'll test and bundle a new version hopefully latest tomorrow.
Thanks for notifying!
emcodem, wrapping since 2009 you got the rhyme?
Russ3lHD
Posts: 11
Joined: Tue Jun 02, 2020 11:21 am

Re: Webinterface

Post by Russ3lHD »

Hello Guys,

I have a small Problem.
I tried to add an UNC Path to the Webinterface but i got this error

The Path was
["A Drive on server","A"]
["\\\\IPAdress\\DRIVE-NAME\\FOLDER","A:"]

Best regards
Russ3lHD
Attachments
fehler.png
fehler.png (6.77 KiB) Viewed 8513 times
emcodem
Posts: 1750
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Sorry @Russ3lHD i fixed it but didnt upload. Its the same issue that @crispyjones mentiones above

https://github.com/emcodem/ffastrans_we ... .2.0.4.zip

i hope it's complete now!
emcodem, wrapping since 2009 you got the rhyme?
Russ3lHD
Posts: 11
Joined: Tue Jun 02, 2020 11:21 am

Re: Webinterface

Post by Russ3lHD »

@emcodem thank you for your Work and your help.
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

Thanks @emcodem! It's up and running fine on my test machine.
emcodem
Posts: 1750
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Perfect Thanks for letting me know :)
Anyone uses AD auth and or https already? Would be good to get some Feedback if it works as expected...
emcodem, wrapping since 2009 you got the rhyme?
crispyjones
Posts: 106
Joined: Wed Dec 27, 2017 3:21 am

Re: Webinterface

Post by crispyjones »

Hello @emcodem. Just wanted to let you know I tried AD auth on my test machine and it works. The test was limited to just me and couple other people in my department, but it did work in our huge corporate AD domain. I don't plan on enabling authentication on my production server, but I am glad it is an option if I need to.
emcodem
Posts: 1750
Joined: Wed Sep 19, 2018 8:11 am

Re: Webinterface

Post by emcodem »

Thats good to know, Thanks for checking out @crispyjones :)
emcodem, wrapping since 2009 you got the rhyme?
Post Reply