DDNS Updater DDNS Updater UI not loading

Status
Für weitere Antworten geschlossen.

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
I have tried installing this package many times in the past without success but now I've decided to post this so as to see what I am doing wrong.
As per screenshots attached all packages required have been installed and running normally but when I select to run the DDNS Updater UI, a window with the code comes up (3rd screenshot) DSM version is 4.3.3810 Update 1 on DS-1010+. I had exactly the same results on previous DSM versions. I would appreciate any help on this. Thanks in advance!
 

Anhänge

  • Synology DiskStation - DiskStation_II.png
    Synology DiskStation - DiskStation_II.png
    170 KB · Aufrufe: 57
  • Synology DiskStation - DiskStation_II (2).png
    Synology DiskStation - DiskStation_II (2).png
    132,1 KB · Aufrufe: 56
  • Synology DiskStation - DiskStation_II (1).jpg
    Synology DiskStation - DiskStation_II (1).jpg
    62,3 KB · Aufrufe: 56

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
Clean browsercache or reboot your DS, it seems there are some old cache contents.
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Thank you for your reply.
The DiskStation has rebooted numerous times today due to firmware upgrades and once more just before posting this reply.
The browser data has also been cleaned and tried to load DDNS UI from two MacMini's.
Unfortunately the same windows pops up with the php code... No UI still.
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
Then there is a problem with Init_3rdparty. Init_3rdparty should adapt the system apachen so php files can be processed, but this will not not be performed on your ds.
Execute PHPInfo from startmenu and check the output.
Login via telnet or ssh as root with password from admin and restart the system apache with the following cmd:
Rich (BBCode):
/usr/syno/etc/rc.d/97apache-sys.sh restart
Please post the output.
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
QTIP thank you for your support!
Indeed PHP info returns "Sorry, the page you are looking for is not found" as per screenshot attached.
I restarted S97apache-sys.sh (I guess the "S" was missing from your command) but still PHP Info returns the same page.
Should I uninstall Init_3rdparty and DDNS updater and install again?
The thing is that I did uninstall and reinstall but without luck.
Thanks again!
 

Anhänge

  • Synology DiskStation - DiskStation_II.jpg
    Synology DiskStation - DiskStation_II.jpg
    24,4 KB · Aufrufe: 45
  • Screen Shot 2013-11-24 at 12.03.49 PM.png
    Screen Shot 2013-11-24 at 12.03.49 PM.png
    38,6 KB · Aufrufe: 45

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
So I did the following:

1. Uninstalled Init_3rdparty, Init_3rdpartyhelp, DDNS Updater.
2. Restarted Synology.
3. Install Init_3rdparty and Init_3rdpartyhelp.
4. Restarted Synology.
5. Executed PHPInfo from Start Menu -> Output is the same: "Sorry, the page you are looking for is not found".

At this point I am not installing DDNS Updater as I guess it wont work due to the PHPInfo error.

Any suggestions are welcome. Thank you.
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
Can you restart the apache without mc, i would like to see the output from apache and post it here.

You need Init_3rdpartyhelp only in DSM older than 4.x, so you can deinstall it.
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Can you restart the apache without mc, i would like to see the output from apache and post it here.

You need Init_3rdpartyhelp only in DSM older than 4.x, so you can deinstall it.

I did restarted it using the command line as well.
There was no output on terminal screen after running the command. It returned immediately to the command prompt. I am not sure if I need to run another command in order to see the output of apache. If so then I would appreciate a little help on this. Thanks!
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
please post the output of
Rich (BBCode):
tail -n 20 /usr/syno/apache/conf/httpd.conf-sys

*edit*
install ipkg packages nmap and netstat, then post output of
Rich (BBCode):
nmap -sT -O localhost
and
Rich (BBCode):
netstat -anp | grep 5002
 
Zuletzt bearbeitet:

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Output for tail -n 20 /usr/syno/apache/conf/httpd.conf-sys

