# process not in workspace directory

**URL:** <https://forum.kx.com/t/process-not-in-workspace-directory/13033>\
**Category:** Community Support\
**Tags:** kx-academy\
**Created:** [October 17, 2023, 2:30pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033 "2023-10-17T14:30:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 17, 2023, 2:30pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/1 "2023-10-17T14:30:00Z")

</div>

Hello,

I have run into an issue regarding the **Fundamentals Capstone Project**. I have been working on the project for a while now and have been saving the .md file throughout the project. Even when I log off for a few hours and come back to work on it, I was always able to access the project the way I left it, until today morning.&nbsp;

When I try to run the lines of code I’d written yesterday, it displays a warning stating, " **process not in workspace directory**". I had completed all the exercises, except for three errors which I was planning to look into today. I tried to open and run the .md file I had saved, but the issue prevails.&nbsp;I have even tried to relaunch KX Developer from the terminal but to no avail.

Could anyone please suggest how I can resolve this?

Thanks in advance,

Sandeep.

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 9:25am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/2 "2023-10-18T09:25:00Z")

</div>

Hi&nbsp;&nbsp;,

My suggestion would be to save your code, and completely log out of the sandbox environment and relaunch it from the academy, re-run the steps to launch KX Developer and then paste your code back in.&nbsp;

It looks to me that your developer workspace is no longer logged in correctly, so best to start from the beginning again.

Let me know how you get on.

Thanks,

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 9:45am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/3 "2023-10-18T09:45:00Z")

</div>

Hey ,

I tried logging out and relaunching sandbox but its still the same. The directory in the terminal used to be ‘/home/jovyan/course-fundamentals-capstone’ but now its changed to ‘jovyan@jupyter-sandeepsarvan-40gmail-2ecom:~/course-fundamentals-capstone$’. Its the same problem once the developer is opened. When I run the first code to load the ‘/fundamentals\_capstone\_dbs/’ database, an error ‘/opt/kx/developer/workspace/\_nouser\_/funds\_capstone/badTrades.csv’ appears, which is the folder I had to save a table to in exercise 3.4.&nbsp;

Is there anyway I can change the directory back to /home/jovyan/course-fundamentals-capstone?

Thank you,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 10:00am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/4 "2023-10-18T10:00:00Z")

</div>

Hi Sandeep,&nbsp;

The directory you are in to run setup.sh seems correct, it should be ~/course-fundamentals-capstone.

You won’t be able to run that script unless you are in the correct directory.&nbsp;

Then when you launch Developer, your URL should look something like this:&nbsp;

Can you confirm that yours is similar with your own email address?

Can you also run&nbsp;

system “pwd”

and let me know the directory you are working from in your scratchpad?

It could be that you just need to change directory, but it could also be that the data has been corrupted by running through the steps multiple times and overwriting and re-writing your database.

If this is the case, I can help you wipe it and restart.&nbsp;

Can you also send the output of&nbsp;

tables

Hopefully we can get to the bottom of this for you.

Thanks,

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 10:16am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/5 "2023-10-18T10:16:00Z")

</div>

Hello&nbsp;,

Thank you for the prompt response.&nbsp;

The URL when I launch Developer is a little bit different from yours as seen in the image below.

I have also attached the output for both codes below.

Thank you,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 11:18am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/6 "2023-10-18T11:18:00Z")

</div>

Hi Sandeep,

So after you run&nbsp;

system"l “,getenv[`HOME],”/fundamentals\_capstone\_dbs/"

&nbsp;you should be in the directory:&nbsp;“/home/jovyan/fundamentals\_capstone\_dbs”

and from there you should be able to see the trade, quote and nbbo tables.&nbsp;

If you can’t see those tables, or you also see other tables, you may need to delete all tables from memory and reload.

Let me know how you get on.

Laura

&nbsp;

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 12:24pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/7 "2023-10-18T12:24:00Z")

</div>

Hello&nbsp;,

I tried running the line of code, but this is what comes up.&nbsp;

I could not see any tables at all in the directory. If I do need to delete all the tables from the memory, could you please advise me on how I would do it?&nbsp;

Thanks,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 12:55pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/8 "2023-10-18T12:55:00Z")

</div>

Hi Sandeep,&nbsp;

Can you switch to the Workspace tab on the righthand side of the window?

The contents should look like this:&nbsp;

Have you re-run the setup.sh script recently? If your workspace doesn’t look like the above I would suggest closing&nbsp;Developer, going back out to the terminal, and running the setup.sh script again.&nbsp;

Then reopen Developer from the Launcher tab.

Hope this helps,

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 1:10pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/9 "2023-10-18T13:10:00Z")

</div>

The workspace looks exactly the same.&nbsp;

I did re-run the script when I relaunched Developer from the terminal earlier on.

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 2:07pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/10 "2023-10-18T14:07:00Z")

</div>

Have you tried to change directory? Can you run&nbsp;

