Discussion Forums  >  Uncategorized

Replies: 3    Views: 174

WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
11/29/11 06:57 PM (14 years ago)

Server ''There was a problem creating a directory in the /temp folder.''

Got this error when trying to package sourcecode for iOS. Any ideas? All directories have read and write permissions.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/29/11 10:56 PM (14 years ago)
Hmm...should not have the issue then. Could be a problem on our end..the package manager hits our API for some stuff, checking...OK, two test panels here packaged no problem so not on our end. Can you package any apps or none at all? The file permissions should be OK or the thing would not install. In theory. Maybe have a look at /files with FTP program to see if other file have been successfully created in /temp. You could also try uploading an icon for an app. That process write to /files/temp too. If it can write, but the package cannot, I'll keep digging
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/30/11 01:22 AM (14 years ago)
It's a matter of figuring out where this is failing. Debugging should be uneeded if you can just figure out why the thing isn't writing to /files/temp. Maybe test the icon upload process like I mentioned in the previous post. if that doens't work, don't bother trying to debug any code, it's a persmission thing for sure in that case. If you can upload an icon, then this info will be helpful: The file that handles all the downloading of a package is /bt_appDownload_AJAX.php This is in the bt_v15/bt_app folder. The message you're seeing is happening on line 823 of this file. This is the 'else' curly brace from a very long 'if' statement. If you scroll up to line 431 you'll see the test. if(is_dir($rootFoler)) is the failing part. The root folder is the folder on your machine, in the /files/temp directory that is created during the app assembly process. Not sure what's happenign on your machine, maybe the .zip functions are failing, like zip and unzip? Heres how it works... a) You click download. Two API calls are made to the buzztouch.com servers. The first one requests the package. When this is done, the buzztouch.com API returns a URL to you server. This URL is the URL to the package waiting for download. This .zip archive sits on our servers for a moment. Your server reads the URL returned by the API then downloads the package to your server. So, ask the API to package the app, download it from the URL to the /files/temp directory. At this point the buzztouch.com API is no longer needed. Your server does the rest... b) The package from buzztouch is downloaded and saved in /files/temp. It is not ready for use yet. Next, your server unzips the .zip archive and adds a bunch of files from it using your plugins and your config data from your database etc. When this is done it re-packages it as another .zip (still in the /files/temp folder) as shows you the 'download' button.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
11/30/11 05:38 AM (14 years ago)
Dave, Checked the files/temp directory and two icon files loaded through the control panel are there. There is a zip file in the temp folder also. Tim
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.