You are here

error after fresh installation on synology nas

29 posts / 0 new
Last post
dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months
error after fresh installation on synology nas

I just installed webgrabplus on my nas and can't get it to run.

I installed mono from the synology UI
Then downloaded the webgrab++ 3.0

I put the error messages in putty.txt

Attachments: 
Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

your first log looks bad but your 2nd looks ok,see post #45 here for the "trust failure" message..
http://webgrabplus.com/content/wglicense-password

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

Thank you for the fast reply. I'm some kind of a linux noob. I understand basic stuff but I'm stuck here.
I saw your post and it says I should update the mono certificates. but I have cert-sync not installed.

Any idea how I install that on a synology ?

I got this version of mono:

Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Fri Oct 27 17:00:53 CST 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: amd64
Disabled: profiler,logging,debug,soft_debug
Misc:
LLVM: supported, not enabled.
GC: sgen

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

ur mono version is way to old,you need greater than 5.0.0,latest is 6.8 if that's tell u anything.

see of they have a updated version as this is a common probem.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

Also, in the license tag I just enter my forum data, right ?

http://webgrabplus.com/sites/default/files/user/mat8861/lic_sample.jpg

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

it wont matter,mono is too old to work with most https sites so unless u can get a mono version greater than 5.0.0,latest would be better you are going to have nothing but trouble.
also if u do get a updated mono versio it will update the certificates on install so ypu wont need todo what the post said.
I had thos problem with my nas but a 3rd party developer had a newer mono version available that I used.
it wont work with ur nas,u need to contact or ask on their forums.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

Ok I deinstalled the old mono version and installed a newer version from the synocommunity. When I try to run Mono now it says mono is not running. Which is kinda true I guess. When I click on the old mono in the synology UI it said "running" and I could stop it. When I install the new mono it isn't showing as running. Any idea ?

BTW Thanks for helping me out. I gladly donate to the project if I get this up and running.

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

reboot nas be my first suggestion and check again.
as I said I have a thecus nas and see many strange things.never again a but a prebuilt nas.
next time I will built my own using ubuntu server.
but we but try work with what we got.
have rely on nas manufacturer for updates.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

Alright. Mono 5.18.0.240-12 shows as running in the synology UI.
When i log on via putty and try to execute run.sh it says
Mono required, but it's not installed.

I'm really starting to think about a Virtual Machine with Ubuntu Server running on the NAS -.-

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

been there and it works(windows also) on my nas.
its the overhead of running a os inside a os that worries me.(if I run virtual machine on my i7 laptop I see diff in performance)
to much cpu and ram useage.
might be not bad performance or slow as hell.
I didn't do much testing,just now it works for me.

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

btw I ugraded my nas to 16 gb ram.
not that's crucial for virtual machine.(I just got tons ram available).
quad 4 cpu(intel Celeron 3160).
it does what I need it to do but someday I will just wipe it and install ubuntu.

ubuntu 18.04(desktop) runs not bad on it(virtual machine)
seems to boot slow for me but once up ans running its pretty good.
if u run server version it would b faster(as no desktop running).

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

Finally I got it Working.

In the virtual machine the file will be saved at this place: /home/matu/epg.xml

My Plexserver runs on my NAS and is looking for the EPG file in the following place: /volume1/storage/epg.xml

Can you explain me how I can run that run.sh script daily at a certain time and then copy that file from the virtual machine to the NAS ?

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

if I understand u right webgrab will run with the existing run.sh just writes the file to a diff location?
if so just edit your webgrab++.config.xml
and change the filename to /volume1/storage/epg.xml
so webgrab will write it here instead of /home/matu/epg.xml

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

I don't think that webgrab is able to reach the /volume1/storage/epg.xml since this is outside of the virtual machine itself.
Its available in the network. But I don't know how to mount networkfolders -.- tried it but didn't work -.-

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

right,i get u.
so in terminal(putty as root user)

