Closed akosma closed 2 years ago
@akosma thanks for creating this issue! Looks like this is a permission problem within the development container. You could erase the replacePods[*].image
config option and try to develop directly in your akosma/app
container which might have the correct permissions defined. In general, DevSpace will need read / write permissions to the folders you want to sync between your local and remote environment, so make sure that the default user has access within the container to those folders.
Thanks a lot for the tip @FabianKramm ! I commented out that part, and tried again, but without success:
$ devspace dev
[info] Using namespace 'devspace-test'
[info] Using kube context 'devspace-test/api-exoscale-ch-gva-2-0-appuio-cloud:6443/roil-akosmaczewski1'
[info] Execute 'helm upgrade devspace-quickstart-golang --namespace devspace-test --values /tmp/2282423987 --install /home/akosma/.devspace/component-chart/component-chart-0.8.4.tgz --kube-context devspace-test/api-exoscale-ch-gva-2-0-appuio-cloud:6443/roil-akosmaczewski1'
[done] √ Deployed helm chart (Release revision: 5)
[done] √ Successfully deployed devspace-quickstart-golang with helm
#########################################################
[info] DevSpace UI available at: http://localhost:8090
#########################################################
[0:sync] Waiting for containers to start...
[0:ports] Port-Forwarding: Waiting for containers to start...
[0:sync] Starting sync...
[0:ports] Port forwarding started on 8080:8080 (devspace-test/devspace-quickstart-golang-d56988855-97tjp)
[fatal] start sync: start sync: error executing tar: time="2022-02-14T13:43:08Z" level=error msg="exec failed: container_linux.go:380: starting container process caused: exec: \"tar\": executable file not found in $PATH"
: command terminated with exit code 1
@akosma seems like your container has no tar executable in path. DevSpace usually requires some sort of development container in which paths are synced from the local machine and build chains are available to build the executable. Usually this can be accomplished by using multi stage builds with docker and then using an intermediate container as development container.
Since you are working with OpenShift and non root containers are default there, you will also need to make sure that you have sufficient permissions in that development container to change the paths you will need access to while developing.
Thanks for your help. We're going to stop evaluating devspace for the moment. I suggest to add an FAQ entry about OpenShift to the project, since devspace does not support it off-the-box at the moment. Thanks!
What happened?
Following the Quickstart Guide with an OpenShift 4.9 cluster, the command
devspace dev
does not work as expected. I'm working on this ticket to document how to use DevSpace with APPUiO Cloud, an OpenShift 4.9 based platform from Switzerland.What did you expect to happen instead?
It should have worked so as to continue with further steps of the tutorial.
How can we reproduce the bug? (as minimally and precisely as possible)
My devspace.yaml:
Local Environment:
Kubernetes Cluster:
oc version
) Client Version: 4.8.0-202107292232.p0.git.1077b05.assembly.stream-1077b05 Kubernetes Version: v1.22.3+e790d7f(output of
kubectl version
) Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.2", GitCommit:"9d142434e3af351a628bffee3939e64c681afa4d", GitTreeState:"clean", BuildDate:"2022-01-19T17:35:46Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3+e790d7f", GitCommit:"3a0f2c90b43e6cffd07f57b5b78dd9f083e47ee2", GitTreeState:"clean", BuildDate:"2021-12-14T02:10:38Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}Anything else we need to know?
devspace deploy -p production
works without problem. The application is deployed as expected.This is the output of the
devspace dev
command:/kind bug