PHPloy icon indicating copy to clipboard operation
PHPloy copied to clipboard

Failed to upload using ubuntu virtual machines

Open alcarazolabs opened this issue 3 years ago • 1 comments

Hi, I just installed in a virtual machine with ubuntu 20 and I installed a sftp server, an apache server and all my projects are saved inside of "var/www/html". To test this tool "phploy" I created another virtual machine with ubuntu and installed on there php, git, composer and phploy.. I tested my sftp server and is working correctly, I can make a connection using my second virtual machine were I want to make the deploy and I also tested my sftp server with windows 10 using Filezilla and again I was capabable of upload files inside of "html" folder of the apache server.

My sftp user has permissions for write inside of "var/www/html". I just created a folder with one index.html file which is the file that I want deploy in my server and also I created a .gitignore file to ignore some files:

It throwed the tool:

devjunior@devjunior-pc:~/Documentos/proyects/googleros$ phploy
-------------------------------------------------
|                     PHPloy                    |
-------------------------------------------------
No revision found. Fresh upload...

SERVER: testserver
 ! Failed to upload index.html.
 ^ 1 of 1 index.html

|---------------[ 367.00B Deployed ]---------------| devjunior@devjunior-pc:~/Documentos/proyects/googleros$

This is the content of phploy.ini

; This is a sample phploy.ini file. You can specify as many ; servers as you need and use normal or quickmode configuration. ; ; NOTE: If a value in the .ini file contains any non-alphanumeric ; characters it needs to be enclosed in double-quotes (").

; The special '*' configuration is shared between all other configurations (think include)

[testserver]
    scheme = sftp
    host = 192.168.0.13
    path = /var/www/html/googleros
    port = 22
    user = usuario_sftp
    pass = 123456

should I push my repo to github? or only works making commits..? I will apreciate any idea for fix this problem.. thanks

Updated, this are my auth.log from ssh after try of run phploy:

Aug  3 12:08:39 freddy-ubuntu sshd[29563]: Accepted password for usuario_sftp from 192.168.0.12 port 50574 ssh2
Aug  3 12:08:39 freddy-ubuntu sshd[29563]: pam_unix(sshd:session): session opened for user usuario_sftp by (uid=0)
Aug  3 12:08:39 freddy-ubuntu systemd-logind[637]: New session 20 of user usuario_sftp.
Aug  3 12:08:39 freddy-ubuntu sshd[29615]: Received disconnect from 192.168.0.12 port 50574:11: 
Aug  3 12:08:39 freddy-ubuntu sshd[29615]: Disconnected from user usuario_sftp 192.168.0.12 port 50574
Aug  3 12:08:39 freddy-ubuntu systemd-logind[637]: Session 20 logged out. Waiting for processes to exit.
Aug  3 12:08:39 freddy-ubuntu sshd[29563]: pam_unix(sshd:session): session closed for user usuario_sftp
Aug  3 12:08:39 freddy-ubuntu systemd-logind[637]: Removed session 20.

alcarazolabs avatar Aug 01 '21 06:08 alcarazolabs

Hi everyone, I changue the path of the deploy to /home/usuario_sftp and it works but when I tried to deploy to /var/www/html/googleros I wasn't capable of make the deploy it's probably a permissions problem, I will try of fix this.

alcarazolabs avatar Aug 03 '21 17:08 alcarazolabs