Download - Failed to establish network connection

Post your questions about using our Download Station here.

Moderators: Synology Inc, Honorary Moderator

Download - Failed to establish network connection

Postby byron99 » Thu Sep 04, 2008 5:40 pm

It works for awhile.
Somehow, it just failed and won't take any torrent seed anymore.
I have been reboot and restart everything (router, modem, DS107+), but still the same.
Any idea how to fix the problem?

Image

Here is the info:

Server name xxxxx
Serial number xxxxx
Model name DS107+
Total Physical Memory 128 MB
Firmware version DSM 2.0-0640
System time Fri Sep 5 00:38:53 2008
Operating time 4:0:32
byron99
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Sep 04, 2008 5:18 pm

Re: Download - Failed to establish network connection

Postby byron99 » Thu Sep 04, 2008 6:00 pm

More info after telnet....i'm not sure what these means....

WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
WARNING: nonstandard use of \\ in a string literal at character 395
HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
LOG: server process (PID 3336) was terminated by signal 11
LOG: terminating any other active server processes
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the curre
nt transaction and exit, because another server process exited abnormally and po
ssibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat yo
ur command.
LOG: all server processes terminated; reinitializing
LOG: database system was interrupted at 2008-09-05 01:03:53 CST
LOG: checkpoint record is at 0/D6AEC9EC
LOG: redo record is at 0/D6AEC9EC; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/23202085; next OID: 115185
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 0/D6AECA34
LOG: record with zero length at 0/D6AECBC4
LOG: redo done at 0/D6AECB9C
LOG: database system is ready
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
WARNING: 2 attrdef record(s) missing for rel sysconf
WARNING: unexpected attrdef record found for attr 531 of rel download_queue
WARNING: 8 attrdef record(s) missing for rel download_queue
LOG: unexpected EOF on client connection
byron99
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Sep 04, 2008 5:18 pm

Re: Download - Failed to establish network connection (SOLVED)

Postby byron99 » Tue Sep 09, 2008 3:53 pm

Solved by Support.

Thank you for your feedback.

Here is the solution.

It seems that download database is corrupted. Please use the following commands via telnet to try working around this issue:

/usr/syno/etc/rc.d/S20pgsql.sh restart
su -l admin
/usr/syno/pgsql/bin/dropdb download
exit
/usr/syno/etc/rc.d/S25download.sh restart
byron99
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Sep 04, 2008 5:18 pm

Re: Download - Failed to establish network connection

Postby tchrin » Sun Oct 12, 2008 8:12 am

I have the same problem.

I logged in with my admin/admin password
Executed the first command line
Apparently I don't have the root privileges !

SrvChrin login: admin
Password:


