[SOLVED] Multimedia/Photo/Music Station all broken

Please post your questions about using the web-based Multimedia, Photo, Music Stations here.

[SOLVED] Multimedia/Photo/Music Station all broken

Postby pwilson » Sun Jun 17, 2012 3:34 am

Re: Subject: Unable to open MSV2

When I attempt to access Multimedia Station or Photo Station or Music Station in my WebBrowser, it looks like it will load, but doesn't. I get nothing except a "white screen". Per the instructions from Schmaku, I checked several files, but all look good. I'm lost.

I tried to check the logs, but /var/log/messages is always 0 bytes.

All other WebUI's work. (connections to http://NAS-IP:8080/ load Web Server Setup setup screen, which proves that the /etc/init.d/Qthttpd.sh is running).



schumaku wrote:Patrick,

Check the include files were added for the respective services at the end of apache.conf, following the SSL module:

[~] # cat /etc/config/apache/apache.conf
...
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include /etc/config/apache/extra/httpd-vhosts-user.conf
Include /etc/config/apache/extra/apache-ssl.conf
Include /etc/config/apache/extra/apache-msv2.conf
Include /etc/config/apache/extra/apache-musicstation.conf
Include /etc/config/apache/extra/apache-photo.conf


Code: Select all
# tail -n 14 /etc/config/apache/apache.conf
<IfModule ssl_module>
   SSLRandomSeed startup builtin
   SSLRandomSeed connect builtin
</IfModule>
Include /etc/config/apache/extra/apache-ssl.conf
Include /etc/config/apache/extra/apache-dav.conf
Include /etc/config/apache/extra/httpd-vhosts-user.conf
Include /etc/config/apache/extra/httpd-ssl-vhosts-user.conf
Include /etc/config/apache/extra/apache-msv2.conf
Include /etc/config/apache/extra/apache-musicstation.conf
Include /etc/config/apache/extra/apache-photo.conf


It looks like your example.
I tried to review Apache logs files, but the logs all seem to be 0 bytes.

I also stopped and re-started "/etc/init.d/Qthttpd.sh"
No difference. Still get a "white screen" when I attempt to access Multimedia Station, Photo Station, or Music Station.

I have since upgraded to FW: 3.7.1

Issue persists.
Last edited by pwilson on Sun Jul 01, 2012 2:40 am, edited 1 time in total.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: 3.8.1 Build 20121205
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 3698
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Multimedia Station/Photo Station/Music Station all broke

Postby schumaku » Sun Jun 17, 2012 5:31 am

Something broken or mismatched - libraries, php & co., ...

Any insight on:

[~] # cat /mnt/ext/opt/apache/logs/error_log
...

...or adding ie. a phpinfo.php ot the Web server share (ie. /share/Qweb or share/Web ):

[~] # ls -ls /share/Qweb/phpinfo.php
8 -rwxrwx--- 1 admin administ 21 Oct 29 2009 /share/Qweb/phpinfo.php*

[~] # cat /share/Qweb/phpinfo.php
<?PHP
phpinfo ();
?>

...and then call from a browser http://[NAS]/phpinfo.php (assuming the Web server is on port 80 - in your post it looks like 8080). In case it fails, re-check protection, or the error log from above...

Wild guessing now.
User avatar
schumaku
Guru
 
Posts: 22164
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Multimedia Station/Photo Station/Music Station all broke

Postby pwilson » Sun Jun 17, 2012 6:36 am

schumaku wrote:Something broken or mismatched - libraries, php & co., ...

Any insight on:

[~] # cat /mnt/ext/opt/apache/logs/error_log


/mnt/ext/opt/apache/logs/error_log = 0 bytes.

however:

Code: Select all
cat /mnt/ext/opt/apache/logs/access_log
221.7.54.194 - - [16/Jun/2012:14:37:12 -0700] "GET /" 400 530
10.77.13.1 - - [16/Jun/2012:14:40:05 -0700] "GET /photostation/album.php?foldername=%2FPictures/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:14:40:08 -0700] "GET /favicon.ico HTTP/1.1" 404 280
10.77.13.1 - - [16/Jun/2012:14:40:08 -0700] "GET /favicon.ico HTTP/1.1" 404 280
10.77.13.1 - - [16/Jun/2012:14:40:40 -0700] "GET /photostation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:14:41:58 -0700] "GET /musicstation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:14:46:53 -0700] "GET /musicstation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:14:46:54 -0700] "GET /favicon.ico HTTP/1.1" 404 280
10.77.13.1 - - [16/Jun/2012:14:46:54 -0700] "GET /favicon.ico HTTP/1.1" 404 280
10.77.13.1 - - [16/Jun/2012:14:47:31 -0700] "GET /musicstation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:14:54:12 -0700] "GET /photostation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:15:08:17 -0700] "GET /photostation/ HTTP/1.1" 200 -
10.77.13.1 - - [16/Jun/2012:15:08:24 -0700] "GET /" 400 530
10.77.13.1 - - [16/Jun/2012:15:08:24 -0700] "GET /" 400 530
10.77.13.1 - - [16/Jun/2012:15:08:24 -0700] "GET /" 400 530


