Media list always empty

Questions regarding using our product with a UPnP Digital Media Adaptor may be placed here

Media list always empty

Postby Furism » Sat Feb 11, 2012 3:24 pm

Hi,

I've got an older Synology DS207 running DSM 3.1. On it, I've got a rather large collection of mp3 (all legal), all stored under /volume1/music. There are about 110 GB worth of mp3 and FLAC files. Media Server is enabled, and set up as such:

Image

However, when I try to connect to that UPnP device through any UPnP-compliant tool (I've tried Windows Media Player and XBMC), but no files are found. I tried re-indexing but that doesn't solve anything. I've enabled the log, but it's not in a format that Notepad++ (or Wordpad or regular Notepad) can read.

Note that I also have a DS407, where some videos are stored, and it works just fine.

Is there anything I can do to solve that situation?
Furism
I'm New!
I'm New!
 
Posts: 8
Joined: Wed Dec 28, 2011 10:16 am

Re: Media list always empty

Postby Taxman » Mon Feb 13, 2012 12:41 pm

If you have customized mime types enabled disable that, it's on DMA compatibility tab I think.

This will erase the index of the UPnP server (files not affected) and restart the service
Step-1) Use the Synology Assistant to find out the IP of the NAS.

Step-2) Login to the DSM - go to control panel\terminal and enable SSH service.

Step-3) Download Putty (if on Windows) or use Terminal (if on OSX) and run it, enter in the IP address, say yes when it asks about key.

Step-4) Login as root & use your admin password when prompted (you need a password set if you have none).

Step-5) copy and paste in the following commands then press enter (right click to paste in putty).
mkdir /var/services/homes
mkdir /var/services/homes/admin
chown admin: /var/services/homes/admin
echo 0.0>`/usr/syno/bin/servicetool --get-service-path pgsql`/PG_VERSION
/usr/syno/etc/rc.d/S20pgsql.sh stop
/usr/syno/etc/rc.d/S20pgsql.sh start

Step-6) Close Putty and power off your NAS (hold down its power button it will beep signaling the power sequence or turn off via DSM GUI).

Step-7) Power on your NAS again.


If that doesn't work I'd contact Synology tech support directly, or contemplate switch over to Serviio DLNA server.

FYI XBMC can read the NAS over SMB so you don't really need UPnP for that application at least.
Taxman
Guru
Guru
 
Posts: 1423
Joined: Sun Mar 23, 2008 1:45 pm

Re: Media list always empty

Postby Furism » Mon Feb 13, 2012 3:58 pm

Thanks for the tip, that fixed it. Apparently some tables did not exist:

