aiStarter - Won't connect/Is Not Running

1,009 views
Skip to first unread message

toner...@gmail.com

unread,
Jun 26, 2014, 10:53:55 AM6/26/14
to mitappinv...@googlegroups.com
Hi All,

I am wondering if anyone can help me at all,

I have installed the AppInventor Setup Installer V2.2 onto a windows 7 32Bit computer as local administrator, i have given the app inventor programs folder full access rights to "Everyone" no matter what i do i just can't get either the emulator to pickup that aiStarter is running or when i go to the test page it says that aiStarter is not running,

I have run a netstat command to see what ports/IP are being used & nothing is also using 8004, i have disabled windows firewall (even though the application is allowed through it)

I have tried uninstalling/reboot & reinstalling multiple times & still no luck.

I am really struggling with this & running out of ideas, 

Could anyone please help at all.

Thanks

Enis

unread,
Jun 26, 2014, 2:16:41 PM6/26/14
to mitappinv...@googlegroups.com
Most of the emulator connection problems we have seen are a result of not having the most current version of the App Inventor setup software, or that software having been incompletely installed.

Still, there can be many other issues that could cause the connection to the emulator to fail.  Please read and follow the document below on connection issues:

Click here for Emulator Setup and Trouble Shooting Instructions

If you still cannot get the emulator running after following that document, please post in the forum and we'll try to help you out.

toner...@gmail.com

unread,
Jun 27, 2014, 7:33:35 AM6/27/14
to mitappinv...@googlegroups.com
I have gone through the troubleshooting and still no luck, it seems as though it could be a filtering issue, if i try it on an unfiltered connection then everything is fine,

Are there any ports/websites etc i could/need to allow through for the aiStarter to be able to communicate with the test site/emulator?

Thanks

Enis

unread,
Jun 27, 2014, 8:58:38 AM6/27/14
to mitappinv...@googlegroups.com
Here are some steps you should try. I'm assuming that you did a "Hard Reset". If so your will have Companion version 2.11ai2zx1 installed in your emulator. This version will work, even though it is not the most up-to-date. It will, however, let us debug what is going on:

  • Start the emulator (Connect->Emulator). When you get the dialog asking you to update the Companion, select "Not Now."
    • Can you use the Emulator/Companion at this point?
    • If not, then something is likely blocking access to port 8001 on your computer. Your computer attempts to connect to itself on port 8001. The low level "adb" command, automatically called by the aiStarter should arrange to forward this port to port 8001 in the emulator where it will be picked up by the Companion.
      • YOU MUST FIX THIS BEFORE CONTINUING. If your PC cannot talk to the Emulator/Companion on port 8001, then nothing will work!
    • If the blocks are not loading, you are looking at the Companion "white screen" where it says it is waiting for the blocks, you can point your local web browser at http://127.0.0.1:8001/ You should see a directory listing with at least the phase "Directory /". If you don't see this, or you get an error from your browser, that is another good indication that port 8001 is blocked.
      • If this is the case, you will need to figure out which program or settings on your computers is blocking this port. You will likely need assistance from your local IT staff. There are many ways this port can be blocked and without having local "hands and eyes" it is almost impossible for us to tell you which program/setting is the cause.
Once you can get to the Companion on port 8001, you should be able to start the emulator normally and have it do the automatic upgrade of the Companion.

Hope this helps.

-Jeff (Maintainer of the Companion and general App Inventor wizard).

toner...@gmail.com

unread,
Jun 27, 2014, 10:52:10 AM6/27/14
to mitappinv...@googlegroups.com
The emulator is now working fine & it has performed an upgrade,

When i navigate to  http://127.0.0.1:8001 i see an Directory / with the following files: update.apk  (2.30 MB)

The emulator is just saying "Running using Emulator or USB, waiting to get blocks...... Version 2.19ai2zx1

The above is just on a grey screen on the emulator & won't get any further, could you please help?

Thanks

Enis

unread,
Jun 27, 2014, 11:07:45 AM6/27/14
to mitappinv...@googlegroups.com
That means that you have the most current Companion on your emulator.

CLOSE THE EMULATOR.

In the AI User Interface, choose Connect, then Emulator and your project should come up, although it takes a minute or so to complete.  Give it time.  It's NOT a fast process.

toner...@gmail.com

unread,
Jun 27, 2014, 11:22:52 AM6/27/14
to mitappinv...@googlegroups.com
I will try this on Monday when back in work, thanks for all the help, will post back if I have any problems
Reply all
Reply to author
Forward
0 new messages