emberstack / docker-sftp

SFTP Server for Docker
MIT License
196 stars 51 forks source link

hooks not running #60

Closed hbenaissa closed 3 years ago

hbenaissa commented 3 years ago

Hello,

the hooks is not running on Pod startup with the last version of Helm charts

Config section on values.yaml

  Global:
    Hooks:
      - OnServerStartup:
          - onStartup.sh : |
              #!/bin/bash
              echo "SSH service startup hook completed."

startup logs

2020-12-30 12:18:02.513 [INF] (ES.SFTP.Host.Program) Starting host
2020-12-30 12:18:03.083 [WRN] (Microsoft.AspNetCore.Server.Kestrel) Overriding address(es) 'http://+:80'. Binding to endpoints defined in UseKestrel() instead.
2020-12-30 12:18:03.098 [INF] (Microsoft.Hosting.Lifetime) Now listening on: http://0.0.0.0:25080
2020-12-30 12:18:03.099 [DBG] (ES.SFTP.Host.Configuration.ConfigurationService) Starting
2020-12-30 12:18:03.103 [DBG] (ES.SFTP.Host.Configuration.ConfigurationService) Validating and updating configuration
2020-12-30 12:18:03.116 [INF] (ES.SFTP.Host.Configuration.ConfigurationService) Configuration contains '6' user(s)
2020-12-30 12:18:03.117 [INF] (ES.SFTP.Host.Configuration.ConfigurationService) Started
2020-12-30 12:18:03.119 [DBG] (ES.SFTP.Host.Security.AuthenticationService) Starting
2020-12-30 12:18:03.119 [DBG] (ES.SFTP.Host.Security.AuthenticationService) Stopping SSSD service
2020-12-30 12:18:03.138 [DBG] (ES.SFTP.Host.Security.AuthenticationService) Applying SSSD configuration
2020-12-30 12:18:03.143 [DBG] (ES.SFTP.Host.Security.AuthenticationService) Installing PAM hook
2020-12-30 12:18:03.178 [DBG] (ES.SFTP.Host.Security.AuthenticationService) Restarting SSSD service
2020-12-30 12:18:03.286 [INF] (ES.SFTP.Host.Security.AuthenticationService) Started
2020-12-30 12:18:03.288 [DBG] (ES.SFTP.Host.Security.UserManagementService) Starting
2020-12-30 12:18:03.288 [DBG] (ES.SFTP.Host.Security.UserManagementService) Ensuring '/home' directory exists and has correct permissions
2020-12-30 12:18:03.290 [DBG] (ES.SFTP.Host.Security.UserManagementService) Ensuring group 'sftp-user-inventory' exists
2020-12-30 12:18:03.293 [INF] (ES.SFTP.Host.Security.UserManagementService) Creating group 'sftp-user-inventory'
2020-12-30 12:18:03.369 [INF] (ES.SFTP.Host.Security.UserManagementService) Synchronizing users and groups
2020-12-30 12:18:03.373 [INF] (ES.SFTP.Host.Security.UserManagementService) Processing user 'user1'
2020-12-30 12:18:03.376 [DBG] (ES.SFTP.Host.Security.UserManagementService) Creating user 'user1'
2020-12-30 12:18:03.480 [DBG] (ES.SFTP.Host.Security.UserManagementService) Adding user 'user1' to 'sftp-user-inventory'
2020-12-30 12:18:03.509 [DBG] (ES.SFTP.Host.Security.UserManagementService) Updating the password for user 'user1'
2020-12-30 12:18:03.534 [DBG] (ES.SFTP.Host.Security.UserManagementService) Updating the UID for user 'user1'
2020-12-30 12:18:03.650 [DBG] (ES.SFTP.Host.Security.UserManagementService) Creating group 'sftp-gid-1001' with GID '1001'
2020-12-30 12:18:03.678 [DBG] (ES.SFTP.Host.Security.UserManagementService) Adding user 'user1' to 'sftp-gid-1001'
2020-12-30 12:18:04.690 [INF] (ES.SFTP.Host.Security.UserManagementService) Started
2020-12-30 12:18:04.692 [DBG] (ES.SFTP.Host.SSH.SSHService) Starting
2020-12-30 12:18:04.701 [DBG] (ES.SFTP.Host.SSH.SSHService) Updating host key files
2020-12-30 12:18:04.702 [DBG] (ES.SFTP.Host.SSH.SSHService) Generating host key file '/etc/ssh/keys/ssh_host_ed25519_key'
2020-12-30 12:18:04.709 [DBG] (ES.SFTP.Host.SSH.SSHService) Generating host key file '/etc/ssh/keys/ssh_host_rsa_key'
2020-12-30 12:18:05.530 [DBG] (ES.SFTP.Host.SSH.SSHService) Copying '/etc/ssh/keys/ssh_host_ed25519_key' to '/etc/ssh/ssh_host_ed25519_key'
2020-12-30 12:18:05.534 [DBG] (ES.SFTP.Host.SSH.SSHService) Copying '/etc/ssh/keys/ssh_host_rsa_key' to '/etc/ssh/ssh_host_rsa_key'
2020-12-30 12:18:05.536 [DBG] (ES.SFTP.Host.SSH.SSHService) Copying '/etc/ssh/keys/ssh_host_ed25519_key.pub' to '/etc/ssh/ssh_host_ed25519_key.pub'
2020-12-30 12:18:05.539 [DBG] (ES.SFTP.Host.SSH.SSHService) Copying '/etc/ssh/keys/ssh_host_rsa_key.pub' to '/etc/ssh/ssh_host_rsa_key.pub'
2020-12-30 12:18:05.566 [INF] (ES.SFTP.Host.SSH.SSHService) Starting 'sshd' process
2020-12-30 12:18:05.576 [INF] (ES.SFTP.Host.SSH.SSHService) Started
2020-12-30 12:18:05.576 [VRB] (ES.SFTP.Host.SSH.SSHService) sshd - Server listening on 0.0.0.0 port 22.
2020-12-30 12:18:05.576 [VRB] (ES.SFTP.Host.SSH.SSHService) sshd - Server listening on :: port 22.
stale[bot] commented 3 years ago

Automatically marked as stale due to no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Automatically closed stale item.