BusyBox v1.1.0 (2008.09.19-18:57+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

SrvChrin> /usr/syno/etc/rc.d/S20pgsql.sh restart
su: This applet requires root priviledges!
SrvChrin>
tchrin
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Jul 19, 2007 2:05 pm

Re: Download - Failed to establish network connection

Postby HarryPotter » Sun Oct 12, 2008 11:32 am

login as "root" with same password as for admin.
**Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!**

DS408 / DSM Beta 3.0 1285 / 4 x Seagate ST31000340AS RAID 0 / SSODS 4.9.1 / SqueezeboxServer 7.5.1 / 2 x Squeezebox 3 + Boom / Rapsody N35
DS109+ / DSM Beta 3.0 1285 / Samsung HD154UI
DS207+ / DSM Beta 3.0 1285 / 2 x Hitachi HDS721010KLA330 RAID 0
DS-106x / DSM Beta 3.0 1285 (from DS107) / WDC WD5000KS-00MNB0

FRITZ!Box Fon WLAN 7570 VDSL
APC Smart UPS 750
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 6136
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Download - Failed to establish network connection

Postby tchrin » Sun Oct 12, 2008 2:23 pm

Problem solved.
A power outage had damaged the download database.
Thanks
tchrin
I'm New!
I'm New!
 
Posts: 5
Joined: Thu Jul 19, 2007 2:05 pm

Re: Download - Failed to establish network connection

Postby L&MP » Thu Jan 29, 2009 1:15 am

The above describes the exact problem we've had, including a recent power outage.

However, when I tried the solution via telnet, the problem didnt clear itself up. I still cant get the download redirector to find our new DS207+.

That is to say, it locates the unit and prompts for a password (and will notice if an incorrect one is given)... yet nevertheless fails to connect to the machine.


I've set up the download redirector from the main (port 5000) interface, even switched its location from disk 2 to disk 1 and back to try to refresh things. From that end no problems are detected or reported... its only when I actually try to connect through the redirector.


Here is a transcript of the telnet session when I attempted the fix above:





Thlayli login: root
Password:


BusyBox v1.1.0 (2009.01.13-03:06+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Thlayli> /usr/syno/etc/rc.d/S20pgsql.sh restart
warning: cannot change to home directory
server stopped
Thlayli> LOG: could not create unrecognized address family 10 socket: Address f
amily not supported by protocol
LOG: database system was shut down at 2009-01-28 18:55:10 EST
LOG: checkpoint record is at 0/8A6BDC
LOG: redo record is at 0/8A6BDC; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/1875; next OID: 16810
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system is ready

Thlayli> su -l admin
warning: cannot change to home directory


BusyBox v1.1.0 (2009.01.13-03:06+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Thlayli> /usr/syno/pgsql/bin/dropdb download
DROP DATABASE
Thlayli> exit
Thlayli>
Thlayli> /usr/syno/etc/rc.d/S25download.sh restart
Stopping scheduler ...
FATAL: database "download" does not exist
FATAL: database "download" does not exist
vm.min_free_kbytes = 4096
volume : 2
warning: cannot change to home directory
FATAL: database "download" does not exist
psql: FATAL: database "download" does not exist
Update download queue table and set all pid to -1
warning: cannot change to home directory
FATAL: database "download" does not exist
psql: FATAL: database "download" does not exist
warning: cannot change to home directory
CREATE DATABASE
warning: cannot change to home directory
BEGIN
CREATE TABLE
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "user_setting_pke
y" for table "user_setting"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "user_setting_pke
y" for table "user_setting"
CREATE TABLE
NOTICE: CREATE TABLE will create implicit sequence "download_queue_task_id_seq"
for serial column "download_queue.task_id"
NOTICE: CREATE TABLE will create implicit sequence "download_queue_task_id_seq"
for serial column "download_queue.task_id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "download_queue_p
key" for table "download_queue"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "download_queue_p
key" for table "download_queue"
CREATE TABLE
CREATE INDEX
CREATE FUNCTION
CREATE TRIGGER
CREATE TRIGGER
COMMIT
Update upload_rate in download_queue table to test upload_rate
warning: cannot change to home directory
UPDATE 0
Update seeders in download_queue table to test seeders/leechers
warning: cannot change to home directory
UPDATE 0
set torrent task_flags in download_queue
warning: cannot change to home directory
UPDATE 0
warning: cannot change to home directory
UPDATE 0
Starting Download Station scheduler daemon ...
vm.min_free_kbytes = 8192
Thlayli>


=============================================================================

I see some troubling things in there (e.g. that there is no "download" directory, despite the fact that I set up and activated the download redirector on the main interface page)... but I can't decode all of the technospeak well enough to know how to procede from here...
L&MP
I'm New!
I'm New!
 
Posts: 1
Joined: Thu Jan 29, 2009 12:59 am

Re: Download - Failed to establish network connection

Postby mumie » Sat Jun 27, 2009 12:34 am

I try use only first line and cube working.

/usr/syno/etc/rc.d/S20pgsql.sh restart

Thanx

My telnet log:
coloring messages are significant

TOMSA_SERVER> LOG: could not create unrecognized address family 10 socket: Addr
ess family not supported by protocol
LOG: database system was interrupted at 2009-06-25 00:38:09 CEST
LOG: checkpoint record is at 0/3D124858
LOG: redo record is at 0/3D124858; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/5098454; next OID: 57652
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system was not properly shut down; automatic recovery in progress
LOG: record with zero length at 0/3D1248A8
LOG: redo is not required
LOG: database system is ready
mumie
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Dec 18, 2008 11:57 am

Re: Download - Failed to establish network connection

Postby wilson » Tue Jun 30, 2009 2:34 am

I have the same error message when I log in to Download Station.

What I had done was transfer the hdd from the old DS106e to a new DS109j and applied the firmware.

I tried the 3 commands but had different results (I logged in using root):

/usr/syno/etc/rc.d/S20pgsql.sh restart
This one prompted that I should be the user who created. So I su admin and it ran. But it complained that the database was old.

/usr/syno/pgsql/bin/dropdb download
don't recall seeing any errors.

/usr/syno/etc/rc.d/S25download.sh restart
some error messages about not being able to find home and download.

I'm at work now, didn't have the telnet logs with me...

Would it be easier for me to wipe out all those @ directories in /volume1 and restart from fresh? I do have data in the hdd which I intend to keep...
wilson
I'm New!
I'm New!
 
Posts: 2
Joined: Tue Aug 12, 2008 5:04 pm

Re: Download - Failed to establish network connection

Postby tskriver » Sat Jul 25, 2009 11:38 am

I am having the same problem.
I just updated to DSM 2.2-0914, but I don't think this is the problem.
There were no active downloads when updating, only two completed on the list.
Suddenly, my database is also corrupt.

I've tried the above, but I think I have more severe problems.
Can anyone help me out on this?

- tommie

EDIT: According to the below, there might be file/disk errors. Now, my PhotoStation also fails to initialize, so I ran a S.M.A.R.T. test (quick).
Unfortunately, it stated an abnormal status of my SpinPoint F1 and suggested replacement of the disk.
It's funny (more or less ironic), it has run just less than a year without any problems, and now this?

- Look at this:

DiskStation> /usr/syno/etc/rc.d/S25download.sh restart
Stopping scheduler ...
vm.min_free_kbytes = 4096
warning: cannot change to home directory
FATAL: database "download" does not exist
psql: FATAL: database "download" does not exist
Update download queue table and set all pid to -1
warning: cannot change to home directory
FATAL: database "download" does not exist
psql: FATAL: database "download" does not exist
warning: cannot change to home directory
ERROR: could not read file "base/1/2675": Input/output error
STATEMENT: CREATE DATABASE download;

createdb: database creation failed: ERROR: could not read file "base/1/2675": I
nput/output error
Failed to create database
DiskStation>
tskriver
I'm New!
I'm New!
 
Posts: 4
Joined: Sat Jul 25, 2009 10:31 am

Re: Download - Failed to establish network connection

Postby ograndhenry » Thu Aug 06, 2009 11:38 am

Hi there,

Same issue with my DS408. So I updated to firmware DSM 2.1-0844 a few weeks ago but it didn't solve the issue.

As stated in some posts here, I just entered the very first command line in a telnet session (connecting as root with the DS408 admin pwd) and it solved the issue on my DS408.

Command line entered:

/usr/syno/etc/rc.d/S20pgsql.sh restart

Here is my telnet log:

DS408-FROG login: root
Password:


BusyBox v1.1.0 (2009.04.21-13:01+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

DS408-FROG> /usr/syno/etc/rc.d/S20pgsql.sh restart
warning: cannot change to home directory
pg_ctl: PID file "/var/tmp/postmaster.pid" does not exist
Is server running?
starting server anyway
DS408-FROG> LOG: could not create unrecognized address family 10 socket: Addres
s family not supported by protocol
LOG: database system was interrupted at 2009-08-02 18:53:23 CEST
LOG: checkpoint record is at 0/1A1DEBD0
LOG: redo record is at 0/1A1DEBD0; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/1090173; next OID: 33247
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system was not properly shut down; automatic recovery in progress
LOG: record with zero length at 0/1A1DEC20
LOG: redo is not required
LOG: database system is ready
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection
LOG: unexpected EOF on client connection

I get the 'unexpected EOF msg until the end of time, so I did CTRL-C to get back to prompt)

Hope this helps with you!

Brgds,
Olivier
ograndhenry
I'm New!
I'm New!
 
Posts: 1
Joined: Thu Aug 06, 2009 11:29 am

Re: Download - Failed to establish network connection

Postby jonandel » Sat Sep 05, 2009 3:40 pm

I have exactly the same problem on my DS106j.
I have tried to use the suggested commands via telnet - but I get the same errors (at each stage) as L&MP.

I had thought it fixed the issue - but hey presto the next day, 'Failed to Establish a network connection' appears when using the web based Download manager; and the Windows Download Manager also has connection problems.

I've checked and rechecked my disk - but it always comes back 'normal'.
How is the download database being corrupted each time !?
DS106j
DS410
User avatar
jonandel
Trainee
Trainee
 
Posts: 11
Joined: Sun Jul 12, 2009 9:29 pm

Re: Download - Failed to establish network connection

Postby DSiata » Fri Sep 11, 2009 5:51 pm

Hi

I'm new DS409 user. I've the same problem like jonandel. Download Station does not work after restart since yesterday.
I've installed subversion yesterday, but I'm not sure it's related with the problem.

After restarting pgsql I'm able to connect with DSRedirector but scheduled jobs do not start.
When I drop db and restart download service I lost old jobs, but can schedule new one and it starts almost instantly.

Any suggestions?
DSiata
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Sep 11, 2009 5:29 pm

Re: Download - Failed to establish network connection

Postby jonandel » Sat Sep 12, 2009 9:37 am

Hi DSaita,

In the end I did a reset and re-load of the firmware to cure my problems (they weren't limited to the DLmanager). The clear and reset the DL database didn't work.

Heres the post that told me how to do a reset and re-install without formatting the drive (and therefore losing my data).

viewtopic.php?f=7&t=17100&start=0
DS106j
DS410
User avatar
jonandel
Trainee
Trainee
 
Posts: 11
Joined: Sun Jul 12, 2009 9:29 pm

Re: Download - Failed to establish network connection

Postby DSiata » Tue Sep 15, 2009 5:00 pm

Thanx jonandel.

Reinstalling FW helped. But I didn't setup subversion yet...
DSiata
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Sep 11, 2009 5:29 pm


Return to Download Station

Who is online

Users browsing this forum: No registered users and 2 guests