ln -s /home/matu /volume1/storage

this should create a symbolic link to make plex look in the directory where ur actual epg file is.

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

in short..
ln -s create symbolic link(in your case)

from this directory
/home/matu
to
/volume1/storage
so if plex looks for the epg file in /home/matu it will also look in the other directory.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

I don't think that this can work.
Plex Server runs directly on the NAS. Plex can only reach /volume1/storage/epg.xml

The Virtual Machine with webgrab runs on the NAS but has a seperate filesystem. It can not access folders outside of the VM.

From my understanding I have to mount the network folder of my NAS in the Virtual Machine.

something like this:

mount -o cifs name=xyz,password=xyz //192.168.178.100/volumte1/storage/ /home/matu/

NAS is 192.168.178.100
VM is 192.168.178.53

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

make sense
try it.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

thats my problem. something is not right with the syntax.

error says:
mount: falsche Benutzung
which means something like
mount: wrong usage

can't figure it out ...

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months
dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

thank you.

but when I do that (no matter if i use just mount or the fstab)

mount error (95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log message (dmesg)

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

did u install cifs tools as the video says?

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

yes.

EDIT
ok i found the error. the nas uses an older version of cifs. i needed to add vers=2.0 to mount ...

now I need to set up the cron
i want to execute run.sh every night and after it updated i want to copy the epg to the NAS

any clue how to ?

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

read here.
http://www.iholken.com/index.php/2016/03/28/configure-owncloud-to-use-sy...
this explains owncloud,just edit it to execute your run.sh file instead.
to copy the file I would create another file(say in your webgrab++.config.xml directory).lets call it copy.sh for example(can be whatever name you want).

login as root and goto this directory and run..
chmod +x copy.sh

edit the file and add this inside..

#!/bin/bash

cp /path/to/your/epg/file/epg.xml /path/to/where/you/want/it/copied/to/epg.xml

when u add copy.sh as a crond job as explained above make sure it doesn't copy until after the crond job that runs webgrab is done.
for example..
you run webgrab at midnight and it take 3 hours to run
set the crond job that runs copy.sh for 03:30 or something like that to make sure u give webgrab lots of time to complete.

edit:
I think I have that backwards.
u have you network folder mounted in virtual machine right(which is running ubuntu).
so this is where you want the cron job and not on your sinology os)?
if so as regular user or root(it depends on what user you used to install webgrab and for your mount) run..
crontab -e
in terminal,its pretty self explainatory but something like

00 00 * * * username /path/to/run.sh > /path/to/webgrab++.config/directory/log.txt 2>&1
30 03 * * * username /path/to/copy.sh

this is optional..
> /path/to/webgrab++.config/directory/log.txt 2>&1
all this will do is output a log file to your webgrab++config directory if you want it.
it would be a log of what you see if you ran webbgrab in terminal.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

I think I have it. I didn't even need to copy it because in the webgrab config I put /mnt/storage/epg.xml as outputfile.

I made an entry with crontab. If everything works I will get a new epg in the middle of the night.

stay tuned. i will tell u if it worked.

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

I just noticed something:

The license I have allows me to grab 20 channels only. How do I get a different one for more channels ?

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

20 channels means webgrab is running as a un registered user.
see here to add your webgrab registered info..
http://webgrabplus.com/documentation/configuration/webgrabconfigxml#conf...

this will get you 30 channels.
for a 5 euro donation(good for 1 year) u get 1000 chans.
if you donate don't forget to ask for a password,its not needed but adds a extra layer of security so another user cant use your info.
you can ask for a password here(after u have your donator badge assigned)..
http://webgrabplus.com/content/wglicense-password

dermatu
Offline
Donator
Joined: 7 months
Last seen: 7 months

i donated exactly that. and replied in that thread. i guess I will just have to wait now :-)

thank you for your help

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 2 months

how did you make out,everything work ok?

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