D
D
Dmitry2020-08-04 12:31:39
SSH
Dmitry, 2020-08-04 12:31:39

When deploying, I get the error getsockname failed: Not a socket, how to fix it?

Hello!
On win10, I successfully connect to the remote server (CentOs) via SSH via the command line Deploer
is installed in the project
When the command call vendor / bin / dep deploy st1, an error occurs:

✈︎ Deploying master on st1.XXXX.ru
➤ Executing task deploy:prepare
✔ Executing task deploy:failed
➤ Executing task deploy:unlock

In Client.php line 103:

  The command "rm -f /home/admin/web/st1.XXXX.ru/.dep/deploy.lock" failed.  

  Exit Code: -1 (Unknown error)

  Host Name: st1.XXXX.ru

  ================
  getsockname failed: Not a socket
  packet_write_poll: Connection to UNKNOWN port -1: Permission denied


What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2015-02-24
@FanatPHP

совершенно адский вопрос, я бы такие удалял.
Один заголовок чего стоит. "Помогите оптимизировать расходы, дайте 5000 рублей!"
Ну и код, конечно.

while($line = fgets($stream)) {
    flush();
    $result = array(
        'console' => $line,
    );
    exit( json_encode($result) );
}

А попробуй-ка сам посмотреть на этот код, и сказать, что в нем неправильно. Не бойся, это не так сложно, как тебе кажется.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question