This is really weird though, as 10.77.13.1 is my router. NAS lives at 10.77.13.145.

schumaku wrote:...

...or adding ie. a phpinfo.php ot the Web server share (ie. /share/Qweb or share/Web ):

[~] # ls -ls /share/Qweb/phpinfo.php
8 -rwxrwx--- 1 admin administ 21 Oct 29 2009 /share/Qweb/phpinfo.php*

[~] # cat /share/Qweb/phpinfo.php



It didn't exist in /share/Qweb, (nor in /share/Web :twisted: )
I created it as:

Code: Select all
<?PHP
phpinfo ();
?>


schumaku wrote:...and then call from a browser http://[NAS]/phpinfo.php (assuming the Web server is on port 80 - in your post it looks like 8080). In case it fails, re-check protection, or the error log from above...

Wild guessing now.


Loading gave me a very long listing of useful looking information. Unfortunately I don't know what I'm reading.

Patrick.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: 3.8.1 Build 20121205
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 3698
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Multimedia Station/Photo Station/Music Station all broke

Postby schumaku » Mon Jun 18, 2012 3:29 am

pwilson wrote:This is really weird though, as 10.77.13.1 is my router. NAS lives at 10.77.13.145.


Version 1: You used the DDNS name and connected through the router WAN IP.
Version 2: Somebody from the Internet connected to the service, but the router NAT set-up is not apprpriate, and does "hide" all addreses on the Internet.
User avatar
schumaku
Guru
 
Posts: 22164
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Multimedia Station/Photo Station/Music Station all broke

Postby pwilson » Wed Jun 20, 2012 11:12 pm

schumaku wrote:
pwilson wrote:This is really weird though, as 10.77.13.1 is my router. NAS lives at 10.77.13.145.


Version 1: You used the DDNS name and connected through the router WAN IP.
Version 2: Somebody from the Internet connected to the service, but the router NAT set-up is not apprpriate, and does "hide" all addreses on the Internet.


In desparation, I did a manual firmware upgrade, in hopes that it would replace the files necessary to get this working. No change. Issue persists.
I wish I knew what is going on with this. I'm suspecting file permissions issues, but I can't seem to find anything wrong.

As a long time Linux user I'm used to checking log files to see what is going on, but there doesn't seem to be any logging enabled.

Code: Select all
[/etc/config/apache/extra] # cd /mnt/ext/opt/apache/logs/
[/mnt/ext/opt/apache/logs] # ll
drwxr-xr-x    3 admin     administ     4.0k Jun 19 23:04 ./
drwxr-xr-x    9 admin  administ     4.0k Jun 19 23:03 ../
-rw-r--r--    1 admin     administ        0 Jun 19 23:04 access_log
-rw-r--r--    1 admin     administ        0 Jun 19 23:04 error_log
-rw-r--r--    1 admin     administ        5 Jun 19 23:04 httpd.pid
-rw-r--r--    1 admin     administ        0 Jun 19 23:04 ssl_request_log
drwxr-xr-x    2 admin     administ     4.0k Jun 19 23:04 ssl_scache/


This is driving me nuts. I'm running out of ideas.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: 3.8.1 Build 20121205
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 3698
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Multimedia Station/Photo Station/Music Station all broke

Postby Glimmer » Thu Jun 21, 2012 12:17 pm

I had been running into this porblem too and had read everything and tried everythign to fix this but for the most simple...

I discovered my isp blocks port 80.

I changed my webservice from port 80 to 5000 < but use whatever
I changed my port forwarding on my router

for good measure I also republished my services under mycloudnas

Fixed all external issues I had - Qmobile / Multimedia Station / Photo Station / Music Station in the 1 hit
Glimmer
New here
 
Posts: 3
Joined: Thu Jun 21, 2012 12:11 pm
NAS Model: TS-401T

Re: Multimedia Station/Photo Station/Music Station all broke

Postby schumaku » Thu Jun 21, 2012 8:35 pm

Glimmer wrote:I discovered my isp blocks port 80.
Nice find - but not QNAPs mistake sosme (very few) ISP do stuid things. Pay them only haf of the bill, becaue they provide you just half of a service.

Patrick's Web server on it's own is perfectly working and reachable over the network.
User avatar
schumaku
Guru
 
Posts: 22164
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Multimedia Station/Photo Station/Music Station all broke

Postby pwilson » Sun Jul 01, 2012 2:38 am

