Hi

i would use it on shared hosting OVH, and since rc 9 i've this error , not present in rc3:

Warning: fwrite(): supplied argument is not a valid stream resource in /homez.xxx/provence/drush/includes/drush.inc on line 571

the support of ovh say to me every all right in their ssh...

thanks for help

Comments

aiphes’s picture

just add :
with rc3 i've this error:

Could not login with user ID #0.

an ovh issue i think

greg.1.anderson’s picture

Status: Active » Postponed (maintainer needs more info)

Follow the issue submission guidelines.

aiphes’s picture

ok drush status:

provence@ssh1:~$ drush status
X-Powered-By: PHP/5.2.14
Content-type: text/html

+---------------------+----+------------------------+
| PHP configuration | : | /usr/local/lib/php.ini |
| Drush version | : | 4.0-rc3 |
| Drush configuration | : | |
| Drush alias files | : | |
+---------------------+----+------------------------+

but what about the head version ? its older no ?

php -v =>>PHP 4.4.9 (cgi) (built: Aug 19 2008 13:45:28)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

php.BETA -v =>> PHP 5.2.14 (cgi) (built: Jul 28 2010 12:37:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

all are in cgi, not cli, so i'm looking for how to use cli on ovh shared hosting first

greg.1.anderson’s picture

HEAD is newer. You need to use the CLI php. Ask your ISP support center.

aiphes’s picture

i thnk i found the right php version, its php.BETA and this is my new drush status :

29-Jan-2011 22:23:55 GMT; path=/
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Thu, 06 Jan 2011 18:50:35 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Content-Type: text/html; charset=utf-8

+----------------------+----+-------------------------+
| Drupal version | : | 6.19 |
| Site URI | : | http://default |
| Database driver | : | mysqli |
| Database hostname | : | mysql5-12.pro |
| Database username | : | lyceechadrupal |
| Database name | : | lyceechadrupal |
| Database | : | Connected |
| Drupal bootstrap | : | Successful |
| Drupal user | : | Anonyme |
| Default theme | : | cyrano_cg |
| Administration theme | : | rubik |
| PHP configuration | : | /usr/local/lib/php.ini |
| Drush version | : | 4.0-dev |
| Drush configuration | : | |
| Drush alias files | : | |
| Drupal root | : | /homez.353/XXX/www |
| Site path | : | sites/default |
| File directory path | : | sites/all/media |
+----------------------+----+-------------------------+

but il i do an drush rf 've the warning :

Refreshing update status information ...

Warning: fwrite(): supplied argument is not a valid stream resource in /homez.353/XXX/drush/includes/drush.inc on line 571
Done.

greg.1.anderson’s picture

You should not be seeing http headers in your output. Get your php cli working.

It is also an option to run drush only on your local machine, and just push your dev site to live. Drush does not need to run on your isp so long as you can ssh and rsync. In this mode, the only commands that affect your live site are "drush rsync @dev @live" and "drush sql-sync @dev @live" (and the reverse). Do everything else on your local machine.

MentalFS’s picture

I'm getting the same error with my shared hoster and drush 4.2.

$ drush self-update
<br />
<b>Warning</b>:  fwrite(): supplied argument is not a valid stream resource in <b>/www/example.com/install/drush/includes/drush.inc</b> on line <b>577</b><br />

I had to set DRUSH_PHP to "php5 -q", because my hoster uses php4 as default.

Here's part of the output of php5-config:

  --php-binary        [/usr/local/bin/php-cli5]
  --php-sapis         [cli cgi]

php5-cli doesn't exist though. I'm not sure if php5 -q is a sufficient replacement, so maybe that is the cause of my (and the submitter's) problem.

aiphes’s picture

in fact, its not possible to do SSH whith OVH shared plans.But it is possible whith the shared palns of always data ( french host)

greg.1.anderson’s picture

Version: All-versions-4.0-rc10 » 8.x-6.x-dev
Status: Postponed (maintainer needs more info) » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.