Hello,
I’ll take my chances and ask for your help with the complete installation process of WebGrab++ on a Synology NAS... perhaps this could help other users in the future. I don’t want this to be a headache for anyone, and there’s no rush.
What have I done so far? Well...
- i tried installing it according to this tutorial: https://www.blackvoid.club/webgrabplus-self-hosted-epg-via-docker/ - it didn’t work (I couldn’t even get any output for the .xml file);
- i tried the tutorials on the official site - couldn’t figure it out;
- i looked through the forum - same story, no success;
- installed older versions, up to 4.0 with mono, via Docker, didn’t work, not even via SSH;
- installed the latest version from Docker, with .NET 8 from Packages - it didn’t work.
In short, I tried via Docker, Packages, SSH, searched almost everywhere, spent nearly 8 hours working on it, with no results.
So, if anyone happens to have more recent experience and could provide a tutorial on installing WebGrab++ on Synology, I can only thank you! The goal is to automatically generate the respective .xml file for EPG and save it to a specific location on the disk.
Now, let me give you the platform details:
- model name: DS224+
- DSM version: DSM 7.2.2-72806 Update 2
At the moment, I’ve deleted everything I worked on during those almost 8 hours (folders/mono/dotnet) to allow for a clean installation at some point in the future with clear steps.
I assure you that, regardless of the outcome of this post, I will continue to support this project whenever I can and commend you for the work and passion you put into it.
Thank you in advance!
thats turorial is outdated.
versions 3.x of webgrab(compiled with netframework) is end of life and no longer being updated.
the latest webgrab V5.3 uses dotnet(dotnet 8.x required) instead of mono.
see here..
http://www.webgrabplus.com/content/wg-synology
I still haven’t succeeded. Something isn’t clicking somewhere, and I’m definitely misconfiguring something (maybe I’m a bit “non-technical”).
I’d like to keep this topic open for a while longer (up to one month), and if no one steps in to help me (from scratch – I repeat, I think this could also be useful for others at some point), I’ll mark it as resolved.
i forgot to mention the above link is not using docker.
its installing webgrab in the home users directory.
1. install dotnet 8 package
2. enable home user or whatever it is called
3. cd ~
wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
then
tar -zxvf WebGrabPlus*.tar.gz
4. cd ~/.wg++
then
./install.sh
5. to run webgrab try..
~/.wg++/run.net.sh
if it fails try with sudo..
sudo ~/.wg++/run.net.sh
or
sudo dotnet ~/.wg++/bin.net/WebGrab+Plus.dll ~/.wg++
It works.
Thank you! :)
which run command worked so other will know?
This command that worked is: sudo ~/.wg++/run.net.sh
I'll try now to use DSM's task scheduler as for the grabber to run every 3 days.
Let's see what the result will be, because when I run the command with sudo it ask for the password.
thank you.
if u dont mind could you provide a list of steps you did(mine was based on from other posts(really a best guess)
this will help other synology users
no option in task scheduler to run as root?
might be other option in scheduler like
run if not logged in
or run with highest privledges
i dont have a synology
i have a thecus and everything runs a root.
Well, the steps:
1. install net 8 from Package Center
2. enable user home service from Control Panel ≥ User&Group ≥ Advanced
3. ssh your-username@ip-of-your-nas
4. wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
5. tar -zxvf WebGrabPlus_V5.3_install.tar.gz
6. cd ~/.wg++
7. ./install.sh
8. configure as for your needs this file: WebGrab++.config.xml (from the .wg++/ installation folder)
9. run the executable with this command: sudo ~/.wg++/run.net.sh
great.
thank you i am sure many synology users will love this.
just for users info on this line you need to edit it to the latest version.
at this time is V5.3 u can find the link to latest on the downloads page.
http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
Yes, there is a option to run as root, but I can't figure out (at the moment) what is the command to run the program which is in my user folder in home.
So, the script in Task Scheduler looks like this: ~/username/.wg++/run.net.sh
And the output of the Task Scheduler is this:/bin/bash: /root/username/.wg++/run.net.sh: No such file or directory
Right now I'm not that "linux friendly" user ...
there are many posts here with issues with docker.
everytime the container restarts it gets a new mac address.
this causes havoc with wg licence check. as it uses the mac in a hash to confirm user.
i think docker is kewl but not all things shud be run in docker,webgrab being one.
these instructions shud be added to our install page.
1. update anytime with few simple steps
2.no need to wait for update for docker container
wis the task added as root user?
Yes, you have a point. So, right now wg++ is to be installed with old wget method and NOT in docker (or Container Manager as is named in the new DSM).
This one: ~/username/.wg++/run.net.sh
is this a typo?
/root/username/.wg++/run.net.sh: No such file or directory
shud be something like
/home/username/.wg++/run.net.sh: No such file or directory?
are users in yr root directory?
i cant see that..
Users are in /volume/homes/ directory and wg++ is installed in a username folder in that homes directory... so that path will be /volume/home/username/.wg++
then in task use..
/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll /volume/home/username/.wg++
if your task scheduler accepts agruments..
task:/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll
arguments:/volume/home/username/.wg++
post a screensho of ur scheduler
OK. I'll look into it and somwhere tomorrow will post a reply here.
Again, big thanks for your support!
dont have a synology.it looks like its looking for a script.
ask on synology site
Sure. Thank you!
not entirely true.
using docker ur dependant on the creator for updates(container).
using install above u can update anytime a new version is available usin steps above.
Yes. I agree.
reading through this post again i forgot dotnet in the above posts
i think this should also work?
/volume/home/username/.wg++/run.net.sh
or manually with dotnet
dotnet /volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll /volume/home/username/.wg++
also in your screen shot there is a link at the bottom where it says more about scripts,have u checked that for additional info?
i did some searching and think your in the wrong spot maybe?
found this link.
https://kb.synology.com/en-us/DSM/tutorial/common_mistake_in_task_schedu...
so u want to select the below
Enter scripts in Control Panel > Task Scheduler > Create > Scheduled Task > User-defined script > Task Settings > Run command
then u can use one of the commands above.
edit: just checked your screenshot again and ur in the correct spot.
try one of the commands in above post.
here's a alternative to using bin.net.sh
create a file in you .wg++ folder(i will use webgrab.sh)
inside put this..
#!/bin/sh
export OPENSSL_CONF=/volume/home/username/.wg++/bin.net/openssl.cnf
dotnet "/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll" "/volume/home/username/.wg++"
exit
replace username with your username
save and chmod +x or chmod 755
this does the same thing as run.net.sh but its using absolute paths for your system.
run.net.sh tries to find these paths itself.
id run.net.sh works then ur ok.
So, the complete process is:
1. install net 8 from Package Center
2. enable user home service from Control Panel ≥ User&Group ≥ Advanced
3. ssh your-username@ip-of-your-nas
4. wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
5. tar -zxvf WebGrabPlus_V5.3_install.tar.gz
6. cd ~/.wg++
7. ./install.sh
8. configure as for your needs this file: WebGrab++.config.xml (from the .wg++/ installation folder)
9. run the executable with this command: sudo ~/.wg++/run.net.sh
To automate the script:
1. go to Control Panel ≥ Task Scheduler ≥ Create ≥ Scheduled Task ≥ user-defined script
2. in General tab - enter the desired name for the job in the Task box and choose "root" in the User box
3. in Schedule tab - choose the desired setting to run the script (this is simple)
4. in Task Settings tab - under Run Command, in the user-defined script box enter, without the quotation marks: "bash /volume1/homes/username/.wg++/run.net.sh" (make sure to use your own path after "bash" - this was just my case).
5. enjoy WebGrab++ at it's fullest :)))
nice.glad you got it all figured out.
congrats.
Big thanks to you for all the support!
And... Happy new year!
the sky is the limit with what u can do with linux.
i use my own script i made which allows me to use openvpn files any time i with by adding vpn [location]
see screenshot.
The VPN stuff is really cool!
As for me, just need to learn linux better. Maybe I'll do that next year.
we all start somewhere.
i been doing linux for least 15 years and i still have to google stuff as i dont use it everyday so i forget.
These steps to install seemed to work for me, but when I tried to run it, i got the following:
You must install or update .NET to run this application.
App: /volume2/homes/<>/.wg++/bin.net/WebGrab+Plus.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: /volume2/@appstore/dotnet9-runtime/share/dotnet/
The following frameworks were found:
9.0.0 at [/volume2/@appstore/dotnet9-runtime/share/dotnet/shared/Microsoft.NETCore.App]
Learn more:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&fra...
I installed .NET 8 runtime from the Package Center, but when I got the initial error, i went ahead and installed .NET 9 runtime. Has anyone else seen this issue?
u cant be using webgrab V5.3
it needs net 8
u must have installed a older version that uses net 7
I just figured that, and it looks like I grabbed 5.1. I just tried to install 5.3 and I get the same message. Do i need to uninstall 5.1 somehow?
no.
but from u post above u only have net 9 installed.
in ternminal..
should list the runtimes installed.
i have 6,7,8
Thanks Very much for your help. I had to uninstall .NET 9 and re-install .NET 8. Then I killed the 5.1 directories and started fresh with 5.3. It is working now. Thanks again!