Code: Select all
Wyn> mkdir /var/services/homes
Wyn> mkdir /var/services/homes/admin
Wyn> chown admin: /var/services/homes/admin/
Wyn> echo 0.0>`/usr/syno/bin/servicetool --get-service-path pgsql`/PG_VERSION
Wyn> /usr/syno/etc/rc.d/S20pgsql.sh stop
Stopping PostgreSQL...
Wyn> /usr/syno/etc/rc.d/S20pgsql.sh start
Database version is not matched (0.0)
Removing old databases
Initial PostgreSQL database
Starting PostgreSQL...
Update blog_config table in blog db where config_id = 0 to test blog db existence
Update photo log table where log id = 0 to test db existence
psql: FATAL:  database "photo" does not exist
BEGIN
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:15: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_user_pkey" for table "photo_user"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:15: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "photo_user_username_key" for table "photo_user"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:31: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_share_pkey" for table "photo_share"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:31: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "photo_share_sharename_key" for table "photo_share"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:41: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_log_pkey" for table "photo_log"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:55: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_access_right_pkey" for table "photo_access_right"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:70: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_upload_right_pkey" for table "photo_upload_right"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:94: NOTICE:  CREATE TABLE will create implicit sequence "photo_image_id_seq" for serial column "photo_image.id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:94: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_pkey" for table "photo_image"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:94: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "photo_image_path_key" for table "photo_image"
CREATE TABLE
CREATE INDEX
CREATE INDEX
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:111: NOTICE:  CREATE TABLE will create implicit sequence "photo_comment_id_seq" for serial column "photo_comment.id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:111: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_comment_pkey" for table "photo_comment"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:123: NOTICE:  CREATE TABLE will create implicit sequence "video_comment_id_seq" for serial column "video_comment.id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:123: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "video_comment_pkey" for table "video_comment"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:134: NOTICE:  CREATE TABLE will create implicit sequence "video_desc_id_seq" for serial column "video_desc.id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:134: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "video_pkey" for table "video_desc"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:134: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "video_path_key" for table "video_desc"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:144: NOTICE:  CREATE TABLE will create implicit sequence "photo_config_config_id_seq" for serial column "photo_config.config_id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:144: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_config_pkey" for table "photo_config"
CREATE TABLE
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:153: NOTICE:  CREATE TABLE will create implicit sequence "common_config_config_id_seq" for serial column "common_config.config_id"
psql:/usr/syno/synoman/phpsrc/sql/photo.pgsql:153: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "common_config_pkey" for table "common_config"
CREATE TABLE
CREATE INDEX
COMMIT
Stop creating thumbnails ...
killall: synothumb: no process killed
killall: convert: no process killed
Removing all thumbnails of photo files...
Start recreating thumbnails ...
Update blog_config table in photo db where config_id = 0 to test blog tables existence
ERROR:  relation "blog_config" does not exist
1
BEGIN
NOTICE:  CREATE TABLE will create implicit sequence "blog_config_config_id_seq" for serial column "blog_config.config_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_config_pkey" for table "blog_config"
CREATE TABLE
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_module_pkey" for table "blog_module"
CREATE TABLE
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
NOTICE:  CREATE TABLE will create implicit sequence "blog_label_label_id_seq" for serial column "blog_label.label_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_label_pkey" for table "blog_label"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "blog_label_label_name_key" for table "blog_label"
CREATE TABLE
INSERT 0 1
NOTICE:  CREATE TABLE will create implicit sequence "blog_article_article_id_seq" for serial column "blog_article.article_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_article_pkey" for table "blog_article"
CREATE TABLE
INSERT 0 1
NOTICE:  CREATE TABLE will create implicit sequence "blog_article_label_article_label_id_seq" for serial column "blog_article_label.article_label_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_article_label_pkey" for table "blog_article_label"
CREATE TABLE
INSERT 0 1
NOTICE:  CREATE TABLE will create implicit sequence "blog_article_autosave_article_autosave_id_seq" for serial column "blog_article_autosave.article_autosave_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_article_autosave_pkey" for table "blog_article_autosave"
CREATE TABLE
NOTICE:  CREATE TABLE will create implicit sequence "blog_comment_comment_id_seq" for serial column "blog_comment.comment_id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "blog_comment_pkey" for table "blog_comment"
CREATE TABLE
COMMIT
photo_access_right_bak check OK.
photo_comment_bak check OK.
photo_config_bak check OK.
photo_image_bak check OK.
photo_log_bak check OK.
photo_share_bak check OK.
photo_upload_right_bak check OK.
photo_user_bak check OK.
video_comment_bak check OK.
video_desc_bak check OK.
Update photoImage table to test new table existence
UPDATE 0
Update email in photo_user table to test email existence
UPDATE 0
Update version in photo_image table to test version existence
UPDATE 0
Update photo_config table in photo db where config_id = 0 to test photo_config table existence
UPDATE 0
Update is_subdir in photo_share table to test new columns existence
UPDATE 0
Update photo_upload_right table in photo db to test photo_upload_right table existence.
Create create_time index on photo_image
ERROR:  relation "photo_image_create_time_idx" already exists
Create path index on photo_image
ERROR:  relation "photo_image_path_idx" already exists
Update media type table where type id = 0 to test db existence
psql: FATAL:  database "mediaserver" does not exist
BEGIN
NOTICE:  CREATE TABLE will create implicit sequence "music_id_seq" for serial column "music.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "music_pkey" for table "music"
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
NOTICE:  CREATE TABLE will create implicit sequence "playlist_id_seq" for serial column "playlist.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "playlist_pkey" for table "playlist"
CREATE TABLE
CREATE INDEX
NOTICE:  CREATE TABLE will create implicit sequence "photo_id_seq" for serial column "photo.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "photo_pkey" for table "photo"
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
NOTICE:  CREATE TABLE will create implicit sequence "video_id_seq" for serial column "video.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "video_pkey" for table "video"
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
NOTICE:  CREATE TABLE will create implicit sequence "directory_id_seq" for serial column "directory.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "directory_pkey" for table "directory"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "directory_path_key" for table "directory"
CREATE TABLE
CREATE INDEX
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "video_convert_pkey" for table "video_convert"
CREATE TABLE
CREATE INDEX
CREATE INDEX
COMMIT
Wyn>
Furism
I'm New!
I'm New!
 
Posts: 8
Joined: Wed Dec 28, 2011 10:16 am


Return to Streaming Multimedia Server

Who is online

Users browsing this forum: No registered users and 1 guest