question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support OpenShift

See original GitHub issue

Docker-sftp doesn’t work inside pod on Openshift 4

I have below exception during docker-sftp start on Openshift 4 (but it works fine on Openshift 3) :

2020-09-15 12:17:05.747 [INF] (ES.SFTP.Host.Program) Starting host 2020-09-15 12:17:06.091 [WRN] (Microsoft.AspNetCore.Server.Kestrel) Overriding address(es) ‘http://+:80’. Binding to endpoints defined in UseKestrel() instead. 2020-09-15 12:17:06.100 [INF] (Microsoft.Hosting.Lifetime) Now listening on: http://0.0.0.0:25080 2020-09-15 12:17:06.101 [DBG] (ES.SFTP.Host.HostedService) Starting 2020-09-15 12:17:06.102 [DBG] (ES.SFTP.Host.Orchestrator) Starting 2020-09-15 12:17:06.153 [FTL] (ES.SFTP.Host.Program) Host terminated unexpectedly System.UnauthorizedAccessException: Access to the path ‘/etc/sssd/sssd.conf’ is denied. —> System.IO.IOException: Permission denied — End of inner exception stack trace — at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at ES.SFTP.Host.Orchestrator.ConfigureAuthentication() in /src/ES.SFTP.Host/Orchestrator.cs:line 93 at ES.SFTP.Host.Orchestrator.Start() in /src/ES.SFTP.Host/Orchestrator.cs:line 63 at ES.SFTP.Host.HostedService.StartAsync(CancellationToken cancellationToken) in /src/ES.SFTP.Host/HostedService.cs:line 25 at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at ES.SFTP.Host.Program.Main(String[] args) in /src/ES.SFTP.Host/Program.cs:line 33

Can I some configure docker-sftp to store all its files inside “/tmp” directory? It seems that in Openshift 4 there are rights to create and edit files only inside “/tmp” directory

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
winromuluscommented, Sep 17, 2020

@VictorCardona @Sabik2006 - I have no experience with OpenShift but the application needs to be able to write files in the container in /etc/sssd/ and in /app/. Someone will need to investigate and propose a fix for this, someone with experience in OpenShift. I’ve tagged this as help wanted.

0reactions
stale[bot]commented, Oct 17, 2020

Automatically closed stale item.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenShift Online Support
OpenShift Online Support. With a Red Hat subscription, you have access to an around-the-clock global network of experienced, motivated, and knowledgeable ...
Read more >
Support overview | Support | OpenShift Container Platform 4.9
Get support: Visit the Red Hat Customer Portal to review knowledge base articles, submit a support case, and review additional product documentation and ......
Read more >
OpenShift Support
In addition to Kubenetes' ability of orchestrating containerized applications, OpenShift provides support for the complete CI/CD life cycle of applications, ...
Read more >
Azure Red Hat OpenShift – Kubernetes PaaS
Create public and private clusters in a few minutes. Deploy an Azure Red Hat OpenShift cluster across multiple Azure Availability Zones where supported....
Read more >
Red Hat OpenShift on IBM Cloud
Red Hat OpenShift on IBM Cloud. Fully automated. As-a-service. Extend into any on-prem, edge or public cloud environment with IBM Cloud Satellite.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found