Subject: Building/Packaging Fails

Original Post Dustin Machi's Avatar

Dustin Machi

08 Feb, 2010 01:55 PM via web

I created a small demo application that is JavaScript only (using Dojo). The application will launch and run fine locally (mac), but I have been unable to get it to successfully create a package. The error is 500 error. I am trying to use this little demo for a presentation at a conference this week, and so any help in addressing would be appreciated. In general, more feedback about the actual progress and failures during this step (within Titanium Developer) would be useful to people I'm sure as well.

Thanks,
Dustin

  1. Support Staff 2 Posted by Martin Robinson on 08 Feb, 2010 10:21 PM

    Martin Robinson's Avatar

    Hey Dustin. Are you still getting this error?

  2. 3 Posted by Dustin Machi on 08 Feb, 2010 10:54 PM

    Dustin Machi's Avatar

    I'll try again as soon as I get off work.

  3. 4 Posted by Dustin Machi on 09 Feb, 2010 03:00 AM

    Dustin Machi's Avatar

    Unfortnately no. I am still getting:

    Packaging Failed: HTTP Status: 500

    This only appears briefly in the status window, and so if I'm not paying attention I get no error at all.

    Is there perhaps a size limit for what can be submitted? The Total compressed size of my Resources directory (the only place I placed anything) is 9.2M. I have attached it to this comment. Thanks for any advice.

  4. 5 Posted by Dustin Machi on 13 Feb, 2010 06:06 PM

    Dustin Machi's Avatar

    Any updates on this?

  5. Support Staff 6 Posted by Martin Robinson on 13 Feb, 2010 07:31 PM

    Martin Robinson's Avatar

    Apparently, this issue has been fixed. Do you mind giving it another shot?

  6. 7 Posted by Dustin Machi on 13 Feb, 2010 09:25 PM

    Dustin Machi's Avatar

    Unfortunately it is still failing.

  7. 8 Posted by atom on 14 Feb, 2010 01:14 AM

    atom's Avatar

    i am getting a similar error, except my error is like: "packaging failed http status null", and it only shows for a few seconds. i have tried with a bunch of different build options, same results.

    i wanna release my app :(

  8. 9 Posted by atom smith on 15 Feb, 2010 02:20 AM

    atom smith's Avatar

    watched a the titanium log when attempting to build, whole lot off this:

    [02:15:10:987] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/app-track): Couldn't connect to server ** Message: console message: @0: [02:15:10:987] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/app-track): Couldn't connect to server

    ** Message: console message: @0: [02:15:10:987] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/app-track): Couldn't connect to server

    [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server ** Message: console message: @0: [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server

    ** Message: console message: @0: [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server

    [02:15:12:361] [Titanium.API] [Error] Exception communicating to update service: TypeError: Result of expression 'json' [null] is not an object. ** Message: console message: @0: [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server

    ** Message: console message: @0: [02:15:12:185] [Titanium.Network.HTTPClient] [Error] Failed for URL (https://api.appcelerator.net/p/v1/release-list): Couldn't connect to server

    and so on.

    i have no reason to believe it is not online and connected, all status stuff looks good, my app has access to internet etc.

  9. Support Staff 10 Posted by Martin Robinson on 15 Feb, 2010 04:41 PM

    Martin Robinson's Avatar

    Atom, what happens if you try to contact
    https://api.appcelerator.net/p/v1/app-track in a browser?

  10. 11 Posted by atom smith on 15 Feb, 2010 04:45 PM

    atom smith's Avatar

    pushes a file download, file contains: {"success":false,"message":"invalid request parameters"}

  11. Support Staff 12 Posted by Martin Robinson on 15 Feb, 2010 04:47 PM

    Martin Robinson's Avatar

    Are you behind a proxy server?

  12. 13 Posted by Dustin Machi on 15 Feb, 2010 04:49 PM

    Dustin Machi's Avatar

    Same here. Atom, maybe this is in the docs somewhere i've missed, but can you tell me how/where you got those logs? (and no i'm not behind a proxy)

    Dustin

  13. 14 Posted by atom smith on 15 Feb, 2010 04:51 PM

    atom smith's Avatar

    It doesn't work either way, have tested at the office and at home.

    Office has proxy (which does appear to be working with Titanium, 'cloud is available' and 'you are authenticated' are lit up).

    Home is a straight connection, same results.

  14. 15 Posted by atom smith on 15 Feb, 2010 04:53 PM

    atom smith's Avatar

    @Dustin

    I am running titanium from the command line, that log is the commnds output.

    it looks like it is going into tiapp.log in my titanium application data folder under com.appcelerator.titanium.developer

  15. Support Staff 16 Posted by Martin Robinson on 15 Feb, 2010 06:16 PM

    Martin Robinson's Avatar

    Atom, I'm pretty sure the error you are seeing is a separate one. Do you mind splitting this off into another thread so we can track it more easily.

  16. Support Staff 17 Posted by Nika Jones on 15 Feb, 2010 06:26 PM

    Nika Jones's Avatar

    Dustin:

    I've downloaded your Resources folder, made a new project. Pulled the contents of your Resource Folder into the new project. Packaged and everything went well. Can you please try again?

    Nika

  17. 18 Posted by Dustin Machi on 15 Feb, 2010 06:41 PM

    Dustin Machi's Avatar

    I tried it a short while ago, and still had failures. I went looking around the filesystem, and did notice this:

    djm:~ dmachi$ tail -f /Library/Application\Support/Titanium/runtime/osx/0.
    0.7.0/ 0.8.0/ 0.8.1/

    So there is no 0.8.2 directory. I just wiped that AppSupprt/Titanium dir and reinstalled to test. Upon reinstall it says Titanium Developer 0.8.2, but then it says that the SDK 0.8.2 is now available and do I want to update (I had done this on the previous install too, but as you can see there is no 0.8.2 directory above).

    Test Packaging after clean reinstall:
    I just ran through the packaging, and briefly got an error about the None type and I believe rFind (was to quick to get the whole message). Looking in /Library/Application Support/Titanium/sdk/osx there is only a 0.8.0 directory.

    Test Packaging after clicking update to 0.8.2:
    - after this update, there is a 0.8.1 directory (no 0.8.2)...maybe these are just old sdks in this dir? - I get Packaging failed with message: "NoneType" object has no attribute "rfind". A screenshot is attached.

    I'm running OSX 10.5.8 fwiw.

  18. Support Staff 19 Posted by Martin Robinson on 15 Feb, 2010 06:56 PM

    Martin Robinson's Avatar

    Dustin, one thing to keep in mind (which Developer should complain
    about) is that the app id needs to be a string containing only
    alphabet characters, digits and underscores that begins with an
    alphabet character.

  19. 20 Posted by Dustin Machi on 15 Feb, 2010 06:59 PM

    Dustin Machi's Avatar

    The app id is "org.dojotoolkit.DijitThemeTester". I think this is ok, right? Would an invalid id fail on launch or on packaging. Note I can run the app fine from the developer, its only the packaging portion that is failing.

  20. 21 Posted by Dustin Machi on 15 Feb, 2010 07:17 PM

    Dustin Machi's Avatar

    I made a little bit of progress. I noticed some errors in my appdata directory where it was complaining about "/Users/dmachi/work/ttTest/Dijit Theme Tester" not existing:

    [16:43:22:600] [Titanium.UI.TitaniumProtocols] [Error] Error finding /Users/dmachi/work/ttTest/Dijit Theme Tester/dist/osx/Dijit Theme Tester.app/Contents/Resources/dojo/dojo/resources/dojo.css

    I believe this might be due to spaces in the directory name (which is generated automatically based on the Application name and base directory) I created a new project called DijitThemeTester2 and it made it a little bit further.

    Now I see this in the tiapp.log:
    [19:02:26:359] [Titanium.UI.WebViewDelegate] [Error] didFailProvisionalLoadWithError (): resource unavailable [19:07:45:148] [Titanium.API] [Information] (JavaScript.KKJSList) [ "/Library/Application Support/Titanium/sdk/osx/0.8.1/tibuild.py", "-d", "/Users/dmachi/work/ttTest/DijitThemeTester2/dist/osx", "-t", "bundle", "-a", "/Library/Application Support/Titanium/sdk/osx/0.8.1", "/Users/dmachi/work/ttTest/DijitThemeTester2", "-n", "-r", "-v", "-s", "/Library/Application Support/Titanium", ] [19:07:45:152] [Titanium.API] [Information] process= "python" "/Library/Application Support/Titanium/sdk/osx/0.8.1/tibuild.py" "-d" "/Users/dmachi/work/ttTest/DijitThemeTester2/dist/osx" "-t" "bundle" "-a" "/Library/Application Support/Titanium/sdk/osx/0.8.1" "/Users/dmachi/work/ttTest/DijitThemeTester2" "-n" "-r" "-v" "-s" "/Library/Application Support/Titanium"

    And it doesn't give me a build failed error, but instead I get an error that it couldn't find a link. Unfortunately this one too goes by quickly and it was also bleeding the error out of the status bar and behind part of the rest of the UI so I couldn't make it out completely.

    Hope that helps....
    Dustin

  21. Support Staff 22 Posted by Martin Robinson on 15 Feb, 2010 07:32 PM

    Martin Robinson's Avatar

    Hrm. That should be fine. Do you mind pasting the contents of your
    tiapp.xml and manifest here?

  22. 23 Posted by Dustin Machi on 15 Feb, 2010 07:43 PM

    Dustin Machi's Avatar

    tiapp.xml:

    <?xml version='1.0' encoding='UTF-8'?>
    <ti:app xmlns:ti='http://ti.appcelerator.org'>
    <!-- These values are edited/maintained by Titanium Developer -->
    <id>org.dojotoolkit.org.dijitThemeTester2</id>
    <name>DijitThemeTester2</name>
    <version>1.0</version>
    <publisher>dmachi</publisher>
    <url>http://dojotoolkit.org</url>
    <icon>default_app_logo.png</icon>
    <copyright>2010 by dmachi</copyright>
    <!-- Window Definition - these values can be edited -->
    <window>
    <id>initial</id>
    <title>DijitThemeTester2</title>
    <url>app://index.html</url>
    <width>700</width>
    <max-width>3000</max-width>
    <min-width>0</min-width>
    <height>800</height>
    <max-height>3000</max-height>
    <min-height>0</min-height>
    <fullscreen>false</fullscreen>
    <resizable>true</resizable>
    <chrome scrollbars="true">true</chrome>
    <maximizable>true</maximizable>
    <minimizable>true</minimizable>
    <closeable>true</closeable>
    </window>
    </ti:app>

    Manifest:

    #appname:DijitThemeTester2
    #appid:org.dojotoolkit.org.dijitThemeTester2
    #publisher:dmachi
    #image:default_app_logo.png
    #url:http://dojotoolkit.org
    #guid:cb57a950-33d2-4339-bae0-62adcf51f8e5
    #desc:No description provided
    #type:desktop
    runtime:0.8.1
    api:0.8.1
    tiapp:0.8.1
    tifilesystem:0.8.1
    tiplatform:0.8.1
    tiui:0.8.1
    javascript:0.8.1
    tianalytics:0.8.1
    ticodec:0.8.1
    tidatabase:0.8.1
    tidesktop:0.8.1
    tigrowl:0.8.1
    timedia:0.8.1
    timonkey:0.8.1
    tinetwork:0.8.1
    tinotification:0.8.1
    tiprocess:0.8.1
    tiworker:0.8.1

    Dustin

  23. 24 Posted by Dustin Machi on 16 Feb, 2010 03:25 PM

    Dustin Machi's Avatar

    Hi Guys,

    So I never had any more luck building this via the cloud. However, I did take the time to learn how to run the package manually and it works here locally.

    Here is a locally packaged version of it:
    http://dmachi.dojotoolkit.org/DijitThemeTester2.dmg

    Would be nice to get it build in other OSs, but I'm loathe to fire up windows vms to do it manually, so any other thoughts, suggestions, or debugging tips you can offer would be appreciated. I don't get any really good debugging info (for packaging) from the logs. Is there anything I can do to increase the verbosity of the packaging logs?

    Thanks
    Dustin

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

You can attach files up to 10MB

What is the opposite of north?

Recent Discussions

13 Mar, 2010 01:38 PM
13 Mar, 2010 12:39 PM
13 Mar, 2010 11:06 AM
13 Mar, 2010 10:58 AM
13 Mar, 2010 09:02 AM