Home  /  Resources & support  /  FAQs  /  Common error messages when updating Stata

Common error messages when updating Stata

Title   Common error messages when updating Stata
Author Kerry Kammire, StataCorp

timeout error: r(2)

This error can sometimes be caused by a firewall or permissions issue. You can see a short discussion of this "timeout" error on the following webpage:

https://www.stata.com/support/faqs/web/common-connection-error-messages/

If the automatic updates are giving you trouble due to firewall or other Internet connection issues, you can perform a manual update instead. When you want to perform a manual update, follow the instructions at

http://www.stata.com/support/updates/stata17.html

errors: r(677) or r(601)

On some networks, you will need to specify a proxy host under "General Preferences", located in the Stata menu. For more details about a proxy host, you can see the following FAQ:

http://www.stata.com/support/faqs/web/using-stata-with-proxy-server/

If this is a firewall issue and your computer is part of a school or business network, then you may need to speak with your network administrator to change the whitelist for the firewall.

error: r(603)

Check the permissions of the Stata installation directory to which you are downloading, and make sure you have write permissions. If you do not know which directory Stata is installed in, open Stata and type sysdir in the Stata Command window. The first path, STATA, is the path to the Stata installation directory.

Java: Java installation not found

This error often occurs when an update did not get installed correctly. The first step is to force an update with the following command:

update all,  force

This should download a new copy of Java to work with Stata.

Java: Could not move java to .old/

To resolve this issue, open the Stata installation directory. Try deleting the /Utilities/java folder and the /Utilities/.old folder (if it exists), and then run:

update all,  force

If you do not know which directory Stata is installed in, open Stata and type sysdir in the Stata Command window. The first path, STATA, is the path to the Stata installation directory.

Python: Could not move pystata to .old/

To resolve this issue, open the Stata installation directory. Try deleting the /Utilities/java folder and the /Utilities/.old folder (if it exists), and then run:

update all,  force

If you do not know which directory Stata is installed in, open Stata and type sysdir in the Stata Command window. The first path, STATA, is the path to the Stata installation directory.