system “cd /home/jovyan/developer/workspace/ **nouser** /funds\_capstone”

If you are still getting an error message about badTrades.csv, you might need to delete the csv from the directory (you can do this from the scratchpad using system “rm badTrades.csv” or directly using your terminal.)

You can also go to your terminal and navigate around to see if your database looks okay.

If all else fails we can delete your entire session and let you start afresh (hopefully you have saved your code somewhere), but we would like to avoid that if possible.&nbsp;

Let me know how you get on,

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 2:20pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/11 "2023-10-18T14:20:00Z")

</div>

I don’t see an error message when I change the directory. I’m getting “::” as the result.&nbsp;

I’m not sure if I should be able to access any tables, but I am unable to yet.

Hope this helps,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 3:04pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/12 "2023-10-18T15:04:00Z")

</div>

If that didn’t throw an error then you should be in the correct working directory now.

system “pwd” or just \pwd will show you.&nbsp;

Can you try clearing your workspace and reloading the data now?&nbsp;

delete from `. system"l ",getenv[`HOME],“/fundamentals\_capstone\_dbs/”

Again, if you still get the badTrades error you got before, you should delete that file and try again.

Hope this helps,

Laura

&nbsp;

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 3:18pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/13 "2023-10-18T15:18:00Z")

</div>

Hey Laura,

When I run the system “pwd”, it shows&nbsp;“/home/jovyan/fundamentals\_capstone\_dbs”. But when I run&nbsp;system"l “,getenv[`HOME],”/fundamentals\_capstone\_dbs/" it still shows the “./opt/kx/developer/workspace/\_\_nouser\_\_/funds\_capstone/badTrades.csv” error. So I tried to delete the badTrades.csv file using system “rm badTrades.csv” which results in another error “rm: cannot remove ‘badTrades.csv’: No such file or directory”.&nbsp;

If I tried to delete the workspace from the change workspace option and tried to do it all again, would it make any difference?

Thanks,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 3:30pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/14 "2023-10-18T15:30:00Z")

</div>

Yes, you would need to either give the full filepath to badTrades.csv or change into the directory containing the file to use “rm badTrades.csv”

You can try to delete the workspace and then run the setup.sh script again if you would prefer.&nbsp;

Another option is to delete the whole project using your terminal, and launch the sandbox again from the Academy.&nbsp;

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 4:26pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/15 "2023-10-18T16:26:00Z")

</div>

I tried deleting the workspace from the change workspace option, but it didn’t work. I tried deleting the badTrades,csv file with the whole filepath from both directories using scratchpad and terminal, and it’s still the same result.

Could you please tell me how I could delete the whole project and restart it again because it seems like that is pretty much the only option left?

Thanks,

Sandeep

---

<div class="post-metadata">

**Author:** ![Laura2](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Laura2](https://forum.kx.com/u/Laura2)\
**Post date:** [October 18, 2023, 4:39pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/16 "2023-10-18T16:39:00Z")

</div>

Hi Sandeep,

Can you try the following:

1. Shut down Developer browser windows

2.&nbsp;File -\> Hub Control Panel -\> Stop My Server

1. Start My Server
2. Retrying the steps in the README

Let me know how you get on. This should reset all your processes.

Thanks,

Laura

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 5:02pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/17 "2023-10-18T17:02:00Z")

</div>

Unfortunately, that didn’t work either.&nbsp;

When I open my terminal, this is what comes up. This is different to what it was when I used to access Developer before this issue began. I’m not sure exactly what the line was, but it wasn’t this.

Is this in anyway significant?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michaela](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Michaela](https://forum.kx.com/u/Michaela)\
**Post date:** [October 18, 2023, 5:12pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/18 "2023-10-18T17:12:00Z")

</div>

&nbsp;You will need to follow the same steps as before outlined in the README.md file.

https://edu.kx.com/user/sandeepsarvan@gmail.com/lab/tree/course-fundamentals-capstone/README.md

&nbsp;

---

<div class="post-metadata">

**Author:** ![sandeepsarvan1](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sandeepsarvan1](https://forum.kx.com/u/sandeepsarvan1)\
**Post date:** [October 18, 2023, 5:44pm UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/19 "2023-10-18T17:44:00Z")

</div>

Hey&nbsp;,&nbsp;

I tried it again now, and a different error message popped up.

When I clicked OK, the Developer window opens and same problems are still there.

---

<div class="post-metadata">

**Author:** ![Michaela](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Michaela](https://forum.kx.com/u/Michaela)\
**Post date:** [October 19, 2023, 10:26am UTC](https://forum.kx.com/t/process-not-in-workspace-directory/13033/20 "2023-10-19T10:26:00Z")

</div>

Hi&nbsp;&nbsp;I have completely wiped your instance now. Can you try launching a fresh instance from&nbsp;https://kx.com/academy/modules/fundamentals-capstone/#introduction-capstone&nbsp;here please.

Please respond to my private message if you have any more trouble and I will help you directly.

Thanks,

Michaela
