New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

A PHP error was encountered

Got problems with your B2 or B3? Share and get helped!
Post Reply
HeSitated
Posts: 30
Joined: 26 Jun 2009, 12:36
Location: Ede, The Netherlands

A PHP error was encountered

Post by HeSitated »

This morning i'm getting an error if i go to the download page:
A PHP error was encountered
Severity: warning
Message: stream_socket_client()[function.stream-socket-client]:unable to connect to unix:///tmp/ftdeamon (Connection refused)
Filename: ftd/ipc.php
Line number: 33
I don't know if it has something to do with it, but yesterday i updated my B2.

What is the problem?
And how do i resolve it? :|
RobV
Posts: 34
Joined: 05 Oct 2008, 05:48

Re: A PHP error was encountered

Post by RobV »

Hi HeSitated,

Maybe you had a torrent download active while updating?
Anyhow, the issue and a solution have been discussed in the forum before.
Please check: http://forum.excito.net/viewtopic.php?p=6734#p6734

RobV
HeSitated
Posts: 30
Joined: 26 Jun 2009, 12:36
Location: Ede, The Netherlands

Re: A PHP error was encountered

Post by HeSitated »

Hi RobV,
RobV wrote: Maybe you had a torrent download active while updating?
Nope, the update i had done the day before. The day it crashed, i just added a torrent...
RobV wrote: Anyhow, the issue and a solution have been discussed in the forum before.
Thanks.
There is no ssh alternative?
Then you could write a script that:
  • stop the process
  • move the files
  • start the process again
  • move the files back
RobV
Posts: 34
Joined: 05 Oct 2008, 05:48

Re: A PHP error was encountered

Post by RobV »

Hi HeSitate,

Most probably it is possible, but I'm not that into Linux...
The most essential part of the trick is that the 'downloads' folders get cleaned up completely. The downloader service should be inactive during the cleaning.

RobV
kfudd
Posts: 45
Joined: 17 Nov 2008, 16:35

Re: A PHP error was encountered

Post by kfudd »

Yes, there is a way to fix it from the Web GUI. Do the following:

- Log in as the user that caused the FTD to crash.
- Choose 'File Manager' from the links at the top.
- Delete the 'torrents' folder by checking it and choosing 'Delete' from the drop down at the bottom.
- Recreate the 'torrents' folder using the 'Create Folder' button at the bottom, use the default permissions.
- Log off.
- Login as the 'admin' user.
- Click the 'Services' link at the top,
- Uncheck 'Up and Downloads' at the bottom.
- Click the 'Update' button.
- Check the 'Up and Downloads' at the bottom.
- Click the 'Update' button.
- Log off.

Now the problem should be gone.
HeSitated
Posts: 30
Joined: 26 Jun 2009, 12:36
Location: Ede, The Netherlands

Re: A PHP error was encountered

Post by HeSitated »

Hi kfudd,
kfudd wrote: Yes, there is a way to fix it from the Web GUI.
Thanks, i've read that in the link above.

But i would like to do it in a script, i can copy and/or remove files and folders.

But i do not know which proces to stop, how to do it and how to start it again. :oops:

Grtz
asparak
Posts: 173
Joined: 08 Jun 2009, 07:38

Re: A PHP error was encountered

Post by asparak »

/etc/init.d/filetransferdaemon stop might be a good place to start
kfudd
Posts: 45
Joined: 17 Nov 2008, 16:35

Re: A PHP error was encountered

Post by kfudd »

Oh sorry. :)

You can start / stop / restart the FTD from the root account as follows:

/etc/init.d/ftd start
/etc/init.d/ftd stop
/etc/init.d/ftd restart
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Re: A PHP error was encountered

Post by tor »

The service script is renamed in the latest upgrade.

To stop the downloader do:

Code: Select all

/etc/init.d/filetransferdaemon stop
start it again:

Code: Select all

/etc/init.d/filetransferdaemon start
/Tor
Co-founder OpenProducts and Ex Excito Developer
kfudd
Posts: 45
Joined: 17 Nov 2008, 16:35

Re: A PHP error was encountered

Post by kfudd »

My bad, upgrading now. :)
HeSitated
Posts: 30
Joined: 26 Jun 2009, 12:36
Location: Ede, The Netherlands

Re: A PHP error was encountered

Post by HeSitated »

tor wrote: To stop the downloader do:

Code: Select all

/etc/init.d/filetransferdaemon stop
start it again:

Code: Select all

/etc/init.d/filetransferdaemon start
Thank you all for your help!

The next time the daemon strikes, i'll write the script and try to embed it in the webpages.... :D

Grtz
jamerson
Posts: 80
Joined: 01 Feb 2007, 15:15
Contact:

Re: A PHP error was encountered

Post by jamerson »

I don't know if this is a problem for many, but I realised that Mac OS is the culprit in my setup regarding this (and this only).
It creates files called .DS_Store when you put something in the torrent folder. This prevents the FTD from working correctly.
The solution: http://support.apple.com/kb/HT1629

Might help someone...

/pelle

EDIT: Seems that it's actually a directory called .AppleDouble that is created. I don't know how to stop that.
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Re: A PHP error was encountered

Post by tor »

Hi jamerson,

I think it actually might be the "afp-server" running at Bubba that creates these files. (Very anoying.) This however is something we overlooked when adding AFP. It could be considered a bug in FTD and i will add this to our bugtracker. Hopefully we might push a fix for this in next upgrade.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Post Reply