<IfModule rewrite_module>
#for demo site
Include conf/extra/*demo-site.conf

# the request param will not be matched in the rule
# [QSA,L] is to append new query to original query

RewriteEngine On
RewriteRule ^/viewer/(.*)/(.*)/(.*)/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?dlink=$1&_sid=$2&SynoToken=$3&ip=false&api=SYNO.FileStation.Download&version=1&method=download&mode=open&stdhtml=true [QSA,L]
RewriteRule ^/fbsharing/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?key=$1&api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/fbdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
# wfmdownload rule is for old version compatibility
RewriteRule ^/wfmdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/dar/(.*) /usr/syno/synoman/webman/modules/SystemInfoApp/DataAnalysis.cgi?path=$1 [QSA,L]
</IfModule>

<IfDefine FrameOptions>
Include conf/extra/httpd-frameOptions.conf-sys
</IfDefine>
 
Zuletzt bearbeitet:

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Output for netstat -anp | grep 5002

tcp 0 0 ::%134822437:5002 ::%134897295:* LISTEN 9104/httpd
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Output of nmap -sT -O localhost

Starting Nmap 5.35DC1 ( http://nmap.org ) at 2013-11-24 18:11 EET
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0013s latency).
Not shown: 979 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
161/tcp open snmp
443/tcp open https
445/tcp open microsoft-ds
515/tcp open printer
548/tcp open afp
631/tcp open ipp
2049/tcp open nfs
3493/tcp open unknown
5002/tcp open rfe
5432/tcp open postgresql
6002/tcp open X11:2
7002/tcp open afs3-prserver
8002/tcp open teradataordbms
8082/tcp open blackice-alerts
9090/tcp open zeus-admin
9200/tcp open wap-wsp
Device type: WAP
Running (JUST GUESSING) : Linux 2.4.X (85%)
Aggressive OS guesses: DD-WRT v24 SP2 (Linux 2.4.36) (85%)
No exact OS matches for host (test conditions non-ideal).
Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 7.21 seconds
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
The config is missing the Init_3rdparty part. Stop Init_3rdparty and start it again. If you get a error on start of Init_3rdparty then do it again, it should than be happen without error otherwise restart ds an try again.
Repeat the command tail -n 20 /usr/syno/apache/conf/httpd.conf-sys and post output.

I wonder why Init_3rdparty don't modify your config. Is there a httpd.conf-sys.bak in the /usr/syno/apache/conf/ folder?

I did restarted it using the command line as well.
There was no output on terminal screen after running the command. It returned immediately to the command prompt. I am not sure if I need to run another command in order to see the output of apache. If so then I would appreciate a little help on this. Thanks!
On my DS the restart of apache return the following output:
Rich (BBCode):
/usr/syno/etc/rc.d/S97apache-sys.sh restart
/usr/syno/etc/rc.d/S97apache-sys.sh: system httpd stopped
serverID: 005531326
state: connected
Start System Apache Server .....  -DSSL -f /usr/syno/apache/conf/httpd.conf-sys
/usr/syno/etc/rc.d/S97apache-sys.sh: system httpd started
serverID: 005531326
state: connected
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
I stopped and started the service.
There was no error in starting the service but the output of PHPInfo is the same.

Output of tail -n 20 /usr/syno/apache/conf/httpd.conf-sys
<IfModule rewrite_module>
#for demo site
Include conf/extra/*demo-site.conf

# the request param will not be matched in the rule
# [QSA,L] is to append new query to original query

RewriteEngine On
RewriteRule ^/viewer/(.*)/(.*)/(.*)/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?dlink=$1&_sid=$2&SynoToken=$3&ip=false&api=SYNO.FileStation.Download&version=1&method=download&mode=open&stdhtml=true [QSA,L]
RewriteRule ^/fbsharing/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?key=$1&api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/fbdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
# wfmdownload rule is for old version compatibility
RewriteRule ^/wfmdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/dar/(.*) /usr/syno/synoman/webman/modules/SystemInfoApp/DataAnalysis.cgi?path=$1 [QSA,L]
</IfModule>

<IfDefine FrameOptions>
Include conf/extra/httpd-frameOptions.conf-sys
</IfDefine>

The output of S97apache-sys.sh restart is indeed interesting.
I drilled down to /usr/syno/etc/rc.d to see if the file is in there. It is!
However running "S97apache-sys.sh restart" returns a very weird error. See screenshot below.
Thank you for your continuous support.
 

Anhänge

  • Screen Shot 2013-11-24 at 9.53.15 PM.png
    Screen Shot 2013-11-24 at 9.53.15 PM.png
    61,2 KB · Aufrufe: 25

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
use ./S97apache-sys.sh restart and post output.

For some unknown reason, the changes by Init_3rdparty are not written in the apache config. I must investigate more @home, i'll get back.
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
DiskStation_II> ./S97apache-sys.sh restart
./S97apache-sys.sh: system httpd stopped
Start System Apache Server ..... -DSSL -f /usr/syno/apache/conf/httpd.conf-sys
./S97apache-sys.sh: system httpd started
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
I test it on my Test DS over and over again, in no situation I got the same behavior as you.

I can think of the following reasons:
- Either the Apache has an error at startup, but does not show it and restores the original state automatically. In this case you would get a DSM notification.
- It could also be another application that cancel the changes. (rather unlikely but possible)
- If the commands in the scripts have prefixed with no absolute paths and there are differences between Synology and /opt commands (eg grep).

Can you post me which apps you have installed.
Have you installed ipkg and some tools like grep?
The command which grep tells you what you have in use

We now test whether the script is running successfully in a user environment.

  • stop Init_3rdparty via package center
  • log via telnet or ssh as root with password from admin into your ds
  • exec the following command:
    Rich (BBCode):
    /var/packages/Init_3rdparty/scripts/start-stop-status start
    Please also post any messages
  • exec the following command:
    Rich (BBCode):
    tail -n 20 /usr/syno/apache/conf/httpd.conf-sys
    and post output
If there is the following code at the end of the output, then the script works in user environment.
Rich (BBCode):
#step1
# ------------------------------------------------------------------------------------
# Integration of Init_3rdparty
#
 Listen 5002
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module /lib/libphp5.so
AddType application/x-httpd-php .php

RewriteEngine On
RewriteCond %{SERVER_PORT} =5002
RewriteRule ^/$ http://%{SERVER_NAME}:5000/webman/3rdparty/Init_3rdparty/index.php [R]

Include /usr/syno/synoman/webman/3rdparty/Init_3rdparty/php.conf
# ------------------------------------------------------------------------------------
#step1

You can now restart the sys-apache with
Rich (BBCode):
/usr/syno/etc/rc.d/S97apache-sys.sh restart
If the script is running in the user environment, then it is up to 99% on the paths to the commands or the commands themselves.
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Thank you for your continuous support.
Here is the output of the commands:

DiskStation_II> which grep
/bin/grep
DiskStation_II>

Then I stopped Init_3rdparty and run:

DiskStation_II> /var/packages/Init_3rdparty/scripts/start-stop-status start
DiskStation_II>

No output from this command.

Then

DiskStation_II> tail -n 20 /usr/syno/apache/conf/httpd.conf-sys

<IfModule rewrite_module>
#for demo site
Include conf/extra/*demo-site.conf

# the request param will not be matched in the rule
# [QSA,L] is to append new query to original query

RewriteEngine On
RewriteRule ^/viewer/(.*)/(.*)/(.*)/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?dlink=$1&_sid=$2&SynoToken=$3&ip=false&api=SYNO.FileStation.Download&version=1&method=download&mode=open&stdhtml=true [QSA,L]
RewriteRule ^/fbsharing/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?key=$1&api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/fbdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
# wfmdownload rule is for old version compatibility
RewriteRule ^/wfmdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/dar/(.*) /usr/syno/synoman/webman/modules/SystemInfoApp/DataAnalysis.cgi?path=$1 [QSA,L]
</IfModule>

<IfDefine FrameOptions>
Include conf/extra/httpd-frameOptions.conf-sys
</IfDefine>
DiskStation_II>

I don't see the required code at the end of the file.
Restarted apache


DiskStation_II> /usr/syno/etc/rc.d/S97apache-sys.sh restart
/usr/syno/etc/rc.d/S97apache-sys.sh: system httpd stopped
Start System Apache Server ..... -DSSL -f /usr/syno/apache/conf/httpd.conf-sys
/usr/syno/etc/rc.d/S97apache-sys.sh: system httpd started
DiskStation_II>

Thanks again!!
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
very strange, ok

can you show me a screenshot of the Init_3rdparty log (copy & paste don't work there), go to package center - Installed - click on package Init 3rdparty and then click on View Log

now we execute the 2 necessary commands from the start-stop-status script by hand

  • stop Init_3rdparty via package center
  • log via telnet or ssh as root with password from admin into your ds
  • exec the following commands line by line and pay attention on displayed warning or error messages:
    Rich (BBCode):
    test -f /usr/syno/apache/conf/httpd.conf-sys.bak || cp /usr/syno/apache/conf/httpd.conf-sys /usr/syno/apache/conf/httpd.conf-sys.bak
    info: the above line create a backup of httpd.conf-sys if not exists
    
    grep "Listen 5002" /usr/syno/apache/conf/httpd.conf-sys.bak >/dev/null || (cat /usr/syno/synoman/webman/3rdparty/Init_3rdparty/step1.conf >>/usr/syno/apache/conf/httpd.conf-sys && echo "step1.conf added" >>/var/packages/Init_3rdparty/log)
    info: the above line append the contents of file "/usr/syno/synoman/webman/3rdparty/Init_3rdparty/step1.conf httpd.conf-sys" at the end of file "/usr/syno/apache/conf/httpd.conf-sys" if not exists
    
    tail -n 20 /usr/syno/apache/conf/httpd.conf-sys
    info: the above line show you the last 20 rows of file /usr/syno/apache/conf/httpd.conf-sys
  • inspect the Init_3rdparty log in package center
 

neikt

Benutzer
Mitglied seit
23. Nov 2013
Beiträge
16
Punkte für Reaktionen
0
Punkte
0
Dear QTip, here are the results.
I assume that these 3 command should be run with Init_3rdparty stopped via Package Centered.

1. test -f /usr/syno/apache/conf/httpd.conf-sys.bak || cp /usr/syno/apache/conf/httpd.conf-sys /usr/syno/apache/conf/httpd.conf-sys.bak

No error or output.

2. grep "Listen 5002" /usr/syno/apache/conf/httpd.conf-sys.bak >/dev/null || (cat /usr/syno/synoman/webman/3rdparty/Init_3rdparty/step1.conf >>/usr/syno/apache/conf/httpd.conf-sys && echo "step1.conf added" >>/var/packages/Init_3rdparty/log)

No error or output.

3. tail -n 20 /usr/syno/apache/conf/httpd.conf-sys

<IfModule rewrite_module>
#for demo site
Include conf/extra/*demo-site.conf

# the request param will not be matched in the rule
# [QSA,L] is to append new query to original query

RewriteEngine On
RewriteRule ^/viewer/(.*)/(.*)/(.*)/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?dlink=$1&_sid=$2&SynoToken=$3&ip=false&api=SYNO.FileStation.Download&version=1&method=download&mode=open&stdhtml=true [QSA,L]
RewriteRule ^/fbsharing/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?key=$1&api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/fbdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
# wfmdownload rule is for old version compatibility
RewriteRule ^/wfmdownload/(.*) /usr/syno/synoman/webfm/webUI/file_download.cgi?api=SYNO.FileStation.Download&version=1&method=download&mode=download&stdhtml=true [QSA,L]
RewriteRule ^/dar/(.*) /usr/syno/synoman/webman/modules/SystemInfoApp/DataAnalysis.cgi?path=$1 [QSA,L]
</IfModule>

<IfDefine FrameOptions>
Include conf/extra/httpd-frameOptions.conf-sys
</IfDefine>


The first screenshot shows the Init_3rdparty log before stopping the service and running the commands.
Synology DiskStation - DiskStation_II (1).png
The second screenshot shows the log after stopping the service, running the 3 commands and then starting back the service. i.e. the commands were run between 18:02 and 18:10.
Synology DiskStation - DiskStation_II (2).png
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat