Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration

I am using the laravel Task functions to run some code using phantomjs and then using the output.

This is a part of the code I use:

private static function phantomjs($file, $c, $a)
{
	SSH::run(array("phantomjs " . base_path("phantomjs/" . $file)), function($line)
	{
		$json = json_decode($line);
		DataHelper::saveJson($json);
	}
}

Whenever I run the command I get the following error on this piece of code:

[ErrorException]
Expected SSH_FXP_VERSION

If I output the ssh command and run it in a terminal myself it works just fine.

I am using Debian 7.6 on my server.

Thanks for helping. :)

Last updated 2 years ago.
0

I think the suggestions at http://stackoverflow.com/q/26886519/569976 are sound. ie. you likely don't have an SFTP service running.

I guess we can verify by doing define('NET_SSH2_LOGGING', 3) and then posting the result.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerodev jerodev Joined 20 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.