Closed cedriclombardot closed 1 year ago
Got this error at container starting
08/07/2023 15:48:45{"level":"error","time":"2023-07-08T13:48:45.276","sender":"service","message":"could not start FTP server: listen tcp :21: bind: permission denied"}
When use : SFTPGO_FTPDBINDINGS0__PORT: 21
But not using : SFTPGO_FTPDBINDINGS0__PORT: 2121
Can it be selinux problem inside the container ? I've disabled it on my host
Using docker compose :
version: "2" services: sftp: image: drakkan/sftpgo:v2.5-plugins ports: - "21:2121" network_mode: "host" environment: SFTPGO_FTPD__BINDINGS__0__PORT: 2121 SFTPGO_FTPD__BINDINGS__0__FORCE_PASSIVE_IP: MY_IP
Server starting
v2.5-plugins
?
Community Docker image
08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.602","sender":"service","message":"starting SFTPGo 2.5.2-a503feaa-2023-06-17T16:50:53Z +metrics +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +unixcrypt +portable, config dir: ., config file: , log max size: 10 log max backups: 5 log max age: 28 log level: debug, log compress: false, log utc time: false, load data from: \"\", grace time: 0 secs"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.604","sender":"config","message":"unable to read env files from \"env.d\": open env.d: no such file or directory"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.614","sender":"config","message":"config file used: '\"/etc/sftpgo/sftpgo.json\"', config loaded: {Common:{IdleTimeout:15 UploadMode:0 Actions:{ExecuteOn:[] ExecuteSync:[] Hook:} SetstatMode:0 RenameMode:0 TempPath: ProxyProtocol:0 ProxyAllowed:[] ProxySkipped:[] StartupHook: PostConnectHook: PostDisconnectHook: DataRetentionHook: MaxTotalConnections:0 MaxPerHostConnections:20 AllowListStatus:0 AllowSelfConnections:0 DefenderConfig:{Enabled:false Driver:memory BanTime:30 BanTimeIncrement:50 Threshold:15 ScoreInvalid:2 ScoreValid:1 ScoreLimitExceeded:3 ScoreNoAuth:0 ObservationTime:30 EntriesSoftLimit:100 EntriesHardLimit:150} RateLimitersConfig:[{Average:0 Period:1000 Burst:1 Type:2 Protocols:[SSH FTP DAV HTTP] GenerateDefenderEvents:false EntriesSoftLimit:100 EntriesHardLimit:150}] idleTimeoutAsDuration:0 idleLoginTimeout:0 defender:<nil> allowList:<nil> rateLimitersList:<nil> proxyAllowed:[] proxySkipped:[]} ACME:{Email: KeyType:4096 CertsPath:certs CAEndpoint:https://acme-v02.api.letsencrypt.org/directory Domains:[] RenewDays:30 HTTP01Challenge:{Port:80 WebRoot: ProxyHeader:} TLSALPN01Challenge:{Port:0} accountConfigPath: accountKeyPath: lockPath: tempDir:} SFTPD:{Banner:SFTPGo_2.5.2 Bindings:[{Address: Port:2022 ApplyProxyConfig:true}] MaxAuthTries:0 HostKeys:[] HostCertificates:[] HostKeyAlgorithms:[] Moduli:[] KexAlgorithms:[] Ciphers:[] MACs:[] TrustedUserCAKeys:[] RevokedUserCertsFile: LoginBannerFile: EnabledSSHCommands:[md5sum sha1sum sha256sum cd pwd scp] KeyboardInteractiveAuthentication:true KeyboardInteractiveHook: PasswordAuthentication:true FolderPrefix: certChecker:<nil> parsedUserCAKeys:[]} FTPD:{Bindings:[{Address: Port:21 ApplyProxyConfig:true TLSMode:0 CertificateFile: CertificateKeyFile: MinTLSVersion:12 ForcePassiveIP:51.68.79.156 PassiveIPOverrides:[] PassiveHost: ClientAuthType:0 TLSCipherSuites:[] PassiveConnectionsSecurity:0 ActiveConnectionsSecurity:0 Debug:false ciphers:[]}] Banner:SFTPGo 2.5.2 ready BannerFile: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] ActiveTransfersPortNon20:true DisableActiveMode:false EnableSite:false HASHSupport:0 CombineSupport:0 PassivePortRange:{Start:50000 End:50100} acmeDomain:} WebDAVD:{Bindings:[{Address: Port:0 EnableHTTPS:false CertificateFile: CertificateKeyFile: MinTLSVersion:12 ClientAuthType:0 TLSCipherSuites:[] Prefix: ProxyAllowed:[] ClientIPProxyHeader: ClientIPHeaderDepth:0 DisableWWWAuthHeader:false allowHeadersFrom:[]}] CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] Cors:{AllowedOrigins:[] AllowedMethods:[] AllowedHeaders:[] ExposedHeaders:[] AllowCredentials:false Enabled:false MaxAge:0 OptionsPassthrough:false OptionsSuccessStatus:0 AllowPrivateNetwork:false} Cache:{Users:{ExpirationTime:0 MaxSize:50} MimeTypes:{Enabled:true MaxSize:1000 CustomMappings:[]}} acmeDomain:} ProviderConf:{Driver:sqlite Name:sftpgo.db Host: Port:0 Username: Password: SSLMode:0 DisableSNI:false TargetSessionAttrs: RootCert: ClientCert: ClientKey: ConnectionString: SQLTablesPrefix: TrackQuota:2 PoolSize:0 UsersBaseDir:/srv/sftpgo/data Actions:{ExecuteOn:[] ExecuteFor:[] Hook:} ExternalAuthHook: ExternalAuthScope:0 PreLoginHook: PostLoginHook: PostLoginScope:0 CheckPasswordHook: CheckPasswordScope:0 UpdateMode:0 PasswordHashing:{BcryptOptions:{Cost:10} Argon2Options:{Memory:65536 Iterations:1 Parallelism:2} Algo:bcrypt} PasswordValidation:{Admins:{MinEntropy:0} Users:{MinEntropy:0}} PasswordCaching:true DelayedQuotaUpdate:0 CreateDefaultAdmin:false NamingRules:5 IsShared:0 Node:{Host: Port:0 Proto:http} BackupsPath:/srv/sftpgo/backups} HTTPDConfig:{Bindings:[{Address: Port:8080 EnableWebAdmin:true EnableWebClient:true EnableRESTAPI:true EnabledLoginMethods:0 EnableHTTPS:false CertificateFile: CertificateKeyFile: MinTLSVersion:12 ClientAuthType:0 TLSCipherSuites:[] ProxyAllowed:[] ClientIPProxyHeader: ClientIPHeaderDepth:0 HideLoginURL:0 RenderOpenAPI:true WebClientIntegrations:[] OIDC:{ClientID: ClientSecret: ConfigURL: RedirectBaseURL: UsernameField: RoleField: ImplicitRoles:false Scopes:[openid profile email] CustomFields:[] InsecureSkipSignatureCheck:false Debug:false provider:<nil> verifier:<nil> providerLogoutURL: oauth2Config:<nil>} Security:{Enabled:false AllowedHosts:[] AllowedHostsAreRegex:false HostsProxyHeaders:[] HTTPSRedirect:false HTTPSHost: HTTPSProxyHeaders:[] STSSeconds:0 STSIncludeSubdomains:false STSPreload:false ContentTypeNosniff:false ContentSecurityPolicy: PermissionsPolicy: CrossOriginOpenerPolicy: ExpectCTHeader: proxyHeaders:[]} Branding:{WebAdmin:{Name: ShortName: LogoPath: LoginImagePath: FaviconPath: DisclaimerName: DisclaimerPath: DefaultCSS: ExtraCSS:[]} WebClient:{Name: ShortName: LogoPath: LoginImagePath: FaviconPath: DisclaimerName: DisclaimerPath: DefaultCSS: ExtraCSS:[]}} allowHeadersFrom:[]}] TemplatesPath:templates StaticFilesPath:static OpenAPIPath:openapi WebRoot: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] SigningPassphrase: TokenValidation:0 MaxUploadFileSize:0 Cors:{AllowedOrigins:[] AllowedMethods:[] AllowedHeaders:[] ExposedHeaders:[] AllowCredentials:false Enabled:false MaxAge:0 OptionsPassthrough:false OptionsSuccessStatus:0 AllowPrivateNetwork:false} Setup:{InstallationCode: InstallationCodeHint:Installation code} HideSupportLink:false acmeDomain:} HTTPConfig:{Timeout:20 RetryWaitMin:2 RetryWaitMax:30 RetryMax:3 CACertificates:[] Certificates:[] SkipTLSVerify:false Headers:[] customTransport:<nil>} CommandConfig:{Timeout:30 Env:[] Commands:[]} KMSConfig:{Secrets:{URL: MasterKeyPath: MasterKeyString: masterKey:}} MFAConfig:{TOTP:[{Name:Default Issuer:SFTPGo Algo:sha1 algo:0}]} TelemetryConfig:{BindPort:0 BindAddress:127.0.0.1 EnableProfiler:false AuthUserFile: CertificateFile: CertificateKeyFile: TLSCipherSuites:[] MinTLSVersion:12} PluginsConfig:[] SMTPConfig:{Host: Port:25 From: User: Password: AuthType:0 Encryption:0 Domain: TemplatesPath:templates Debug:0 OAuth2:{Provider:0 Tenant: ClientID: ClientSecret: RefreshToken: mu:<nil> config:<nil> accessToken:<nil>}}}"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.614","sender":"kms","message":"secret provider registered for scheme: \"builtin\", encrypted status: \"AES-256-GCM\""} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.614","sender":"kms","message":"secret provider registered for scheme: \"local\", encrypted status: \"Secretbox\""} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.614","sender":"dataprovider_sqlite","message":"sqlite database handle created, connection string: \"file:sftpgo.db?cache=shared&_foreign_keys=1\""} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.663","sender":"dataprovider_sqlite","message":"sql database is up to date, current version: 28"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.700","sender":"dataprovider_sqlite","message":"absolute backup path \"/srv/sftpgo/backups\""} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.700","sender":"plugins","message":"initialize"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.700","sender":"dataprovider_sqlite","message":"delayed quota update loop started, wait time: 0s"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.701","sender":"util","message":"found share data path for name \"templates\": \"/usr/share/sftpgo/templates\""} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.701","sender":"dataprovider_sqlite","message":"delayed quota update loop ended, wait time: 0s"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.701","sender":"smtp","message":"loading templates from \"/usr/share/sftpgo/templates/email\""} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.709","sender":"smtp","message":"activating initial config"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.709","sender":"smtp","message":"configuration disabled, email capabilities will not be available"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.709","sender":"eventmanager","message":"loading updated rules"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.718","sender":"eventmanager","message":"recently updated event rules loaded: 0"} 08/07/2023 15:57:18{"level":"debug","time":"2023-07-08T13:57:18.718","sender":"eventmanager","message":"event rules updated, fs events: 0, provider events: 0, schedules: 0, ip blocked events: 0, certificate events: 0, IDP login events: 0"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.718","sender":"common","message":"scheduled overquota transfers check, schedule \"@every 1m0s\""} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.718","sender":"common","message":"scheduled idle connections check, schedule \"@every 3m0s\""} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.718","sender":"common","message":"using memory transfer checker"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.722","sender":"acme","message":"no domains configured, acme disabled"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.723","sender":"service","message":"WebDAV server not started, disabled in config file"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.723","sender":"service","message":"telemetry server not started, disabled in config file"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.723","sender":"service","message":"initializing SFTP server with config {Banner:SFTPGo_2.5.2 Bindings:[{Address: Port:2022 ApplyProxyConfig:true}] MaxAuthTries:0 HostKeys:[] HostCertificates:[] HostKeyAlgorithms:[] Moduli:[] KexAlgorithms:[] Ciphers:[] MACs:[] TrustedUserCAKeys:[] RevokedUserCertsFile: LoginBannerFile: EnabledSSHCommands:[md5sum sha1sum sha256sum cd pwd scp] KeyboardInteractiveAuthentication:true KeyboardInteractiveHook: PasswordAuthentication:true FolderPrefix: certChecker:<nil> parsedUserCAKeys:[]}"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.730","sender":"ftpd","message":"initializing FTP server with config {Bindings:[{Address: Port:21 ApplyProxyConfig:true TLSMode:0 CertificateFile: CertificateKeyFile: MinTLSVersion:12 ForcePassiveIP:51.68.79.156 PassiveIPOverrides:[] PassiveHost: ClientAuthType:0 TLSCipherSuites:[] PassiveConnectionsSecurity:0 ActiveConnectionsSecurity:0 Debug:false ciphers:[]}] Banner:SFTPGo 2.5.2 ready BannerFile: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] ActiveTransfersPortNon20:true DisableActiveMode:false EnableSite:false HASHSupport:0 CombineSupport:0 PassivePortRange:{Start:50000 End:50100} acmeDomain:}"} 08/07/2023 15:57:18{"level":"info","time":"2023-07-08T13:57:18.730","sender":"ftpd","message":"starting FTP serving, binding: :21"} 08/07/2023 15:57:18{"level":"error","time":"2023-07-08T13:57:18.731","sender":"ftpserverlib","server_id":"FTP_0","err":"listen tcp :21: bind: permission denied","message":"Cannot listen"} 08/07/2023 15:57:18{"level":"error","time":"2023-07-08T13:57:18.732","sender":"service","message":"could not start FTP server: listen tcp :21: bind: permission denied"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.789","sender":"service","message":"starting SFTPGo 2.5.2-a503feaa-2023-06-17T16:50:53Z +metrics +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +unixcrypt +portable, config dir: ., config file: , log max size: 10 log max backups: 5 log max age: 28 log level: debug, log compress: false, log utc time: false, load data from: \"\", grace time: 0 secs"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.789","sender":"config","message":"unable to read env files from \"env.d\": open env.d: no such file or directory"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.798","sender":"config","message":"config file used: '\"/etc/sftpgo/sftpgo.json\"', config loaded: {Common:{IdleTimeout:15 UploadMode:0 Actions:{ExecuteOn:[] ExecuteSync:[] Hook:} SetstatMode:0 RenameMode:0 TempPath: ProxyProtocol:0 ProxyAllowed:[] ProxySkipped:[] StartupHook: PostConnectHook: PostDisconnectHook: DataRetentionHook: MaxTotalConnections:0 MaxPerHostConnections:20 AllowListStatus:0 AllowSelfConnections:0 DefenderConfig:{Enabled:false Driver:memory BanTime:30 BanTimeIncrement:50 Threshold:15 ScoreInvalid:2 ScoreValid:1 ScoreLimitExceeded:3 ScoreNoAuth:0 ObservationTime:30 EntriesSoftLimit:100 EntriesHardLimit:150} RateLimitersConfig:[{Average:0 Period:1000 Burst:1 Type:2 Protocols:[SSH FTP DAV HTTP] GenerateDefenderEvents:false EntriesSoftLimit:100 EntriesHardLimit:150}] idleTimeoutAsDuration:0 idleLoginTimeout:0 defender:<nil> allowList:<nil> rateLimitersList:<nil> proxyAllowed:[] proxySkipped:[]} ACME:{Email: KeyType:4096 CertsPath:certs CAEndpoint:https://acme-v02.api.letsencrypt.org/directory Domains:[] RenewDays:30 HTTP01Challenge:{Port:80 WebRoot: ProxyHeader:} TLSALPN01Challenge:{Port:0} accountConfigPath: accountKeyPath: lockPath: tempDir:} SFTPD:{Banner:SFTPGo_2.5.2 Bindings:[{Address: Port:2022 ApplyProxyConfig:true}] MaxAuthTries:0 HostKeys:[] HostCertificates:[] HostKeyAlgorithms:[] Moduli:[] KexAlgorithms:[] Ciphers:[] MACs:[] TrustedUserCAKeys:[] RevokedUserCertsFile: LoginBannerFile: EnabledSSHCommands:[md5sum sha1sum sha256sum cd pwd scp] KeyboardInteractiveAuthentication:true KeyboardInteractiveHook: PasswordAuthentication:true FolderPrefix: certChecker:<nil> parsedUserCAKeys:[]} FTPD:{Bindings:[{Address: Port:21 ApplyProxyConfig:true TLSMode:0 CertificateFile: CertificateKeyFile: MinTLSVersion:12 ForcePassiveIP:51.68.79.156 PassiveIPOverrides:[] PassiveHost: ClientAuthType:0 TLSCipherSuites:[] PassiveConnectionsSecurity:0 ActiveConnectionsSecurity:0 Debug:false ciphers:[]}] Banner:SFTPGo 2.5.2 ready BannerFile: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] ActiveTransfersPortNon20:true DisableActiveMode:false EnableSite:false HASHSupport:0 CombineSupport:0 PassivePortRange:{Start:50000 End:50100} acmeDomain:} WebDAVD:{Bindings:[{Address: Port:0 EnableHTTPS:false CertificateFile: CertificateKeyFile: MinTLSVersion:12 ClientAuthType:0 TLSCipherSuites:[] Prefix: ProxyAllowed:[] ClientIPProxyHeader: ClientIPHeaderDepth:0 DisableWWWAuthHeader:false allowHeadersFrom:[]}] CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] Cors:{AllowedOrigins:[] AllowedMethods:[] AllowedHeaders:[] ExposedHeaders:[] AllowCredentials:false Enabled:false MaxAge:0 OptionsPassthrough:false OptionsSuccessStatus:0 AllowPrivateNetwork:false} Cache:{Users:{ExpirationTime:0 MaxSize:50} MimeTypes:{Enabled:true MaxSize:1000 CustomMappings:[]}} acmeDomain:} ProviderConf:{Driver:sqlite Name:sftpgo.db Host: Port:0 Username: Password: SSLMode:0 DisableSNI:false TargetSessionAttrs: RootCert: ClientCert: ClientKey: ConnectionString: SQLTablesPrefix: TrackQuota:2 PoolSize:0 UsersBaseDir:/srv/sftpgo/data Actions:{ExecuteOn:[] ExecuteFor:[] Hook:} ExternalAuthHook: ExternalAuthScope:0 PreLoginHook: PostLoginHook: PostLoginScope:0 CheckPasswordHook: CheckPasswordScope:0 UpdateMode:0 PasswordHashing:{BcryptOptions:{Cost:10} Argon2Options:{Memory:65536 Iterations:1 Parallelism:2} Algo:bcrypt} PasswordValidation:{Admins:{MinEntropy:0} Users:{MinEntropy:0}} PasswordCaching:true DelayedQuotaUpdate:0 CreateDefaultAdmin:false NamingRules:5 IsShared:0 Node:{Host: Port:0 Proto:http} BackupsPath:/srv/sftpgo/backups} HTTPDConfig:{Bindings:[{Address: Port:8080 EnableWebAdmin:true EnableWebClient:true EnableRESTAPI:true EnabledLoginMethods:0 EnableHTTPS:false CertificateFile: CertificateKeyFile: MinTLSVersion:12 ClientAuthType:0 TLSCipherSuites:[] ProxyAllowed:[] ClientIPProxyHeader: ClientIPHeaderDepth:0 HideLoginURL:0 RenderOpenAPI:true WebClientIntegrations:[] OIDC:{ClientID: ClientSecret: ConfigURL: RedirectBaseURL: UsernameField: RoleField: ImplicitRoles:false Scopes:[openid profile email] CustomFields:[] InsecureSkipSignatureCheck:false Debug:false provider:<nil> verifier:<nil> providerLogoutURL: oauth2Config:<nil>} Security:{Enabled:false AllowedHosts:[] AllowedHostsAreRegex:false HostsProxyHeaders:[] HTTPSRedirect:false HTTPSHost: HTTPSProxyHeaders:[] STSSeconds:0 STSIncludeSubdomains:false STSPreload:false ContentTypeNosniff:false ContentSecurityPolicy: PermissionsPolicy: CrossOriginOpenerPolicy: ExpectCTHeader: proxyHeaders:[]} Branding:{WebAdmin:{Name: ShortName: LogoPath: LoginImagePath: FaviconPath: DisclaimerName: DisclaimerPath: DefaultCSS: ExtraCSS:[]} WebClient:{Name: ShortName: LogoPath: LoginImagePath: FaviconPath: DisclaimerName: DisclaimerPath: DefaultCSS: ExtraCSS:[]}} allowHeadersFrom:[]}] TemplatesPath:templates StaticFilesPath:static OpenAPIPath:openapi WebRoot: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] SigningPassphrase: TokenValidation:0 MaxUploadFileSize:0 Cors:{AllowedOrigins:[] AllowedMethods:[] AllowedHeaders:[] ExposedHeaders:[] AllowCredentials:false Enabled:false MaxAge:0 OptionsPassthrough:false OptionsSuccessStatus:0 AllowPrivateNetwork:false} Setup:{InstallationCode: InstallationCodeHint:Installation code} HideSupportLink:false acmeDomain:} HTTPConfig:{Timeout:20 RetryWaitMin:2 RetryWaitMax:30 RetryMax:3 CACertificates:[] Certificates:[] SkipTLSVerify:false Headers:[] customTransport:<nil>} CommandConfig:{Timeout:30 Env:[] Commands:[]} KMSConfig:{Secrets:{URL: MasterKeyPath: MasterKeyString: masterKey:}} MFAConfig:{TOTP:[{Name:Default Issuer:SFTPGo Algo:sha1 algo:0}]} TelemetryConfig:{BindPort:0 BindAddress:127.0.0.1 EnableProfiler:false AuthUserFile: CertificateFile: CertificateKeyFile: TLSCipherSuites:[] MinTLSVersion:12} PluginsConfig:[] SMTPConfig:{Host: Port:25 From: User: Password: AuthType:0 Encryption:0 Domain: TemplatesPath:templates Debug:0 OAuth2:{Provider:0 Tenant: ClientID: ClientSecret: RefreshToken: mu:<nil> config:<nil> accessToken:<nil>}}}"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.799","sender":"kms","message":"secret provider registered for scheme: \"local\", encrypted status: \"Secretbox\""} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.799","sender":"kms","message":"secret provider registered for scheme: \"builtin\", encrypted status: \"AES-256-GCM\""} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.799","sender":"dataprovider_sqlite","message":"sqlite database handle created, connection string: \"file:sftpgo.db?cache=shared&_foreign_keys=1\""} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.853","sender":"dataprovider_sqlite","message":"sql database is up to date, current version: 28"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"dataprovider_sqlite","message":"absolute backup path \"/srv/sftpgo/backups\""} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"plugins","message":"initialize"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"dataprovider_sqlite","message":"delayed quota update loop started, wait time: 0s"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"dataprovider_sqlite","message":"delayed quota update loop ended, wait time: 0s"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"util","message":"found share data path for name \"templates\": \"/usr/share/sftpgo/templates\""} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.888","sender":"smtp","message":"loading templates from \"/usr/share/sftpgo/templates/email\""} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.896","sender":"smtp","message":"activating initial config"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.896","sender":"smtp","message":"configuration disabled, email capabilities will not be available"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.896","sender":"eventmanager","message":"loading updated rules"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.906","sender":"eventmanager","message":"recently updated event rules loaded: 0"} 08/07/2023 15:57:33{"level":"debug","time":"2023-07-08T13:57:33.906","sender":"eventmanager","message":"event rules updated, fs events: 0, provider events: 0, schedules: 0, ip blocked events: 0, certificate events: 0, IDP login events: 0"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.907","sender":"common","message":"scheduled overquota transfers check, schedule \"@every 1m0s\""} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.907","sender":"common","message":"scheduled idle connections check, schedule \"@every 3m0s\""} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.907","sender":"common","message":"using memory transfer checker"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.911","sender":"acme","message":"no domains configured, acme disabled"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.912","sender":"service","message":"WebDAV server not started, disabled in config file"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.912","sender":"service","message":"telemetry server not started, disabled in config file"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.912","sender":"service","message":"initializing SFTP server with config {Banner:SFTPGo_2.5.2 Bindings:[{Address: Port:2022 ApplyProxyConfig:true}] MaxAuthTries:0 HostKeys:[] HostCertificates:[] HostKeyAlgorithms:[] Moduli:[] KexAlgorithms:[] Ciphers:[] MACs:[] TrustedUserCAKeys:[] RevokedUserCertsFile: LoginBannerFile: EnabledSSHCommands:[md5sum sha1sum sha256sum cd pwd scp] KeyboardInteractiveAuthentication:true KeyboardInteractiveHook: PasswordAuthentication:true FolderPrefix: certChecker:<nil> parsedUserCAKeys:[]}"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.921","sender":"ftpd","message":"initializing FTP server with config {Bindings:[{Address: Port:21 ApplyProxyConfig:true TLSMode:0 CertificateFile: CertificateKeyFile: MinTLSVersion:12 ForcePassiveIP:51.68.79.156 PassiveIPOverrides:[] PassiveHost: ClientAuthType:0 TLSCipherSuites:[] PassiveConnectionsSecurity:0 ActiveConnectionsSecurity:0 Debug:false ciphers:[]}] Banner:SFTPGo 2.5.2 ready BannerFile: CertificateFile: CertificateKeyFile: CACertificates:[] CARevocationLists:[] ActiveTransfersPortNon20:true DisableActiveMode:false EnableSite:false HASHSupport:0 CombineSupport:0 PassivePortRange:{Start:50000 End:50100} acmeDomain:}"} 08/07/2023 15:57:33{"level":"info","time":"2023-07-08T13:57:33.921","sender":"ftpd","message":"starting FTP serving, binding: :21"} 08/07/2023 15:57:33{"level":"error","time":"2023-07-08T13:57:33.922","sender":"ftpserverlib","server_id":"FTP_0","err":"listen tcp :21: bind: permission denied","message":"Cannot listen"} 08/07/2023 15:57:33{"level":"error","time":"2023-07-08T13:57:33.922","sender":"service","message":"could not start FTP server: listen tcp :21: bind: permission denied"}
Private user, home usecase (home backup/VPS), Professional user, 1 person business, Small business (3-person firm with file exchange?), Medium business
No response
Note was working if y rollback to v2.5.1-plugins
Just read the release notes and search the closed issues. Thank you
⚠️ This issue respects the following points: ⚠️
Bug description
Got this error at container starting
08/07/2023 15:48:45{"level":"error","time":"2023-07-08T13:48:45.276","sender":"service","message":"could not start FTP server: listen tcp :21: bind: permission denied"}
When use : SFTPGO_FTPDBINDINGS0__PORT: 21
But not using : SFTPGO_FTPDBINDINGS0__PORT: 2121
Can it be selinux problem inside the container ? I've disabled it on my host
Steps to reproduce
Using docker compose :
Expected behavior
Server starting
SFTPGo version
v2.5-plugins
Data provider
?
Installation method
Community Docker image
Configuration
Using docker compose :
Relevant log output
What are you using SFTPGo for?
Private user, home usecase (home backup/VPS), Professional user, 1 person business, Small business (3-person firm with file exchange?), Medium business
Additional info
No response