# How to fix Komodo IDE - Login failed.

\*\* Updated to include a fix for Linux with many thanks to Keith Schneider - See comments. \*\*

## The Problem - Login Failed

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.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731771345993/d9b217b4-5c87-4483-90f5-8e2d0d7a677b.png align="center")

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](https://community.komodoide.com/t/login-failed-it-appears-you-are-offline-again/5903/12).

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731876228639/c114b6e7-355e-4032-acf6-229ae4040406.png align="center")

## Windows FIX

The solution simply bypasses the Sign-In window altogether. The solution I present below is for WINDOWS and 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, Windows 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. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731878212743/ecde1ec7-e7c3-4086-9d0f-969c6c35328d.png align="center")
    
8. Click the “**Extract all**” and extract the folders into the *chrome* folder
    
9. A “Destination Folder Access Denied” window may appear. Check the box next to “Do this for all current items” then, click the “Continue” button.
    
10. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731878499482/40b03d87-664e-4b1b-981b-0013f6bc3115.png align="center")
    
    Three new subdirectories or folders should now appear in the “chrome” folder: content, locale, and skin
    
11. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731879329827/931bf972-3ef0-41bf-b458-885637e57076.png align="center")
    
    Use an editor such as [Notepad++](https://notepad-plus-plus.org/downloads/v8.7.1/) and RUN as an ADMINISTRATOR to open and edit the following file in a text editor: *content\\komodo.js*
    
12. Comment out line **27** and save.
    
    1. The line should have the following on it:
        
        1. [auth.authenticated((authenticated) =&gt; { if ( ! authenticated) openLoginDialog();});](https://github.com/ActiveState/OpenKomodoIDE/blob/master/src/chrome/komodo/content/komodo.p.js#L27)
            
        2. Add two forward slashes “//” to the beginning of line 27 as pictured below:
            
            ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731879903406/4d595d1e-aceb-4de3-9f6a-ff21f8820cfe.png align="center")
            
13. 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 &gt; Compress to… &gt; ZIP File*
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731882689545/fe55907f-a123-460d-90df-10fd315c9241.png align="center")
    
14. 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.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731882975719/1ddb7a58-b4b3-470c-849f-e1b227dc5229.png align="center")
    
15. 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.
    
16. 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.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731884221745/5aa03865-1e5e-4d31-acc6-ca1482584a88.png align="center")
    
    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.
    
17. 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.
    
18. 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*
        
19. 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.
        
20. You should now have a **komodo.jar** file and the original komodo.zip file in your *Chrome* folder.
    
21. 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.

## Linux Fix

After posting this article, I received this fix from Keith Schneider per his comment/feedback.

There is no need to uninstall anything on Linux. On Linux, Komodo (Edit and IDE) adds hidden folders to your home folder - these need to be removed after fixing the app. Otherwise, the original problem seems to persist. REMOVE the following two folders after fixing the app per your instructions (Translating to Linux ways):

rm -rf $HOME/.activestate/'komodo ide' rm -rf $HOME/komodoide

Then you can re-run the app, which will act like a brand new install but will not prompt to authenticate.

## SUCCESS and Thank You

The above method(s) 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](https://community.komodoide.com/u/careyh) [and Komodo Developer,](https://community.komodoide.com/u/careyh) for offering the fix: [Lo](https://community.komodoide.com/t/login-failed-it-appears-you-are-offline-again/5903/12)[gin failed, it appears you are offline (again) -](https://community.komodoide.com/u/careyh) [Discussions - Komodo IDE & Edit | Forums](https://community.komodoide.com/t/login-failed-it-appears-you-are-offline-again/5903/12).

Thank you again to Keith Schneider for the Linux fix

## Related Articles and Resources

* [Login failed, it appears you are offline (again) - Discussions - Komodo IDE & Edit | Forums](https://community.komodoide.com/t/login-failed-it-appears-you-are-offline-again/5903/12).
    
* [Komodo 12 Documentation](https://docs.activestate.com/komodo/12/manual/workspace.html)
    
* [Download Notepad++ v](https://docs.activestate.com/komodo/12/manual/workspace.html)[8.7.1 (stable: auto-update triggered) | Notepad++](https://notepad-plus-plus.org/downloads/v8.7.1/)
