You are here

Error

14 posts / 0 new
Last post
Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years
Error

Hello, I have a problem with m.tvtoday.de.
Until Monday it was still perfect. The website has not changed

WG++ 2.1.10
Synology Linux
m.tvtoday.de.channels.xml
m.tvtoday.de.ini

( 1/134 ) M.TVTODAY.DE -- chan. (xmltv_id=ARD) -- mode Smart
[Warning ] error downloading page: Error: SecureChannelFailure (The authentication or decryption has failed.)
[Warning ] pausing 1 of 4 times for 5 seconds before re-try.
[Warning ] error downloading page: Error: SecureChannelFailure (The authentication or decryption has failed.)
[Warning ] pausing 2 of 4 times for 10 seconds before re-try.
[Warning ] error downloading page: Error: SecureChannelFailure (The authentication or decryption has failed.)
[Warning ] pausing 3 of 4 times for 15 seconds before re-try.
[Warning ] error downloading page: Error: SecureChannelFailure (The authentication or decryption has failed.)
[Warning ] pausing 4 of 4 times for 20 seconds before re-try.
[Error ] Unable to update channel ARD
[Critical] Generic syntax exception:
[Critical] message:
[Error ] no index page data received from ARD
[Error ] unable to update channel, try again later
[ Info ] Existing guide data restored!
[ Debug ]
[ Info ]

Thanks for help.

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

its your mono version,anything below mono 5.0.0 will cause this error on https sites.

Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

Thanks for the information. I updated Mono to 5.18 from synocommunity, but I get the message Mono required, but it's not installed.
Can you help?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

if you read here..
http://www.webgrabplus.com/documentation/installation/synology-nas

the remarks at the bottom..

Remarks:Mono is installed in /usr/local/mono/bin/mono

so you may need to specify the path to your mono binary.

1. in terminal change to the directory of your webgrab.exe location
2. enter(assuming the path in the above remarks is correct)..

/usr/local/mono/bin/mono WebGrab+Plus.exe

Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

If I install Mono from synocommunity, he does not recognize the installation. Even with the path indication.

root@NAS NAME:/volume1/Webgrab/.wg++# sh run.sh ---> pic3.jpg

with mono -V I see 4.6.2 --> than install 5.18.0 ---> mono -V still 4.6.2

If I delete 4.6.2 and install 5.18.0 ---> Mono required, but it's not installed. ---> /usr/local/mono/bin/mono WebGrab+Plus.exe --> pic2.jpg

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

5.18 is probably installed in a different location,i have no idea where synology installs stuff.
check maybe the /opt folder

the other error is because webgrab want the path to your webgrab.config.xml

when u find where 5.18 is installed use the full path for everything,example

/path/to/mono_folder/mono /path/to/wg_exe_folder/WebGrab+Plus.exe /path/to/wg_config_xml_folder/WebGrab++.config.xml

Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

with this path webgrab find mono 5.18.

[ ]
[ ] WebGrab+Plus/w MDB & REX Postprocess -- version V2.1.10.0
[ ]
[ ] Jan van Straaten
[ ] Francis De Paemeleere
[ ]
[ ] thanks to Paul Weterings and all the contributing users
[ ] --------------------------------------------------------------------------------
[ ]
[ ] Job started at 09/08/2019 09:32:37
[ Debug ]
[ Debug ] Running on: Unix 4.4.59.0
[ Debug ] Environment: 4.0.30319.42000
[ Debug ] Mono version: 5.18.0.240 (tarball Tue Mar 19 06:36:09 UTC 2019)
[ Debug ]
[ Debug ] Loading timezone data
[ Debug ] Embedded timezones source: timezone.timezonesdata.txt
[ Debug ] Reading config file: WebGrab++.config.xml
[ ] Job finished at 09/08/2019 09:32:37 done in 0s
[Critical]
Invalid URI: The format of the URI could not be determined.
[Critical]
at System.Uri.CreateThis (System.String uri, System.Boolean dontEscape, System.UriKind uriKind) [0x0007b] in <63552ca6ec3f4cb28de3f8c0aa59b164>:0
at System.Uri..ctor (System.String uriString) [0x00014] in <63552ca6ec3f4cb28de3f8c0aa59b164>:0
at WGconsole.g..ctor (System.String 0) [0x00d21] in <4f8c0e22ea984918a040ad259e5f8692>:0
at WGconsole.F.1 (System.String[] 0) [0x00356] in <4f8c0e22ea984918a040ad259e5f8692>:0
[Critical] Unhandled Exception
[Critical] For detailed info, see log file WebGrab++.log.txt
[Critical] Execution stopped

normally i start webgrab via the run.sh. how can I change that mono found?

# * @file run.sh
# * @brief just start WebGrab+Plus
# * @author Francis De Paemeleere
# * @date 31/07/2016
# */

