Hey I am trying to run the lean live command in the terminal to deploy my algorithm which has worked for me before but now with this newer algorithm I am getting an error message:
Downloading 'QuantConnect.InteractiveBrokersBrokerage.2.5.16111.nupkg'
Error: [Errno 13] Permission denied:
'/home/trader/.lean/modules/QuantConnect.InteractiveBrokersBrokerage.2.5.16111.nupkg'
I have tried searching online for answers but couldn't find any would really appreciate some help thanks!
Nicholas Muerzl
Chat GPT fixed the issue ended up checking the permissions for the directory with this command:
ls -l /home/trader/.lean/modules/
Said that permission was for root and not trader so I used this command to change it to the user called trader:
sudo chown -R trader:trader /home/trader/.lean/modules/
Â
Mia Alissi
I'm glad to hear that you were able to resolve the issue, Nicholas! The commands you used are indeed the correct ones for checking the permissions of a directory (
ls -l
) and for changing the ownership of a file or directory (sudo chown -R
).Just to clarify for anyone else who might be reading:
ls -l /home/trader/.lean/modules/
lists the files in the/home/trader/.lean/modules/
directory in long format, which includes file permissions and ownership information.sudo chown -R trader:trader /home/trader/.lean/modules/
changes the owner and group of the/home/trader/.lean/modules/
directory (and all files and directories within it, due to the-R
flag for recursive) totrader
.Remember to be careful when changing file or directory permissions and ownership, and only do so if you're sure it's safe and necessary.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Nicholas Muerzl
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!