# Can't cd to /home/ubuntu/project

**URL:** <https://community.jenkins.io/t/cant-cd-to-home-ubuntu-project/13349>\
**Category:** Using Jenkins\
**Tags:** question, pipeline\
**Created:** [March 14, 2024, 6:48pm UTC](https://community.jenkins.io/t/cant-cd-to-home-ubuntu-project/13349 "2024-03-14T18:48:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassanhah](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/hassanhah/32/7431_2.png) [@hassanhah](https://community.jenkins.io/u/hassanhah)\
**Post date:** [March 14, 2024, 6:48pm UTC](https://community.jenkins.io/t/cant-cd-to-home-ubuntu-project/13349/1 "2024-03-14T18:48:33Z")

</div>

Building on the built-in node in workspace /var/lib/jenkins/workspace/Todo-Dev  
[Todo-Dev] $ /bin/sh -xe /tmp/jenkins16959336502711811594.sh

- cd /home/ubuntu/projects/django-todo  
/tmp/jenkins16959336502711811594.sh: 2: cd: can’t cd to /home/ubuntu/projects/django-todo  
Build step ‘Execute shell’ marked build as failure  
Finished: FAILURE

Jenkins setup:

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [March 14, 2024, 10:35pm UTC](https://community.jenkins.io/t/cant-cd-to-home-ubuntu-project/13349/2 "2024-03-14T22:35:12Z")

</div>

The Jenkins controller is running as a user that does not have permission to change directory to “/home/ubuntu/projects/django-todo”. There are many alternatives to solve that specific problem, but the log output hints that you may be just getting started with Jenkins and would benefit from the [Jenkins tutorials](https://www.jenkins.io/doc/tutorials/).

Save your project in a source code repository (like GitHub, Bitbucket, GitLab, or Gitea), then checkout that source code from your Jenkins jobs and build from the copy that Jenkins retrieved from the source code repository. Define a Jenkins agent so that you’re running jobs on a Jenkins agent instead of running them on the Jenkins controller.

The [Jenkins tutorials](https://www.jenkins.io/doc/tutorials/#tools) can help you understand how to do those types of things. Since your command line mentions Django, you might try the [“Build a Python app with PyInstaller” tutorial](https://www.jenkins.io/doc/tutorials/build-a-python-app-with-pyinstaller/)
