How to Fix Komodo IDE 12.0.1 - Login Failed

Login failed: it appears you are offline.

After installing an open-source version of the Komodo IDE and attempting to log in to my ActiveState account, I was surprised to see a “Login failed. It appears you are offline” error message.

I could log in to my ActiveState account using my browser, so this “Login failed” was a real problem. Fortunately, after some searching, I found a potential solution on the following webpage: Login failed, it appears you are offline (again) - Discussions - Komodo IDE & Edit | Forums.

The solution simply bypasses the Sign-In window altogether. The solution I present below differs only by the tools I used to modify the komodo.jar file and, ultimately, the single line of code in the komodo.js file.

The Modified Solution:

The original solution requires using 7Zip. However, Window’s File Explorer provides a means to extract zip files.

Note that this will break any integrations with the ActiveState Platform and the ActiveState State Tool:

  1. Uninstall Komodo, then re-install and note the default install directory, something like this C:\Program Files (x86)\ActiveState Komodo IDE 12

  2. Open a Command Prompt and RUN AS ADMINISTRATOR

  3. Change the current working directory:

    1. cd C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome
  4. From the command line, rename komodo.jar to komodo.zip

    1. rename komodo.jar komodo.zip
  5. Open File Explorer and navigate to C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome

  6. Click on the komodo.zip file and an “Extract all” button appears on the toolbar above the list of files.

  7. Click the “Extract all” and extract the folders into the chrome folder

  8. A “Destination Folder Access Denied” window may appear. Check the box next to “Do this for all current items” then, click the “Continue” button.

  9. Three new subdirectories or folders should now appear in the “chrome” folder: content, locale, and skin

  10. Use an editor such as Notepad++ and RUN as ADMINISTRATOR to open and edit the following file in a text editor: content\komodo.js

  11. Comment out line 27 and save.

    1. The line should have the following on it:

      1. auth.authenticated((authenticated) => { if ( ! authenticated) openLoginDialog();});

      2. Add two forward slashes “//” to the beginning of line 27 as pictured below:

  12. In File Explorer, in the chrome folder, ctrl + click on the content, locale and skin folder. Then, on one of the highlighted files, right-click > Compress to… > ZIP File

  13. A window will appear stating, “Windows cannot create the Compressed Archive Folder here. Do you want it to be placed on the desktop instead?” Click “Yes,” and the compressed file will appear on your desktop.

  14. Note that the name of the zip file will be the same as the filename you right-clicked, except it will have a “.zip” extension. In my case, the file created was skin.zip.

  15. Locate the file on your desktop and right-click it. Select properties from the menu that appears, and copy the file’s location. It should be of the form like C:\Users\ …. \ …. \Desktop.

    Left-click and hold the button down while highlighting the location. Then, right-click the highlighted text and left-click “copy” from the menu that appears to save it to your clipboard.

  16. Returning to our Command Prompt, we can copy the file from the desktop to the Chrome directory and rename it as “komodo.jar” in a single step.

  17. We should already be in the Chrome subdirectory, but we can always navigate to it with a “cd” command.

    1. cd C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\chrome
  18. Now, we can simply enter the copy command as:

    1. copy C:\Users\username\….\Desktop\skin.zip komodo.jar

    2. Note that your path will be similar to the syntax shown above.

  19. You should now have a komodo.jar file and the original komodo.zip file in your Chrome folder.

  20. After successfully testing the Komodo IDE, the extracted content, locale, and skin folders can be deleted from the Chrome subdirectory.

You should now be able to start and run Komodo without a Sign-In screen.

SUCCESS and Thank You

This above method fixed the error, and the Komodo IDE runs without a Sign-In screen. All the credit for identifying the required changes goes to those who identified the code fix and created the original steps to change the files in kind.

Thank you to careyh -Carey Hoffman, moderator and Komodo Developer, for offering the fix: Login failed, it appears you are offline (again) - Discussions - Komodo IDE & Edit | Forums.

Did you find this article valuable?

Support Clicks and Switches by becoming a sponsor. Any amount is appreciated!