Subject: Building/Packaging Fails
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
Support Staff 2 Posted by Martin Robinson on 08 Feb, 2010 10:21 PM
Hey Dustin. Are you still getting this error?
3 Posted by Dustin Machi on 08 Feb, 2010 10:54 PM
I'll try again as soon as I get off work.
4 Posted by Dustin Machi on 09 Feb, 2010 03:00 AM
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.
5 Posted by Dustin Machi on 13 Feb, 2010 06:06 PM
Any updates on this?
Support Staff 6 Posted by Martin Robinson on 13 Feb, 2010 07:31 PM
Apparently, this issue has been fixed. Do you mind giving it another shot?
7 Posted by Dustin Machi on 13 Feb, 2010 09:25 PM
Unfortunately it is still failing.
8 Posted by atom on 14 Feb, 2010 01:14 AM
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 :(
9 Posted by atom smith on 15 Feb, 2010 02:20 AM
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.
Support Staff 10 Posted by Martin Robinson on 15 Feb, 2010 04:41 PM
Atom, what happens if you try to contact
https://api.appcelerator.net/p/v1/app-track in a browser?
11 Posted by atom smith on 15 Feb, 2010 04:45 PM
pushes a file download, file contains:
{"success":false,"message":"invalid request parameters"}Support Staff 12 Posted by Martin Robinson on 15 Feb, 2010 04:47 PM
Are you behind a proxy server?
13 Posted by Dustin Machi on 15 Feb, 2010 04:49 PM
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
14 Posted by atom smith on 15 Feb, 2010 04:51 PM
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.
15 Posted by atom smith on 15 Feb, 2010 04:53 PM
@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
Support Staff 16 Posted by Martin Robinson on 15 Feb, 2010 06:16 PM
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.
Support Staff 17 Posted by Nika Jones on 15 Feb, 2010 06:26 PM
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
18 Posted by Dustin Machi on 15 Feb, 2010 06:41 PM
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.
Support Staff 19 Posted by Martin Robinson on 15 Feb, 2010 06:56 PM
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.
20 Posted by Dustin Machi on 15 Feb, 2010 06:59 PM
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.
21 Posted by Dustin Machi on 15 Feb, 2010 07:17 PM
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
Support Staff 22 Posted by Martin Robinson on 15 Feb, 2010 07:32 PM
Hrm. That should be fine. Do you mind pasting the contents of your
tiapp.xml and manifest here?
23 Posted by Dustin Machi on 15 Feb, 2010 07:43 PM
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
24 Posted by Dustin Machi on 16 Feb, 2010 03:25 PM
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