{"action":"created","issue":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/999","repository_url":"https://api.github.com/repos/phpseclib/phpseclib","labels_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/999/labels{/name}","comments_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/999/comments","events_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/999/events","html_url":"https://github.com/phpseclib/phpseclib/issues/999","id":160668142,"number":999,"title":"Expected SSH_FXP_ATTRS or SSH_FXP_STATUS ","user":{"login":"narem81","id":12350609,"avatar_url":"https://avatars.githubusercontent.com/u/12350609?v=3","gravatar_id":"","url":"https://api.github.com/users/narem81","html_url":"https://github.com/narem81","followers_url":"https://api.github.com/users/narem81/followers","following_url":"https://api.github.com/users/narem81/following{/other_user}","gists_url":"https://api.github.com/users/narem81/gists{/gist_id}","starred_url":"https://api.github.com/users/narem81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narem81/subscriptions","organizations_url":"https://api.github.com/users/narem81/orgs","repos_url":"https://api.github.com/users/narem81/repos","events_url":"https://api.github.com/users/narem81/events{/privacy}","received_events_url":"https://api.github.com/users/narem81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-16T13:56:37Z","updated_at":"2016-06-20T01:25:46Z","closed_at":null,"body":"Hi everybody,\r\nI'm using this great library for creating a Xen virtual machine on a remote machine. This involves the execution of xen-create-image command. The execution of this command lasts around 10 minutes if launched on a local shell (on the machine where Xen is installed). \r\nIf launched remotely, through an SFTP class object, the execution of the xen-create-image lasts the same, however SFTP::exec method returns much earlier of it (less than 1 minute).\r\n\r\nWhen xen-create-image ends its execution, a notification displays the message \"Expected SSH_FXP_ATTRS or SSH_FXP_STATUS\" and the php code stops its execution showing a read_user() call error.\r\n\r\nWhat this problem is related with?\r\nAny hints on how to solve it?\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/comments/227033277","html_url":"https://github.com/phpseclib/phpseclib/issues/999#issuecomment-227033277","issue_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/999","id":227033277,"user":{"login":"terrafrost","id":214474,"avatar_url":"https://avatars.githubusercontent.com/u/214474?v=3","gravatar_id":"","url":"https://api.github.com/users/terrafrost","html_url":"https://github.com/terrafrost","followers_url":"https://api.github.com/users/terrafrost/followers","following_url":"https://api.github.com/users/terrafrost/following{/other_user}","gists_url":"https://api.github.com/users/terrafrost/gists{/gist_id}","starred_url":"https://api.github.com/users/terrafrost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrafrost/subscriptions","organizations_url":"https://api.github.com/users/terrafrost/orgs","repos_url":"https://api.github.com/users/terrafrost/repos","events_url":"https://api.github.com/users/terrafrost/events{/privacy}","received_events_url":"https://api.github.com/users/terrafrost/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T01:25:46Z","updated_at":"2016-06-20T01:25:46Z","body":"Can you post your code?\r\n\r\nIt looks like you're first stat'ing /etc/xen/vms and then /etc/xen/auto. You then run \"mv /etc/xen-tools/xen-tools.conf /etc/xen-tools/xen-tools-base.conf\".\r\n\r\nYou then upload a new /etc/xen-tools/xen-tools.conf and then you run \"xen-create-image --hostname=netserver1 --ip=192.168.25.173 --genpass=0 --verbose\" and then you get a bunch of data back.\r\n\r\nThe \"Expected SSH_FXP_ATTRS or SSH_FXP_STATUS\" is \"thrown\" by _stat (which is called by all the functions that do any sort of file attribute stuff) and chmod(). exec() doesn't \"throw\" that error. It's not defined in SFTP.php (just SSH2.php) and the stirng \"SSH_FXP\" does not occur in SSH2.php (nor does the string \"n exec\" in SFTP.php).\r\n\r\nIf I didn't know better I'd guess that I wasn't seen the whole lot file. Maybe if you do `define('NET_SSH2_LOGGING', 3)`, which'll enable real-time logging and give me the output of that I'd have better success in figuring out what's going on.\r\n\r\nThanks!"}}
{"actor":{"display_login":"terrafrost"}}