schumaku wrote:
Glimmer wrote:I discovered my isp blocks port 80.
Nice find - but not QNAPs mistake sosme (very few) ISP do stuid things. Pay them only haf of the bill, becaue they provide you just half of a service.

Patrick's Web server on it's own is perfectly working and reachable over the network.


I got so frustrated by this issue, that I simply did an "advanced system reset", and started again. This resolved the issue for me, however, because I did so, there is no way to diagnose what the original issue was caused by.

Anyway, this issue is resolved, so I am marking this thread "[SOLVED}" even though the solution I used was probably "overkill". Thank you to everyone, especially "schmaku", who attempted to help me resolve this issue. I appreciate the assistance offered, even if I resolved it in my rather drastic measures.

Patrick.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: 3.8.1 Build 20121205
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 3698
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: [SOLVED] Multimedia/Photo/Music Station all broken

Postby marbrogar » Thu Aug 09, 2012 3:02 am

First, sorry this is my first post and I didn´t found my problem anywhere in the forum so I apologize if it´s misplaced or already answered.

After I enable the Multimedia Station, Photo or music, when I click in each link I get the html/php code as the result page instead the page itself

Ej:
<?php
define('IGNORE_AUTH',true);
require('api/libs/inc_common.php');

//update user
$EZ_CLASS = new EZClass($DB,$dbTables);
$UserDB_UPDATE = $EZ_CLASS->getCfg("UserDB_UPDATE");
if($UserDB_UPDATE != "Done"){
if(checkOneField("email", $dbTables['user'])){
$EZ_CLASS->setCfg("UserDB_UPDATE", "Done");
}
else if($dbhandle = sqlite_open(MS_CONFIG_FOLDER . "/" . MS_DB_NAME,0666,$dberrorMessage)){
$sqlcreate = "CREATE TABLE TEMPUSER (".
"usr_id INTEGER(8),".
"account VARCHAR(32),".
"fullname VARCHAR(64),".
"password VARCHAR(32),".
"description VARCHAR(128),".
"blocked INTEGER,".
"is_admin INTEGER,".
"email VARCHAR(255),".
"user_group VARCHAR(20),".
"create_date INTEGER(10),".
"remote_id VARCHAR(64),".
"remote_type VARCHAR(10),".
"ap_privilege VARCHARE(40),".
"x_attr VARCHARE(40),".
"update_date INTEGER(10)".
");";
sqlite_exec($dbhandle, $sqlcreate);

$sqlselect = "INSERT INTO TEMPUSER(usr_id,account,password,description,blocked,is_admin,create_date,update_date) SELECT usr_id,account,password,description,blocked,is_admin,create_date,update_date FROM ms_user ";
sqlite_exec($dbhandle, $sqlselect);

$sqldrop = "drop TABLE ms_user";
sqlite_exec($dbhandle, $sqldrop);

$sqlcreate = "CREATE TABLE ms_user (".

The page continue like this, only paste an example from the first lines.

Anybody knows why is it? Download station and web server works fine.

Thanks in advace
marbrogar
First post
 
Posts: 1
Joined: Thu Aug 09, 2012 2:41 am
NAS Model: TS-212

Re: [SOLVED] Multimedia/Photo/Music Station all broken

Postby schumaku » Sat Aug 11, 2012 3:27 am

Your Web server is delivering PHP code as text - instead of interpreting it. Afraid, we need the shell. Ensure SSH service in enable in the NAS, use the "Function search" in case.

Login on the NAS by SSH from your computer (Windows: puTTY, OS X Terminal app: ä ssh admin@[NAS-IP-address]) using the admin credentials.

Then you can enter the commands (the [~] shows just the currecnt directory, the # is the prompt.

Lets reset the Web server configuration file, the php.ini, then restart the NAS Web server:

[~] # cp /etc/default_config/apache.conf /etc/config/apache/apache.conf
[~] # cp /etc/default_config/php.ini /etc/config/php.ini
[~] # /etc/init.d/Qthttpd.sh restart
Shutting down Qthttpd services: Qthttpd.
apache: Could not reliably determine the server's fully qualified domain name, using 10.10.1.116 for ServerName
Apache httpd is stopped.
Starting Qthttpd services:Apache logs have been cleaned.
[~] #

Now lets test php:

[~] # /mnt/ext/opt/apache/bin/php -v
PHP 5.3.14 (cli) (built: Aug 9 2012 03:12:09)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
[~] #

These mesages are normal. Post the output if things don't work straight.

Code: Select all
<?php
phpinfo();
?>


Copy this text to a file named ie. phpinfo.php and storeit on your Web share. Call it from the Web browser (substitute [NAS] by the NAS LAN IP address):

http://[NAS]/phpinfo.php
User avatar
schumaku
Guru
 
Posts: 22164
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro


Return to Multimedia Station, Photo Station, Music Station

Who is online

Users browsing this forum: No registered users and 2 guests