#backup the current working dir
WG_BCKP_DIR="$(pwd)"

function quit {
#restore previous working dir
cd "$WG_BCKP_DIR"
exit $1;
}

# check if mono can be found
which mono >/dev/null 2>&1 || { echo >&2 "Mono required, but it's not installed."; quit 1; }

# get the absolute path of the link (or relative path)
if [ -L $0 ] ; then
DIR=$(dirname $(readlink -f $0)) ;
else
DUTDIR=$(dirname $0) ;
if [ "${DUTDIR:0:1}" = "/" ]; then
DIR="$DUTDIR";
else
DIR=$PWD/$(dirname $0) ;
fi
fi ;

mono "$DIR/bin/WebGrab+Plus.exe" "$DIR"

quit 0;

Thanks for help.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

create a new sh file and call it whatever you want,webgrab.sh for example

inside put this..

#!/bin/bash

cd /path/to/webgrab_exe_folder

/path/to/mono_binary_folder/mono WebGrab+Plus.exe "/path/to/webgrab_config_folder"

exit

note:
the path for your webgrab config folder is in quotes(this is needed in case u have spaces in directory names),also use only the path to the folder and don't include the actual name of your webgrab config.xml as I said above.webgrab only wants the directory name,it knows what the filename of the config.xml is and will look for it there.i think this is what caused your error.

save the file and in terminal run

chmod +x filename.sh
replace filename with whatever you decide to name the file.

this will make it executeable and you can run it just like you do the run.sh file.

Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

The command /usr/local/mono/bin/mono /volume1/Webgrab/.wg++/bin/WebGrab+Plus.exe "/volume1/Webgrab/.wg++/" works. Thanks

But the .sh doesn´t work.

#!/bin/bash

cd /volume1/Webgrab/wg++/bin/

/usr/local/mono/bin/mono WebGrab+Plus.exe "/volume1/Webgrab/wg++/"

exit

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

ur missing the . before wg++ in both places.

Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

root@DurschtiNAS:~# sh /volume1/Webgrab/.wg++/run2.sh
/volume1/Webgrab/.wg++/run2.sh: line 2: $'\r': command not found
: No such file or directory.sh: line 3: cd: /volume1/Webgrab/.wg++/bin/
/volume1/Webgrab/.wg++/run2.sh: line 4: $'\r': command not found
Cannot open assembly 'WebGrab+Plus.exe': No such file or directory.
/volume1/Webgrab/.wg++/run2.sh: line 6: $'\r': command not found
root@DurschtiNAS:~#
--------------------------------------------------------------------

#!/bin/bash

cd /volume1/Webgrab/.wg++/bin/

/usr/local/mono/bin/mono WebGrab+Plus.exe "/volume1/Webgrab/.wg++/"

exit

That is strange. But in terminal /usr/local/mono/bin/mono /volume1/Webgrab/.wg++/bin/WebGrab+Plus.exe "/volume1/Webgrab/.wg++/" works

I tested

#!/bin/bash

/usr/local/mono/bin/mono /volume1/Webgrab/.wg++/bin/WebGrab+Plus.exe "/volume1/Webgrab/.wg++/"

exit

------------------------------------------------------------------------------------------------

Then I get

root@DurschtiNAS:~# sh /volume1/Webgrab/.wg++/start.sh
/volume1/Webgrab/.wg++/start.sh: line 2: $'\r': command not found

WebGrab+Plus/w MDB & REX Postprocess -- version V2.1.10.0

Jan van Straaten
Francis De Paemeleere

thanks to Paul Weterings and all the contributing users
--------------------------------------------------------------------------------

/ doesn't exist!/.wg++/

correct the commandline parameter to match an existing path!

Excecution will stop!
For detailed info, see log file
Execution stopped
/volume1/Webgrab/.wg++/start.sh: line 4: $'\r': command not found
/volume1/Webgrab/.wg++/start.sh: line 5: $'exit\r': command not found
/volume1/Webgrab/.wg++/start.sh: line 6: $'\r': command not found
root@DurschtiNAS:~#

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

did u by chance create this file with windows and then upload it to your server?

try running..

dos2unix filename.sh

I don't know if your server has dos2unix installed though.
if not create the file manually on your server and enter each line via editing it.
I am pretty sure the /r are from the file being created on windows.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 33 min

I manually created the file for you on Linux,just upload it to where you want.
no editing should be needed.
don't forget to chmod +x the file once uploaded.

Attachments: 
Durschti
Offline
Donator
Joined: 5 years
Last seen: 2 years

I tested, but it´s the same problem.
I found a solution over the task organizer from synology without a bash. A custom script (/usr/local/mono/bin/mono /volume1/Webgrab/.wg++/bin/WebGrab+Plus.exe "/volume1/Webgrab/.wg++/") that works.

Thank you for your response and help!!

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl