process not in workspace directory

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. 

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. 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.

Hi  ,

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. 

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

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. 

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

Thank you,

Sandeep

Hi Sandeep, 

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. 

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

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

Can you also run 

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. 

Can you also send the output of 

tables

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

Thanks,

Laura

Hello ,

Thank you for the prompt response. 

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

Hi Sandeep,

So after you run 

system"l “,getenv[`HOME],”/fundamentals_capstone_dbs/"

 you should be in the directory: “/home/jovyan/fundamentals_capstone_dbs”

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

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

 

Hello ,

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

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? 

Thanks,

Sandeep

Hi Sandeep, 

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

The contents should look like this: 

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

Then reopen Developer from the Launcher tab.

Hope this helps,

Laura

The workspace looks exactly the same. 

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

Have you tried to change directory? Can you run 

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. 

Let me know how you get on,

Laura

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

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

Hope this helps,

Sandeep

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. 

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

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

 

Hey Laura,

When I run the system “pwd”, it shows “/home/jovyan/fundamentals_capstone_dbs”. But when I run 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”. 

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

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. 

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

Laura

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

Hi Sandeep,

Can you try the following:

  1. Shut down Developer browser windows

2. 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

Unfortunately, that didn’t work either. 

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?

 

 

 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

 

Hey , 

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.

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

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

Thanks,

Michaela