Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to upload using ubuntu virtual machines #393

Open
alcarazolabs opened this issue Aug 1, 2021 · 1 comment
Open

Failed to upload using ubuntu virtual machines #393

alcarazolabs opened this issue Aug 1, 2021 · 1 comment

Comments

@alcarazolabs
Copy link

alcarazolabs commented Aug 1, 2021

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 alcarazolabs changed the title Failed to upload using ubuntu virtual machinnes Failed to upload using ubuntu virtual machines Aug 1, 2021
@alcarazolabs
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant