Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

please check file permissions on your server

  • #11134
    Avatar photo[anonymous]

    I checked ftp/sftp config and ssh with key. Always have error

    This key / password 100% works. I used then in WinSCP / Fillezilla

    Publii connect to server, but it is finish. If i try sync i see

    if i try “cancel” i see

    In the “deployment error” log is emptyand “deployment process” log

    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '220 2001:67c:2070:c817::1 FTP server ready\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '220 2001:67c:2070:c817::1 FTP server ready\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=220, buffer='2001:67c:2070:c817::1 FTP server ready'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'AUTH TLS'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '234 AUTH TLS successful\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '234 AUTH TLS successful\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=234, buffer='AUTH TLS successful'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'PBSZ 0'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '200 PBSZ 0 successful\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '200 PBSZ 0 successful\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=200, buffer='PBSZ 0 successful'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'PROT P'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '200 Protection set to Private\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '200 Protection set to Private\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=200, buffer='Protection set to Private'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'USER dolya2_ftp'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '331 Password required for dolya2_ftp\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '331 Password required for dolya2_ftp\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=331, buffer='Password required for dolya2_ftp'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > PASS ******************************
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < "230-User 'dolya2_ftp' allowed by access rules\r\n"
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '230 User dolya2_ftp logged in\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < "230-User 'dolya2_ftp' allowed by access rules\r\n" +  '230 User dolya2_ftp logged in\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=230, buffer="User 'dolya2_ftp' allowed by access rules\r\nUser dolya2_ftp logged in"
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'FEAT'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '211-Features:\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' AUTH TLS\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' CCC\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' CLNT\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' EPRT\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' EPSV\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' HOST\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' MDTM\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' MFF modify;UNIX.group;UNIX.mode;\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' MFMT\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' PBSZ\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' PROT\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' RANG STREAM\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' REST STREAM\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' SIZE\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' SSCN\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < ' TVFS\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '211 End\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '211-Features:\r\n' +
      ' AUTH TLS\r\n' +
      ' CCC\r\n' +
      ' CLNT\r\n' +
      ' EPRT\r\n' +
      ' EPSV\r\n' +
      ' HOST\r\n' +
      ' MDTM\r\n' +
      ' MFF modify;UNIX.group;UNIX.mode;\r\n' +
      ' MFMT\r\n' +
      ' MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;\r\n' +
      ' PBSZ\r\n' +
      ' PROT\r\n' +
      ' RANG STREAM\r\n' +
      ' REST STREAM\r\n' +
      ' SIZE\r\n' +
      ' SSCN\r\n' +
      ' TVFS\r\n' +
      '211 End\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=211, buffer='Features:\r\n' +
      ' AUTH TLS\r\n' +
      ' CCC\r\n' +
      ' CLNT\r\n' +
      ' EPRT\r\n' +
      ' EPSV\r\n' +
      ' HOST\r\n' +
      ' MDTM\r\n' +
      ' MFF modify;UNIX.group;UNIX.mode;\r\n' +
      ' MFMT\r\n' +
      ' MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;\r\n' +
      ' PBSZ\r\n' +
      ' PROT\r\n' +
      ' RANG STREAM\r\n' +
      ' REST STREAM\r\n' +
      ' SIZE\r\n' +
      ' SSCN\r\n' +
      ' TVFS\r\n' +
      'End'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] > 'TYPE I'
    [Sat, 25 Nov 2023 13:41:40 GMT] [connection] < '200 Type set to I\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] < '200 Type set to I\r\n'
    [Sat, 25 Nov 2023 13:41:40 GMT] [parser] Response: code=200, buffer='Type set to I'
    [Sat, 25 Nov 2023 13:41:43 GMT] [connection] > 'PASV'
    [Sat, 25 Nov 2023 13:41:43 GMT] [connection] < '227 Entering Passive Mode (1,252,166).\r\n'
    [Sat, 25 Nov 2023 13:41:43 GMT] [parser] < '227 Entering Passive Mode (1,252,166).\r\n'
    [Sat, 25 Nov 2023 13:41:43 GMT] [parser] Response: code=227, buffer='Entering Passive Mode (1,252,166).'
    [Sat, 25 Nov 2023 13:41:43 GMT] <- files.publii.json
    [Sat, 25 Nov 2023 13:41:43 GMT] (!) ERROR WHILE DOWNLOADING files-remote.json
    [Sat, 25 Nov 2023 13:41:43 GMT] Error: Unable to parse PASV server response
    Founded 1650 operations to do
    [Sat, 25 Nov 2023 13:41:44 GMT] [connection] > 'PWD'
    [Sat, 25 Nov 2023 13:41:44 GMT] [connection] < '257 "/" is the current directory\r\n'
    [Sat, 25 Nov 2023 13:41:44 GMT] [parser] < '257 "/" is the current directory\r\n'
    [Sat, 25 Nov 2023 13:41:44 GMT] [parser] Response: code=257, buffer='"/" is the current directory'
    [Sat, 25 Nov 2023 13:41:54 GMT] [connection] > NOOP
    [Sat, 25 Nov 2023 13:41:54 GMT] [connection] < '200 NOOP command successful\r\n'
    [Sat, 25 Nov 2023 13:41:54 GMT] [parser] < '200 NOOP command successful\r\n'
    [Sat, 25 Nov 2023 13:41:54 GMT] [parser] Response: code=200, buffer='NOOP command successful'
    [Sat, 25 Nov 2023 13:42:04 GMT] [connection] > NOOP
    [Sat, 25 Nov 2023 13:42:04 GMT] [connection] < '200 NOOP command successful\r\n'
    [Sat, 25 Nov 2023 13:42:04 GMT] [parser] < '200 NOOP command successful\r\n'
    [Sat, 25 Nov 2023 13:42:04 GMT] [parser] Response: code=200, buffer='NOOP command successful'
    [Sat, 25 Nov 2023 13:42:08 GMT] FTP CONNECTION CLOSED: false
    
    #11135
    Avatar photo[anonymous]

    UPD

    I try to use GIT instead of hosting and see a similar error

    #11144
    Avatar photo[anonymous]

    Hi,

    SFTP issue seems to be related to the wrong path – the app probably tries to upload files in the root directory where there are no permissions

    Regarding GIT – it seems to be a problem with URLs in the configuration, because you got error 404 in the alert

    #11157
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    Hi,

    SFTP issue seems to be related to the wrong path – the app probably tries to upload files in the root directory where there are no permissions

    Regarding GIT – it seems to be a problem with URLs in the configuration, because you got error 404 in the alert

    Hi. I don’t think I could have made a mistake everywhere…

    When sync sftp/ssh in the server logs I see a connect from publii, but I dont see attempts to send the file.
    I don’t see errors to upload files in the root directory.

    With GitHub, I can be wrong, but I can’t be too sure where to go wrong.

    eAmzY6B.png (622×202) (imgur.com)

    In log

    “Git Debug ” it is normal?

    My settings

    UPD: I found problem reason the Git. In the field Username, you must enter e-mail and not Username. 

    But i have new problem – in the repositoy EMPTY – files didn’t go there

    In logs

    #11161
    Avatar photo[anonymous]

    UPD. Publii don’t send files on Git. In GitHub, my token “never used”

    Same as with sftp. It looks like it emulates the work rather than working

    #11176
    Avatar photo[anonymous]

    In search of the problem I installed Publii on the new PC.

    1. First sync with github

    In search of the problem I installed on the new PC

    [Wed, 29 Nov 2023 10:57:21 GMT] ERROR: InternalError: An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: Index file is empty (.git/index)

    I don’t know what it is. Following the link problems when using something with SalesForce. I have a clean PC and SalesForce I do not use

    2) Test with sftp sync

    [Wed, 29 Nov 2023 11:00:22 GMT] ERR (1): Error: connect: getConnection: All configured authentication methods failed

    it’s definitely something on the side Publi….

    #11177
    Avatar photo[anonymous]
    1. First sync with github –

    Need to remove the folder . git in outputs for correction

    #11250
    Avatar photo[anonymous]

    Thanks!