Comments (43)
There is a new build server where you should download artifacts from. @wpride can point you where you can find that.
from commcare-hq.
Thank you @czue . That was prompt. It would be prudent to update the documentations too.
from commcare-hq.
yep, we're in the process of finishing moving everything over, but will definitely update documentation as soon as it's finished.
from commcare-hq.
@wpride kindly assist at your earliest convinience
from commcare-hq.
from commcare-hq.
he's on the east coast of the US so probably will be online in the next couple hours.
from commcare-hq.
@omiltoro please refer here http://jenkins.dimagi.com/view/CommCare%20Mobile/ to find the authoritative artifacts from here on
from commcare-hq.
Thanks very much @wpride
from commcare-hq.
@czue i managed to add the app builds to commcarehq as follows
(commcare-hq)patrick@patrick-PowerEdge-T100:/Downloads/commcare-hq$ python manage.py add_commcare_build /home/patrick/Downloads/archive/app/dist/commcare-odk.apk 2.0.0 352782/Downloads/commcare-hq$
2015-02-04 07:01:46,275 INFO Raven is not configured (disabled). Please see documentation for more information.
Build 2.0.0 #352782 created
You can see a list of builds at [your-server]/builds/
(commcare-hq)patrick@patrick-PowerEdge-T100:
However I'm not able to deploy the app with the following message
ResourceNotFound: Document is missing attachment
[04/Feb/2015 06:59:20] "POST /a/cafarmerscops/apps/save/655286222b0a55969509066c22b4c9d6/ HTTP/1.1" 500 51354
from commcare-hq.
@omiltoro can you provide a complete stack trace?
from commcare-hq.
@czue link to pastebin http://pastebin.com/xAygpCqu
from commcare-hq.
It does look like the file wasn't uploaded properly (or perhaps there's some other error going on). @dimagi/team-commcare-hq and @wpride might have to look closer to come up with a solution.
from commcare-hq.
@czue do we load the apps when the virtual environment is active?
from commcare-hq.
@omiltoro I don't understand your last question. If you navigate to /builds/edit_menu/, make sure you've added your newly uploaded version to that list, which represents the versions available to choose from when you build an app.
- if you version isn't available in the dropdown at /builds/edit_menu/, then follow the instructions at the bottom to add it
Then navigate to your application and make sure that your new version is selected as the CommCare Version (under General Settings, on the app's settings page).
Let me know whether you are still seeing the same stack trace after you've confirmed all of these steps.
from commcare-hq.
@omiltoro please see updated documentation. Sorry for the inconvenience.
from commcare-hq.
thank you all. Could someone help with a simple short webcast on building apps. @czue @wpride @dannyroberts it would really help
from commcare-hq.
@omiltoro Thanks for your suggestion. Passing on to @amsagoff. Glad we could help you work through the issue you were experiencing!
from commcare-hq.
Im still waiting for the link @amsagoff
from commcare-hq.
@wpride @dannyroberts im still getting the same error
from commcare-hq.
@omiltoro have you cleared out the old builds? You will need to delete any builds with the old (unsupported) .zip structure from your couch DB
from commcare-hq.
@wpride i did a re-installation of commcare and now still receiving the same error may be a small video could really save me .
from commcare-hq.
@omiltoro Can you confirm that you cleared the old builds out of couchdb?
from commcare-hq.
@wpride i did a fresh installation on another pc.
On Thu, Feb 12, 2015 at 6:11 PM, wpride [email protected] wrote:
@omiltoro https://github.com/omiltoro Can you confirm that you cleared
the old builds out of couchdb?—
Reply to this email directly or view it on GitHub
#5417 (comment).
Systems Developer/Programmer
Snapshot Cv:http://kinzaa.com/omiltoro
Github:www.github.com/omiltoro
Mobile : 0722142396
+254722142
Keep it SMART
We can not do great things. We can only do little things with great love. --
Mother Teresa
http://www.quotemountain.com/fullsearch.php?searchtxt=Mother+Teresa&matching=3
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via Skype
from commcare-hq.
could someone assist please @wpride
from commcare-hq.
Step 1, Clear out old builds
- Start couch db if it's not already running.
- Navigate to
http://127.0.0.1:5984/_utils/database.html?commcarehq/_design/builds/_view/all
in a web browser. You will need to change the127.0.0.1:5984
part of the url if couch db is running at a different location. - You should now see a list of documents in the database. You want to delete all of the documents who's "key" starts with "2.19" (for example, the last two rows in the attached screenshot). Delete rows by clicking on the row, then clicking the "Delete Document…" button that will apear on the document's page. (Don't ever click "Delete Database…", which appears in the same spot on some other pages).
Step 2, Re-upload the build
- Make sure HQ is running on your machine.
- Navigate to
http://192.168.1.14:8000/builds/edit_menu/
. You will probably have to adjust the192.168.1.14:8000
to match the address and port that you are running the server on. - In the form at the bottom of the page enter the following information:
- Source for artifacts.zip:
http://jenkins.dimagi.com/view/CommCare%20Mobile/job/commcare-mobile-2.19/346003/artifact/application/posttmp/artifacts.zip
- Version:
2.19.0
- build number:
346003
- Source for artifacts.zip:
- Click the "Import build" button. This might take a moment to process.
- Then, add a 2.19.0 item to the "Menu Options" list at the top of the
builds/edit_menu/
page. Click the "Submit" button once you've added it to the list.
I think this is all the steps. Let me know if you run into any problems.
from commcare-hq.
thanks @NoahCarnahan i will try your approach
from commcare-hq.
@NoahCarnahan when i navigate to myserver:8000/builds/edit_menu/
I receive a 403 error i do not have permission
[19/Feb/2015 11:05:54] "GET /no_permissions/?next=/builds/edit_menu/ HTTP/1.1" 403 14572
from commcare-hq.
@omiltoro, are you signed in? If you are and you continue to get that error you will need to make your account a superuser account.
You can do that on the command line where you launch hq from. Run the command:
python manage.py createsuperuser
That will run you through an interactive prompt for setting the username and password and such.
from commcare-hq.
@NoahCarnahan was able to add the build successfully but im still receiving this error
KeyError: "Can't find build 2.0.0/latest. For instructions on how to add it, see https://github.com/dimagi/commcare-hq/blob/master/corehq/apps/builds/README.md"
see complete stack trace http://pastebin.com/eQtBiHcQ
from commcare-hq.
Hi @czue @NoahCarnahan i managed to build an app had to delete the old builds and recreate a new app in commcare.
from commcare-hq.
glad to hear it!
from commcare-hq.
@czue @NoahCarnahan i believe someone must have reported this issue im facing at the moment. I am not able to sync forms to the commcarehq
ERROR Status code 400 for a form submission. Response is:
Content-Type: text/html; charset=utf-8
If you use multipart/form-data, please name your file xml_submission_file.
You may also do a normal (non-multipart) post with the xml submission as the request body instead.
could you point what i might have not done on my local setup
from commcare-hq.
@omiltoro - in order to submit from a phone you need to use a proxy server configured to support chunked encoding. There are sample nginx and apache config files you can start from in the repository.
from commcare-hq.
@czue @dannyroberts is this the link to the config files https://github.com/dimagi/commcare-hq/blob/master/deployment/apache/local_apache.conf
Another question? How do i add these to my setup. Ive tried editing the apache2 config file and nothing seems to change. Could some one guide?
from commcare-hq.
@omiltoro , you need to place that file in a special location on your computer, and then start apache with a command like apachectl start
or apachectl restart
I'm not sure if windows usually comes preinstalled with Apache, in which case you should probably follow the directions here: http://httpd.apache.org/docs/2.4/platform/windows.html . It looks like that page also talks about .conf
files and where they should be located, so once you determine if Apache is installed or not, you can start looking at the existing .conf
files.
On my machine, there is an apache configuration file at /etc/apache2/httpd.conf
. The last line of that file reads: Include /private/etc/apache2/other/*.conf
, which means "include all of the configurations specified in files in the /private/etc/apache2/other/
directory that end with .conf
. So, when I set up my environment I placed a copy of the file you linked at /private/etc/apache2/other/cchq.conf
.
Note though that your paths will be different because you are using a different operating system.
I believe Clayton is on a Windows machine, so he may be able to help with Windows specific questions.
from commcare-hq.
@NoahCarnahan thanks im setting up on ubuntu 12.0.4
from commcare-hq.
Ah ok, that will make it easier. I'm on OSX, but I imagine a google search
for "ubuntu apache conf" will turn up some good clues as to where to put
the configuration file.
On Mon, Mar 2, 2015 at 11:56 AM, Patrick [email protected] wrote:
@NoahCarnahan https://github.com/NoahCarnahan thanks im setting up on
ubuntu 12.0.4—
Reply to this email directly or view it on GitHub
#5417 (comment).
from commcare-hq.
it seems my httpd.conf file is blank @NoahCarnahan
from commcare-hq.
@NoahCarnahan @czue i added the file to the conf.d directory as directed by this site http://www.control-escape.com/web/configuring-apache2-debian.html but still getting the errors
from commcare-hq.
Hi Patrick
You should add the file to the the /etc/apache2/sites-available
folder.
You can then run the command (assuming the file you copied is called
cchq.conf
):
$ sudo a2dissite 000-default.conf
$ sudo a2ensite cchq.conf
This will disable the default apache config and enable your one.
You need to make sure your local commcare instance is running on port 8000
(which is the default django port) and you should also set the
BASE_ADDRESS
setting in your localsettings.py
file to be equal to your
machine's IP address e.g. BASE_ADDRESS = '192.168.0.4'
Having done that you'll need to make a new build of your app so that it
points to the correct URL's (using the correct base address). You should
then be able to install the app to your phone and submit data.
from commcare-hq.
@snopoke your method does not work for me
from commcare-hq.
Perhaps we should move this from the PR to the commcare-developers group: https://groups.google.com/forum/#!forum/commcare-developers
from commcare-hq.
from commcare-hq.
Related Issues (20)
- [CEP] runtime configurable settings HOT 4
- [CEP] "Single-use" data links HOT 11
- API Endpoints - Add Lookup Table to App Structure API
- [CEP] Cache formplayer's validate_form's result on HQ to improve App Preview Refreshes HOT 5
- [CEP] Table partitioning for remote API logs HOT 1
- [CEP] Allow filtering by privileges on Exchange HOT 4
- [CEP] Allow deprecating unused case properties HOT 1
- [CEP] Generic HQ auditing model HOT 8
- [CEP] expanded parent xpath filtering for case search HOT 1
- [CEP] The use of type hints HOT 33
- [CEP] CommCare Query Language for Case Search HOT 12
- [CEP] date_add function for case search HOT 9
- [CEP] Case Search Query support for creating calendar based dates HOT 4
- [CEP] Custom repeater URLs with UCR expressions HOT 2
- [CEP] System Forms Metadata Standardization HOT 6
- HELPME: Refactor problematic methods
- [CEP] Supporting domains without privilege while GAing feature-flags to paid privileges HOT 26
- [CEP] Do not preindex_everything on every deploy HOT 7
- Error building commcarehq_incl to run HQ in Docker
- Blobdb error bug after restore on Ubuntu 22.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commcare-hq.