This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » [resolved]Discovery of channel failed
[resolved]Discovery of channel failed [message #218] Wed, 09 November 2005 02:15 Go to next message
kristeta126  is currently offline kristeta126
Messages: 24
Registered: November 2005
Location: QC
Junior Member

Please help.

I am trying to follow the installation instructions. I get to the part where I must pear channel-discover pear.symfony-project.com, and I get this message:

Discovery of channel "pear.symfony-project.com" failed.


I have PEAR Version: 1.4.4. Please help. Confused

I really want to try using symfony. Thanks!


Maricris

[Updated on: Fri, 03 March 2006 10:58] by Moderator

Re: Discovery of channel failed [message #228 is a reply to message #218 ] Wed, 09 November 2005 16:11 Go to previous messageGo to next message
elake  is currently offline elake
Messages: 2
Registered: November 2005
Junior Member
I think that I am having a similar issue. I can get the channel to discover but then when I do the install I get the following message:

Notice: Array to string conversion in PEAR/REST/10.php on line 77

Warning: Invalid argument supplied for foreach() in PEAR/REST/10.php on line 79
PHP Fatal error: Cannot use string offset as an array in /usr/share/php5/PEAR/PEAR/REST/10.php on line 233


any ideas?
Re: Discovery of channel failed [message #236 is a reply to message #228 ] Wed, 09 November 2005 17:02 Go to previous messageGo to next message
fabien  is currently offline fabien
Messages: 484
Registered: October 2005
Faithful Member
Administrator
Do you have the latest PEAR (1.4.4)?
Re: Discovery of channel failed [message #238 is a reply to message #236 ] Wed, 09 November 2005 17:09 Go to previous messageGo to next message
elake  is currently offline elake
Messages: 2
Registered: November 2005
Junior Member
Here is what I have:

PEAR Version: 1.4.4
PHP Version: 5.0.4
Zend Engine Version: 2.0.4-dev
Running on: Linux 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 i686


Thanks for any help that you can provide.
Re: Discovery of channel failed [message #271 is a reply to message #236 ] Thu, 10 November 2005 00:53 Go to previous messageGo to next message
kristeta126  is currently offline kristeta126
Messages: 24
Registered: November 2005
Location: QC
Junior Member

Thanks for all the advices. Razz

I finally managed to install symfony. I am now trying to start my own project.

I updated my specs to:

  PHP 5.0.5 (cli) (built: Nov 9 2005 11:08:48)
  Copyright (c) 1997-2004 The Php Group 
  Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies


Thanks again. I hope to learn more on the use of symfony.
Re: Discovery of channel failed [message #982 is a reply to message #218 ] Sun, 11 December 2005 07:48 Go to previous messageGo to next message
BoarK  is currently offline BoarK
Messages: 2
Registered: December 2005
Junior Member
Kristela126,

Could you please tell us how you solved your problem? I am having the same channel-discover problem. Is the Symfony pear server down?

Nathan.
Re: Discovery of channel failed [message #1829 is a reply to message #982 ] Tue, 17 January 2006 14:21 Go to previous messageGo to next message
kristeta126  is currently offline kristeta126
Messages: 24
Registered: November 2005
Location: QC
Junior Member

Nathan,

Make sure you check your pear configuration using pear config-show. If you are using a proxy, be sure to set the http_proxy option first so that you can channel-discover pear.symfony-project.com

Sorry for the extremely late reply. I hope this will also help others.

Kristeta126
Re: Discovery of channel failed [message #2552 is a reply to message #218 ] Thu, 09 February 2006 14:54 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I had the same issue. Strangely, although my browser goes through a proxy on port 8080, http_proxy in pear needed to be port 80 instead. Naturally it depends on your local configuration, so play around with the proxy setting until the channel-discover command doesn't return an error.

OK, ignore the above. I was running PEAR/PEAR.php rather than PEAR/pearcmd.php as I should have been. I'll keep on trying various combinations, it's probably our corp firewall...

[Updated on: Thu, 09 February 2006 15:08]


Remember Palestine
Re: Discovery of channel failed [message #2553 is a reply to message #218 ] Thu, 09 February 2006 15:17 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Arrgghh Mad

Right, I have tried lots of combinations to make this work. I am using PHP5 on Windows XP:

PHP 5.1.2 (cli) (built: Jan 11 2006 16:40:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


... and pear channel-discover keeps on reporting as "failed". Is there a log or verbose mode I can turn on to determine a more exact problem? I've tried setting -v before 'channel-discover' in the command, to no effect.

Cheers all!

Jon


Remember Palestine
Re: Discovery of channel failed [message #2561 is a reply to message #218 ] Thu, 09 February 2006 17:51 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Hmm, I think I might be getting somewhere. When executing the remote-list command, I am receiving the following error:

Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in C:\php\PEAR\pearcmd.php on line 23
File http://pear.php.net:80/rest/c/categories.xml not valid (received: HTTP/1.1 407 Proxy Authentication Requi
red
)


I think the notice message can be ignored. It's the authentication thing I've noticed: any thoughts how I specify a username and password for my http_proxy?

Cheers [pulls hair out Crying or Very Sad ]

Jon


Remember Palestine
Re: Discovery of channel failed [message #3315 is a reply to message #218 ] Thu, 02 March 2006 13:38 Go to previous messageGo to next message
paul_lomax  is currently offline paul_lomax
Messages: 1
Registered: March 2006
Location: London, UK
Junior Member

Apparently there's an issue in the latest version of PEAR (1.4.7)

Try downgrading by running
pear upgrade -f PEAR-1.4.6

[Updated on: Thu, 02 March 2006 14:00]

Re: Discovery of channel failed [message #3317 is a reply to message #218 ] Thu, 02 March 2006 15:11 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Thanks Paul.

Well, I found elsewhere that the syntax for the proxy is user:pass@proxy. The reason why it wasn't working is that our proxy refuses connections on certain kinds of compressed files, and since PEAR downloads tgz files, it was failing.

However if, once the proxy filtering is fixed, I still have problems, I will take your advice and try an earlier version of PEAR. Thanks for the info Smile

Jon


Remember Palestine
Re: Discovery of channel failed [message #3347 is a reply to message #3315 ] Fri, 03 March 2006 02:09 Go to previous messageGo to next message
andrew
Messages: 39
Registered: December 2005
Member
paul_lomax wrote on Thu, 02 March 2006 13:38

Apparently there's an issue in the latest version of PEAR (1.4.7)

Try downgrading by running
pear upgrade -f PEAR-1.4.6



Thanks Paul, this did it for me!
Re: Discovery of channel failed [message #3349 is a reply to message #218 ] Fri, 03 March 2006 04:16 Go to previous messageGo to next message
RoVeRT  is currently offline RoVeRT
Messages: 146
Registered: October 2005
Senior Member
or just apply the patch to PEAR bug #6960
Re: [resolved]Discovery of channel failed [message #11975 is a reply to message #218 ] Tue, 12 September 2006 19:21 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I am adding to this ancient post to help any future installers with proxy/filter problems in PEAR install commands. I have got around this successfully by:
Hope that helps someone avoid fighting with a corporate firewall Wink


Remember Palestine
Re: [resolved]Discovery of channel failed [message #26229 is a reply to message #11975 ] Tue, 24 April 2007 20:20 Go to previous messageGo to next message
Pogo  is currently offline Pogo
Messages: 5
Registered: April 2007
Junior Member
Halfer, thank you very much for posting that solution.
It worked for me (and I wasn't even firewalled: I had that problem here on the localhost!)

Cheers,
-G
icon14.gif  Re: [resolved]Discovery of channel failed [message #34664 is a reply to message #11975 ] Fri, 31 August 2007 13:13 Go to previous messageGo to next message
rajat.shyam  is currently offline rajat.shyam
Messages: 1
Registered: August 2007
Location: India
Junior Member
halfer, your suggestion was wonderful! I am new to php/simfony and was following the simfony installation guide. We have a corporate firewall. I got stuck installing simfony and it was a struggle till I read your posting. It pulled me out of the abyss!! -Thanks Smile
Cannot download non-local package ... [message #61259 is a reply to message #34664 ] Thu, 18 September 2008 14:23 Go to previous messageGo to next message
pgervais  is currently offline pgervais
Messages: 8
Registered: September 2008
Location: Paris, FRANCE
Junior Member
when I saw this post, I thought I could solve my problem ..

I did exactly what I written but ...

1) I downloaded "c:\channel.xml"
2) I ran
C:\>pear channel-add "c:\channel.xml"
channel-add: Channel "pear.symfony-project.com" exists, use channel-update to update entry

3) I ran
C:\>pear install --offline "c:\symfony-1.0.17.tgz"
Parsing of package.xml from file " C:\WINDOWS\TMP\mijad4\pear\cache/symfony-1.0.17/lib/vendor/p ropel-generator/pear/build-pear-package
.xml" failed
Cannot download non-local package "c:\symfony-1.0.17.tgz"
Package "c:\symfony-1.0.17.tgz" is not valid
install failed

attached sme error messages

Re: [resolved]Discovery of channel failed [message #61261 is a reply to message #218 ] Thu, 18 September 2008 14:35 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
What version of PHP and PEAR are you using?


Remember Palestine
Re: [resolved]Discovery of channel failed [message #61263 is a reply to message #61261 ] Thu, 18 September 2008 14:43 Go to previous messageGo to next message
pgervais  is currently offline pgervais
Messages: 8
Registered: September 2008
Location: Paris, FRANCE
Junior Member
C:\>pear -V
PEAR Version: 1.6.1
PHP Version: 5.2.5
Zend Engine Version: 2.2.0
Running on: Windows NT MIJAD4-P 5.1 build 2600
Re: [resolved]Discovery of channel failed [message #61264 is a reply to message #218 ] Thu, 18 September 2008 14:51 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I am concerned that PEAR thinks that something in c: is a non-local package! Does C:\symfony-1.0.17.tgz actually exist on your disc?

Failing that, delete the channel from pear and re-add it, then try again.


Remember Palestine
Re: [resolved]Discovery of channel failed [message #61266 is a reply to message #61264 ] Thu, 18 September 2008 15:11 Go to previous messageGo to next message
pgervais  is currently offline pgervais
Messages: 8
Registered: September 2008
Location: Paris, FRANCE
Junior Member
C:\symfony-1.0.17.tgz actually exist on my disc

C:\>pear channel-delete symfony
Channel "pear.symfony-project.com" has installed packages, cannot delete

Re: [resolved]Discovery of channel failed [message #61268 is a reply to message #218 ] Thu, 18 September 2008 15:26 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
OK, uninstall using PEAR then. You can do "pear help (command)" to get options like "force" etc.


Remember Palestine
Re: [resolved]Discovery of channel failed [message #61269 is a reply to message #61268 ] Thu, 18 September 2008 15:46 Go to previous messageGo to next message
pgervais  is currently offline pgervais
Messages: 8
Registered: September 2008
Location: Paris, FRANCE
Junior Member
... before doing that, I'll try to install from home, because, from my office, I'm not sure of what is between my laptop and Internet .. I guess at least to proxies and 2 FW .. and my own VPN
Re: [resolved]Discovery of channel failed [message #61572 is a reply to message #61269 ] Mon, 22 September 2008 20:51 Go to previous message
pgervais  is currently offline pgervais
Messages: 8
Registered: September 2008
Location: Paris, FRANCE
Junior Member
C:\>pear install -f symfony/symfony-1.0.17
downloading symfony-1.0.17.tgz ...
Starting to download symfony-1.0.17.tgz (1,913,192 bytes)
............................................................ ....................
............................................................ ....................
............................................................ ....................
install ok: channel://pear.symfony-project.com/symfony-1.0.17



.... that's what I thought !! from home, I have no problem.
At work, there must be something with our FWs and/or proxys

I'll try to check that later, about TCP channels used by PEAR

Anyway, thanks for your help
Smile
Previous Topic:PEAR Package Offline Installation Problem
Next Topic:VirtualHost issue
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software