• Как на CentOs решить проблему установки composer - Cannot allocate memory?

    @EVOSandru6 Автор вопроса
    Не помогло у сожалению. Вроде как проблема из за малой оперативки
  • Что не так с валидатором unique в Laravel 5.7?

    @EVOSandru6 Автор вопроса
    Юрий, Тоже есть, временно убирал за неработоспособностью правила
  • Что не так с валидатором unique в Laravel 5.7?

    @EVOSandru6 Автор вопроса
    Юрий,
    namespace App\Http\Requests\Admin\Users;
    
    use Illuminate\Foundation\Http\FormRequest;
    
    class CreateRequest extends FormRequest
    {
        public function authorize(): bool
        {
            return true;
        }
        public function rules(): array
        {
            return [
                'name' => 'required|string|max:255',
                'email' => [
                  'required',
                  'email',
                  'string',
                  Rule::unique('users')->ignore($user->id),
               ],
            ];
        }
    }
  • Как прописать путь к js для unisharp/laravel-ckeditor в Laravel?

    @EVOSandru6 Автор вопроса
    Приветствую, нет. а можно на уровень вверх пробросить?
  • Что не так с валидатором unique в Laravel 5.7?

    @EVOSandru6 Автор вопроса
    Юрий, Приветствую, use Illuminate\Validation\Rule;
  • Как сконфигурировать /etc/hosts сайт на докере на VPS?

    @EVOSandru6 Автор вопроса
    Спасибо, но не помогло к сожалению

    version: '3.7'
    services:
      nginx:
        ...
        extra_hosts:
          - domen.ru:ip.ip.ip.ip


    Сам domen.ru пингуется
  • Почему docker на Ubuntu 18.04.1 LTS bionic (Чистый VPS) выкидывает - Cannot connect to the Docker daemon при запуске?

    @EVOSandru6 Автор вопроса
    Еще такая попытка:

    Что не получается:

    sudo docker-compose up

    ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

    If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

    docker info

    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?


    service docker restart

    A dependency job for docker.service failed. See 'journalctl -xe' for details.

    journalctl -xe

    Nov 22 21:53:04 vps41742912.local sshd[775]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    Nov 22 21:53:04 vps41742912.local sshd[775]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
    Nov 22 21:53:05 vps41742912.local sshd[775]: Invalid user ts3 from 213.26.2.162 port 38776
    Nov 22 21:53:05 vps41742912.local sshd[775]: pam_unix(sshd:auth): check pass; user unknown
    Nov 22 21:53:05 vps41742912.local sshd[775]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
    Nov 22 21:53:07 vps41742912.local sshd[775]: Failed password for invalid user ts3 from 213.26.2.162 port 38776 ssh2
    Nov 22 21:53:07 vps41742912.local sshd[775]: Received disconnect from 213.26.2.162 port 38776:11: Bye Bye [preauth]
    Nov 22 21:53:07 vps41742912.local sshd[775]: Disconnected from invalid user ts3 213.26.2.162 port 38776 [preauth]
    Nov 22 21:53:11 vps41742912.local sshd[777]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    Nov 22 21:53:11 vps41742912.local sshd[777]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
    Nov 22 21:53:12 vps41742912.local sshd[777]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
    Nov 22 21:53:14 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:16 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:19 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:19 vps41742912.local sshd[777]: Received disconnect from 116.31.116.48 port 31763:11: [preauth]
    Nov 22 21:53:19 vps41742912.local sshd[777]: Disconnected from authenticating user root 116.31.116.48 port 31763 [preauth]
    Nov 22 21:53:19 vps41742912.local sshd[777]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116


    Сделано:

    На свежую машину (Ubuntu bionic 18.04) накатил только гит и докер

    sudo apt-get update;
    sudo apt-get -y upgrade;
    sudo apt install curl;
    
    sudo apt install -y git;
    git config --global user.name  'EVOSandru6';
    git config --global user.email  'evosduple@mail.ru';
    git config --global alias.co checkout;
    git config --global alias.ci commit;
    git config --global alias.st status;
    git config --global alias.br branch;
    git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short";
    git config --global alias.type 'cat-file -t';
    git config --global alias.dump 'cat-file -p';
    git config --global alias.stash-unapply '!git stash show -p | git apply -R';
    
    #cd ~/.ssh;
    mkdir /root/.ssh;
    cd /root/.ssh;
    eval `ssh-agent -s`;
    ssh-keygen -t rsa -C "evosduple@mail.ru" -f "id_rsa_gh";
    ssh-keygen -t rsa -C "evosduple@mail.ru" -f "id_rsa_bb";
    # sudo nano config;
    touch config;
    echo "#Github (default)" >> config;
    echo "Host gh" >> config;
    echo "HostName github.com" >> config;
    echo "User git" >> config;
    echo "IdentityFile /root/.ssh/id_rsa_gh" >> config;
    echo "" >> config;
    echo "#Bitbucket (secondary)" >> config;
    echo "Host bb" >> config;
    echo "HostName bitbucket.org" >> config;
    echo "User git" >> config;
    echo "IdentityFile /root/.ssh/id_rsa_bb" >> config;
    ssh-add /root/.ssh/id_rsa_gh;
    ssh-add /root/.ssh/id_rsa_bb;
    # cat /root/.ssh/id_rsa_bb.pub
    ssh -T gh;
    ssh -T bb;
    ssh-add -l;
    
    cd /var/www;
    git clone git@bb:EVOSandru6/kpr-crm.git domen;
    cd domen;
    
    
    sudo rm /usr/local/bin/docker-compose;
    sudo apt-get purge -y docker-compose;
    sudo apt-get autoremove -y --purge docker-compose;
    
    dpkg -l | grep -i docker;
    sudo apt-get purge -y docker-engine docker docker.io docker-ce;
    sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce;
    sudo rm -rf /var/lib/docker;
    sudo rm /etc/apparmor.d/docker;
    sudo groupdel docker;
    sudo rm -rf /var/run/docker.sock;
    
    dpkg -l | grep -i docker;
    sudo apt-get update;
    sudo apt-get install -y apt-transport-https ca-certificates  curl software-properties-common;
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -;
    sudo apt-key fingerprint 0EBFCD88;
    
    sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    
    sudo apt-get update;
    sudo apt-get install -y docker-ce;
    
    sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    docker-compose --version


    Тут все падает

    sudo docker run hello-world;

    docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
    See 'docker run --help'.
  • Почему docker на Ubuntu 18.04.1 LTS bionic (Чистый VPS) выкидывает - Cannot connect to the Docker daemon при запуске?

    @EVOSandru6 Автор вопроса
    sudo docker-compose up

    ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

    If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.


    sudo usermod -aG docker ${USER}

    хотя я под рутом

    docker info

    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?


    service docker restart

    A dependency job for docker.service failed. See 'journalctl -xe' for details.


    journalctl -xe

    Nov 22 21:53:04 vps41742912.local sshd[775]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    Nov 22 21:53:04 vps41742912.local sshd[775]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
    Nov 22 21:53:05 vps41742912.local sshd[775]: Invalid user ts3 from 213.26.2.162 port 38776
    Nov 22 21:53:05 vps41742912.local sshd[775]: pam_unix(sshd:auth): check pass; user unknown
    Nov 22 21:53:05 vps41742912.local sshd[775]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
    Nov 22 21:53:07 vps41742912.local sshd[775]: Failed password for invalid user ts3 from 213.26.2.162 port 38776 ssh2
    Nov 22 21:53:07 vps41742912.local sshd[775]: Received disconnect from 213.26.2.162 port 38776:11: Bye Bye [preauth]
    Nov 22 21:53:07 vps41742912.local sshd[775]: Disconnected from invalid user ts3 213.26.2.162 port 38776 [preauth]
    Nov 22 21:53:11 vps41742912.local sshd[777]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
    Nov 22 21:53:11 vps41742912.local sshd[777]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
    Nov 22 21:53:12 vps41742912.local sshd[777]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
    Nov 22 21:53:14 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:16 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:19 vps41742912.local sshd[777]: Failed password for root from 116.31.116.48 port 31763 ssh2
    Nov 22 21:53:19 vps41742912.local sshd[777]: Received disconnect from 116.31.116.48 port 31763:11: [preauth]
    Nov 22 21:53:19 vps41742912.local sshd[777]: Disconnected from authenticating user root 116.31.116.48 port 31763 [preauth]
    Nov 22 21:53:19 vps41742912.local sshd[777]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116
  • Что не так с валидатором unique в Laravel 5.7?

    @EVOSandru6 Автор вопроса
    Приветствую, где может быть?

    Если меняю:

    Rule::unique('users')->ignore($uid, 'id')

    на

    Rule::unique('chicken')->ignore($uid, 'id')

    То происходит:

    Class chicken does not exist
  • Почему docker на Ubuntu 18.04.1 LTS bionic (Чистый VPS) выкидывает - Cannot connect to the Docker daemon при запуске?

    @EVOSandru6 Автор вопроса
    На серваке теперь такая валится:

    root@vps41742912:/var/www/domen# make restart-all
    sudo rm -rf volumes
    sudo rm -rf storage
    sudo docker-compose down
    ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

    If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
    Makefile:71: recipe for target 'docker-down' failed
    make: *** [docker-down] Error 1
  • Почему docker на Ubuntu 18.04.1 LTS bionic (Чистый VPS) выкидывает - Cannot connect to the Docker daemon при запуске?

    @EVOSandru6 Автор вопроса
    Женис, Благодарю, на домашней машине все летает, а на VPS почему то не поднимаются контейнеры(

    Successfully built 7aa2911d32e5
    Successfully tagged app_php-cli:latest
    Creating pgsql ...
    Creating php-cli ...
    Creating php-fpm ...
    Creating node ...
    Creating nginx ... error

    ERROR: for nginx Cannot start service nginx: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 0 caused \\\"error running hook: exit status 2, stdout: , stderr: runtime/cgo: pthread_create failed: Resource temporarily unavailable\\\\nSIGABRT: abort\\\\nPC=0x7f3da71ebe97 m=0 sigcode=18446744073709551610\\\\n\\\\ngoroutine 0 [idle]:\\\\nruntime: unknown pc 0x7f3da71ebe97\\\\nstack: frame={sp:0x7ffdc45b9fd0, fp:0x0} stack=[0x7ffdc3dbb668,0x7ffdc45ba690)\\\\n00007ffdc45b9ed0: 0000029300000002 0000005000000000 \\\\n00007ffdc45b9ee0: 0000000000a4a8d1 00007ffdc45b9f98 \\\\n00007ffdc45b9ef0: 000055596bfd7c16 000055596e30e550 \\\\n00007ffdc45b9f00: 0000000000a33563 0000000000a33563 \\\\n00007ffdc45b9f10: 00007ffdc45b9f50 00007ffdc45b9f4c \\\\n00007ffdc45b9f20: 000055596ed77f01 000055596e30e552 \\\\n00007ffdc45b9f30: 0000000000a33561 0000000000a33561 \\\\n00007ffdc45b9f40: 0000000000000001 0000000040000000 \\\\n00007ffdc45b9f50: 00007ffdc45ba008 000055596bfd286f \\\\n00007ffdc45b9f60: 000055596e30e518 000055596ed77f00 \\\\n00007ffdc45b9f70: 00007ffd00000000 000055596bfea020 \\\\n00007ffdc45b9f80: 00007ffdc45ba3c0 00000000ffffffff \\\\n00007ffdc45b9f90: 00000000c45b9f20 000055596bfea020 \\\\n00007ffdc45b9fa0: 000055596bfd84a1 000055596e30e518 \\\\n00007ffdc45b9fb0: 000055596ed77f00 00007ffd000f2450 \\\\n00007ffdc45b9fc0: 000055596bfea021 00007ffdc45ba120 \\\\n00007ffdc45b9fd0: <0000000000000000 000055596e30e518 \\\\n00007ffdc45b9fe0: 000055596ed77f00 0000000000000000 \\\\n00007ffdc45b9ff0: 0000000000000000 000055596bfea021 \\\\n00007ffdc45ba000: 000055596ed77f00 00007ffdc45ba310 \\\\n00007ffdc45ba010: 000055596bfde8c2 00007ffdc45ba2b8 \\\\n00007ffdc45ba020: 00007ffdc45ba3a8 000055596ed77f01 \\\\n00007ffdc45ba030: 00007ffdc45ba101 0000000000000000 \\\\n00007ffdc45ba040: 0000000000000000 0000000000000000 \\\\n00007ffdc45ba050: fffffffe7fffffff ffffffffffffffff \\\\n00007ffdc45ba060: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba070: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba080: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba090: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0a0: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0b0: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0c0: ffffffffffffffff ffffffffffffffff \\\\nruntime: unknown pc 0x7f3da71ebe97\\\\nstack: frame={sp:0x7ffdc45b9fd0, fp:0x0} stack=[0x7ffdc3dbb668,0x7ffdc45ba690)\\\\n00007ffdc45b9ed0: 0000029300000002 0000005000000000 \\\\n00007ffdc45b9ee0: 0000000000a4a8d1 00007ffdc45b9f98 \\\\n00007ffdc45b9ef0: 000055596bfd7c16 000055596e30e550 \\\\n00007ffdc45b9f00: 0000000000a33563 0000000000a33563 \\\\n00007ffdc45b9f10: 00007ffdc45b9f50 00007ffdc45b9f4c \\\\n00007ffdc45b9f20: 000055596ed77f01 000055596e30e552 \\\\n00007ffdc45b9f30: 0000000000a33561 0000000000a33561 \\\\n00007ffdc45b9f40: 0000000000000001 0000000040000000 \\\\n00007ffdc45b9f50: 00007ffdc45ba008 000055596bfd286f \\\\n00007ffdc45b9f60: 000055596e30e518 000055596ed77f00 \\\\n00007ffdc45b9f70: 00007ffd00000000 000055596bfea020 \\\\n00007ffdc45b9f80: 00007ffdc45ba3c0 00000000ffffffff \\\\n00007ffdc45b9f90: 00000000c45b9f20 000055596bfea020 \\\\n00007ffdc45b9fa0: 000055596bfd84a1 000055596e30e518 \\\\n00007ffdc45b9fb0: 000055596ed77f00 00007ffd000f2450 \\\\n00007ffdc45b9fc0: 000055596bfea021 00007ffdc45ba120 \\\\n00007ffdc45b9fd0: <0000000000000000 000055596e30e518 \\\\n00007ffdc45b9fe0: 000055596ed77f00 0000000000000000 \\\\n00007ffdc45b9ff0: 0000000000000000 000055596bfea021 \\\\n00007ffdc45ba000: 000055596ed77f00 00007ffdc45ba310 \\\\n00007ffdc45ba010: 000055596bfde8c2 00007ffdc45ba2b8 \\\\n00007ffdc45ba020: 00007ffdc45ba3a8 000055596ed77f01 \\\\n00007ffdc45ba030: 00007ffdc45ba101 0000000000000000 \\\\n00007ffdc45ba040: 0000000000000000 0000000000000000 \\\\n00007ffdc45ba050: fffffffe7fffffff ffffffffffffffff \\\\n00007ffdc45ba060: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba070: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba080: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba090: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0a0: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0b0: ffffffffffffffff ffffffffffffffff \\\\n00007ffdc45ba0c0: ffffffffffffffff ffffffffffffffff \\\\n\\\\ngoroutine 1 [runnable, locked to thread]:\\\\nruntime.gopark(0x55596e1a0040, 0xc42008a058, 0x55596d566ede, 0xc, 0xc420048e17, 0x3)\\\\n\\\\t/usr/local/go/src/runtime/proc.go:291 +0x120\\\\nruntime.goparkunlock(0xc42008a058, 0x55596d566ede, 0xc, 0x17, 0x3)\\\\n\\\\t/usr/local/go/src/runtime/proc.go:297 +0x60\\\\nruntime.chanrecv(0xc42008a000, 0x0, 0x1, unknown
    ERROR: Encountered errors while bringing up the project.
    Makefile:74: recipe for target 'docker-build' failed
    make: *** [docker-build] Error 1
    root@vps41742912:/var/www/domen#
  • Почему docker на Ubuntu 18.04.1 LTS bionic (Чистый VPS) выкидывает - Cannot connect to the Docker daemon при запуске?

    @EVOSandru6 Автор вопроса
    Благодарю, это полноценная замена супервизора?