App Engine Update Data Store In Vmware

Whilst the PHP part of the App Engine environment is. Update your Google API PHP Client; Top Posts & Pages. Making Cloud Datastore Easy For PHP on App Engine.

This page has been deprecated and may no longer be accurate. See the in the new site.

App Engine Update Data Store In Vmware

ODK Aggregate provides a ready-to-deploy server and data repository to: • provide blank forms to ODK Collect (or other OpenRosa clients), • accept finalized forms (submissions) from ODK Collect and manage collected data, • visualize the collected data using maps and simple graphs, • export data (e.g., as CSV files for spreadsheets, or as KML files for Google Earth), and • publish data to external systems (e.g., Google Spreadsheets or Google Fusion Tables). ODK Aggregate can be deployed on Google's, enabling users to quickly get running without facing the complexities of setting up their own scalable web service.

ODK Aggregate can also be deployed locally on a Tomcat server (or any servlet 2.5-compatible (or higher) web container) backed with a MySQL or PostgreSQL database server. Installation • Please read all the instructions and notes before beginning.

• Make sure you have used and are familiar with how it works. • Next, try the ODK Aggregate to explore the core functionality. • Decide whether to install a cloud instance or a local instance. We strongly recommend you try an App Engine cloud instance first. If you wish to host locally, see. Local hosting implies that you are taking ownership of the off-site back-up and restoration of your data and are documenting the steps necessary to return your systems to operation in circumstances that might include a full hardware failure or the destruction of your facility. You must also plan for the security of your data and systems.

And finally, it requires that you. We would encourage you to seek assistance from your local computer-technical-support community before proceeding. The set-up of the ODK Aggregate web server and database are very easy in comparison. The Importance of Upgrading It is important to upgrade to newer ODK Aggregate versions as they come out (not necessarily immediately, but this should be something you do at least once a year). There are several reasons for this: • Security vulnerabilities -- we (and Google) are constantly upgrading the libraries we use with newer, safer, versions. The older your software, the greater the number of vulnerabilities in it.

• Hosting revisions -- Google AppEngine is a managed environment, unlike, say, AWS or other 'bare-box' hosting services. Google is continuously updating features and removing support for older features in this environment. If you don't upgrade, there may not be an upgrade path that works due to these changes -- unlike 'bare-box' hosting, you, and the ODK team, only have partial control over the software and hardware environment. • Performance revisions -- as we find performance issues and address them, the tools get better and faster. Zte Mf65m Cdc Serial Driver on this page. • Enhanced capabilities -- the form-processing library (javarosa) has roughly-annual updates to add new functions (e.g., sin(), cos()) and occasionally data types.

And new features are slowly added to ODK Aggregate, too. Installing on App Engine (Cloud) • Make sure Java 7 or higher is installed on the computer you plan to use. If it is not,; if that page does not have a link to older versions, Java 7 is also available. If you are using MacOSX, it may require special care and attention.

• You will need a Gmail account to use App Engine; this Gmail account will be the owner of the Google Cloud Platform 'project' under which your App Engine will execute. Google Cloud Platform hosts projects. There is no cost to set up these projects and App Engine projects that are lightly used will incur no charges; when you exceed the free-usage levels that Google allows, your App Engine server will stop accepting new requests for the remainder of a 24-hour period that resets at midnight in the Los Angeles, CA timezone. See for ways to minimize usage. • To set up a Google Cloud Platform project, go to and click on 'Console' (this shows as 'My Console' in this earlier image capture): • If you have never configured a Google Cloud Platform project, click on 'Create an Empty Project': Otherwise, this link will open onto either a page with a 'Create Project' button and a table listing all of your projects, or it will open into one of your existing projects.

In the later case, click on that project name to access a drop-down menu and choose 'Create Project' from there. E.g., if clicking 'My Console' opened onto the project 'msundt-agg-test3', you would click on that to access a menu where you can chose 'Create a project.' : • On the project-creation pop-up dialog, type in a project name that makes sense to you. Then choose 'Edit' to edit the project id. The project id will be the first part of the URL to your ODK Aggregate server (i.e., your server will be referenced with a URL of the form You may want to use a project id that combines your organization name and the name of your data collection group or project. You may also need to accept Google's terms-and-conditions, as indicated in the screen-shot below: • Upon creating the Google Cloud Platform project, you will be on an empty-project screen, showing the project name in the upper-right side of the screen. In this case, I named my project and project id the same - 'msundt-agg-test3': • Now, click on the menu icon (three horizontal bars) to the left of 'Google Cloud Platform' in the upper left side of the screen: and select 'App Engine': • And click on the 'Select a language' dropdown under the 'Your first app' heading: • Choose 'Java': • Select the datacenter location where this server will operate and click Next: • Google will then begin configuring the server: When this completes, you will be directed to begin a tutorial to install a sample application.

Choose 'Cancel Tutorial' and confirm that you want to not perform that tutorial: • Download. Select the latest release for your operating system. These downloads are wizard-based installers for the various operating systems. You can verify the download using SHA256 signatures as described at the top of the downloads page.

If you are running OSX, you must unzip the downloaded file before running the installer within it. If you are on MacOSX Mountain Lion or onward, you will need to fiddle with in order to run the installer. On Windows 10, you will need to approve running an unsigned installer.

On Linux, you will need to change the downloaded file's permissions to enable running it as a program. Double-click the downloaded file to run it. • The installer will guide you through configuring ODK Aggregate for App Engine and then launch an upload tool to upload this configured ODK Aggregate to App Engine. NOTE: Beginning with Java 7 Update 51, there are security level settings that may prevent the upload tool from running. A reported work-around is to add the file: path (e.g., file:///) to the Exception Site list. After you run the installer, you should remove that exception, as it defeats the purpose of that security measure.

If you need to install a pre-1.4.8 version of ODK Aggregate, see the workaround. The installer does not modify your system in any way; it only writes files to the folder you specify. The upload tool does write to one file in your home directory, but also, otherwise, does not modify your system. If the installer does not run on one computer, try running it on a different computer. If necessary, you can then copy the directory that the installer created to another system and run the upload tool from there. • The upload tool looks like this: Enter the gmail account that you specified in step 2, above.

This will enable the Get Token button. • Click the Get Token button.

At this point, two things will happen. • Your default browser will open to a Google site ( where you are asked to choose a gmail account (select the account from step 2), and then approve allowing 'Google App Engine appcfg' to View and manage your AppEngine instances and datastores: Click Allow. This will take you to a screen with instructions to copy a code. • At the same time, a pop-up dialog should be displayed by the upload tool. Regrettably, this seems to be suppressed about half the time, apparently because of the delay in opening the Google site.

The pop-up looks like this: If the pop-up dialog does not show, close the upload tool and open a file browser or Finder window on the directory you specified for the installer to place its files. Navigate into the ODK Aggregate directory. If on Windows, double-click the ODKAggregateAppEngineUpdater.jar file. If on Mac OSX, double-click the file.

If on Linux, open a bash shell and run These should all re-launch the upload tool. Re-enter the e-mail address, and once again click Get Token. The pop-up dialog should now appear.

• Copy the code from the browser into the upload tool's pop-up dialog and click OK. Note that the text box on Google's site is not as wide as the code; be sure to copy the entire code. If the code is accepted, the output should look something like this: getToken!: Jul 15, 2016 9:46:10 AM getToken!: WARNING: unable to change file permissions for everybody: C: Users Admin.appcfg_oauth2_tokens_java getToken: Please enter code: Reading application configuration data. GetToken!: Jul 15, 2016 9:46:14 AM readConfigXml getToken!: INFO: Successfully processed./LegacyRemoval WEB-INF/datastore-indexes.xml getToken: getToken: getToken: Beginning interaction for module default. GetToken: max_blob_size: 32000000 getToken: max_file_count: 10000 getToken: max_file_size: 32000000 getToken: max_files_to_clone: 2000 getToken: max_total_file_size: 854775807 getToken: Success. GetToken: Cleaning up temporary files for module default. GetToken!: getToken: status: Action Succeeded!

If the output does not look like that, you may have delayed too long between getting the code and pasting it into the tool. Click Delete Token and try again.

If you see a failure with a message of the form: getToken: 403 Forbidden getToken: You do not have permission to modify this app (app_id=u's~ your-app-id'). GetToken: getToken!: You do not have permission to modify this app (app_id=u's~ your-app-id'). GetToken!: This is try #3 getToken: Please see the logs [/tmp/appcfg974710084.log] for further information.

GetToken: getToken!: status: Action failed or aborted by user Then it is likely that you have several different gmail accounts and Google has gotten confused during the token-issuing process. In this case, when the browser window opens, before selecting an account, copy the URL, open a Private Browsing or Incognito Window in your browser, and past the URL into that. Then proceed to get the token, etc. This should fix this issue. • Now click Upload ODK Aggregate. This will spew a very long list of progress messages into the Output window.

The listBackends: and deleteBackendBackground: sections may report '500 Internal Server Error' and Severe errors, and Warnings about the use of Backends, a deprecated feature. This is expected. Toward the bottom, the update: section should not report errors and at the end, a status: Action Succeeded! Line should be written.

This indicates that the upload completed successfully. An example of the scrolling progress messages produced by a successful upload is.

• Once the updater script has run and uploaded the ODK Aggregate configuration to App Engine, return to the Google Cloud Platform console. With the console displaying your project, click on the menu icon (three horizontal bars) to the right of 'Google Cloud Platform' in the upper left side of the screen: • From this menu, select 'App Engine': • This will display the App Engine dashboard. You can confirm the upload by verifying that the list of modules contains both 'default' and 'background'. If you need to set up billing, the settings to do that are at the bottom of this screen. • If you click on the project id (e.g., URL in the above screen, you will go to your ODK Aggregate server: From here, you can click on 'Log In' to log in, enter the ODK Aggregate username (superuser) that you specified within the installer (the initial password for this username will be aggregate) and access the site administration screens for your server.

Installing VM (Local or Cloud) The ODK Aggregate VM is a fully-configured install of Aggregate that you can run on any computer. It requires very little setup, works well without Internet connectivity, and gives you complete control over your data collection campaign. Download the to begin. Installing on Tomcat (Local or Cloud) To run on ODK Aggregate on a Tomcat server backed with a MySQL or PostgreSQL database, see. NOTE: The Visualization and Mapping features of ODK Aggregate do not work when the server is configured to run under certain non-US, non-English locales. We believe this occurs because, in those locales, numbers are formatted with a comma as the decimal point, and that this confuses the visualization software we are using. If you are having issues with these features not working, reconfigure your Tomcat server to run in the US English locale.

Installing on AWS (Cloud) To run on ODK Aggregate on a Linux micro-instance on the Amazon Web Services EC2 infrastructure, see. NOTE: The Visualization and Mapping features of ODK Aggregate do not work when the server is configured to run under certain non-US, non-English locales. We believe this occurs because, in those locales, numbers are formatted with a comma as the decimal point, and that this confuses the visualization software we are using. If you are having issues with these features not working, reconfigure your Tomcat server to run in the US English locale. Using the Application • Beginning with ODK Aggregate 1.3.2, upon the initial installation of the server, it is configured to allow unauthenticated ( anonymousUser) submissions from ODK Collect and unauthenticated browser access to the submissions and forms management functionality of ODK Aggregate. When the URL to the ODK Aggregate server is first opened, you will be presented with the application page showing the Submissions and Form Management tabs.

• In April 2015, the use of Google e-mail accounts for accessing the site (via Sign in with Google) stopped working (Google turned off that functionality). If you have an existing site running an old version of ODK Aggregate that does not have ODK Aggregate usernames configured for website access (and offers a Sign in with Google sign-in choice), you will need to to regain access to it. • Submitted data, once in ODK Aggregate, can be viewed, exported, mapped and deleted. • Use the Add New Form button on the Form Management tab to upload a new form definition to ODK Aggregate. • View data submitted from ODK Collect on the Submissions tab.

• If the Site Admin tab is not visible, click the Log In link in the upper right corner of the screen to be presented with the Log onto Aggregate screen. Choose the Sign in with Aggregate password button and enter the super-user username you specified within the installer. The initial password for this account is aggregate When signing in with this method, if you do not enter the password correctly, you may need to close all your browser windows and quit your browser before you can try again.

• If you have not yet changed your super-user password to something other than aggregate, the server will display This server and its data are not secure! Please change the super-user's password!

At the top of the web page. Please visit the Permissions sub-tab under the Site Admin tab to change this user's password. • If the instance name of the server changes (the installer asks for this name), then the passwords for all ODK Aggregate usernames will be cleared (preventing their use) and the super-user username's password will be reset to aggregate and the above message will also be displayed. In this case, you should log in, change the super-user's password, and change the passwords for all of your ODK Aggregate usernames.

• Use the Permissions sub-tab under the Site Admin tab to restrict who can download forms or submit data from ODK Collect. Do this by creating an ODK username and password and granting it Data Collector privileges.

This username and password can then be entered into ODK Collect's settings page. When restricting access you must also remove the Data Collector privilege from the anonymousUser. Remember to click Save Changes to make these changes take effect. Conversely, granting the Data Collector privilege to the anonymousUser enables anyone to submit data to your ODK Aggregate server. • Use the Permissions sub-tab under the Site Admin tab to specify additional usernames with browser access to the server.

For each user you add, select whether they have access to the submitted data ( Data Viewer privileges), the ability to upload forms and export or publish data ( Form Management), or the ability to manage site access and users ( Site Admin) privileges. Remember to click Save Changes to make these changes take effect. And, for each username you define, remember to Change Password to assign a password; by default, usernames are created with unusable passwords. Granting any of these privileges to the anonymousUser enables browser access to these functions without first logging in.

• Refer to the inline help in ODK Aggregate (near the login button) for more detailed instructions. Changing the size of the App Engine server If you have many form definitions on your server, you may get better performance and reduce the likelihood for if you increase the size of your server (this also applies to Tomcat deployments but Tomcat server size is configured differently and is not discussed here). To change Google App Engine configuration, you must edit the configuration files produced by the installer and re-run the uploader script to push the changes to Google's servers. There are two server settings that can be changed -- the web server size and the background server size. Data corruption is generally caused by the premature termination of an action (e.g., saving of a submission) because it took longer than the allotted time.

The likelihood of data corruption occurring is tied to the quantity of form definitions on the server, the size of the individual submissions, the number of devices simultaneously submitting data, and the speed of the network. Increasing the web server size enables it to handle larger workloads faster, which can reduce the likelihood of hitting this time limit thereby avoiding data corruption. For data corruption caused by slow network speeds, you might also be able to change more aspects of the App Engine configuration (specified in these files) to make your web server always-available and to replace it with a Bx instance that does not have an automatic request time limit (the documentation provided by Google is currently unclear on whether this is still possible with the new services constructions). Web Server Size The web server handles all browser interactions and all data-submission and form-download requests from ODK Collect and ODK Briefcase. Increasing the size of the web server should reduce the likelihood of data corruption if it is not caused by slow network speeds. To change the Google App Engine web server size, go to the folder you specified to the installer.

Within that folder, navigate to: ODKAggregate/default/WEB-INF Within that directory, there will be a file appengine-web.xml. Open that file in a text editor like Notepad++ or Notepad. The file contents will look something like: opendatakit-simpledemo default 1 F2.

To change the size of the web server, replace F2 with a different instance class size. There are several different instance classes available. Select from among the instance classes beginning with the letter F. See for their descriptions or search for 'Google AppEngine instance classes standard environment' on the web. Then re-run the upload tool within the ODKAggregate folder either by double-clicking the 'ODKAggregateAppEngineUpdater.jar' file (Windows), or double-clicking the '' file (Mac OSX), or double-clicking the '' file (linux). Once you have uploaded these changes to App Engine, your server will be running on the instance size that you have specified. Background Server Size App Engine deployments use a 'background' copy of the website to process long-running actions like generating CSV and KML files for export and for publishing all accumulated data to an external server.

If you experience difficulty exporting to CSV or KML, the size of that server will also need to be updated. In that case, go to: ODKAggregate/background/WEB-INF Within that directory, there will be a slightly different file with the same appengine-web.xml filename. Open that file in a text editor like Notepad++ or Notepad. The file contents will look something like: opendatakit-simpledemo background 1 B2. To change the size of the server, replace B2 with a different instance class size.

There are several different instance classes available. Select from among the instance classes beginning with the letter B. As before, see for their descriptions or search for 'Google AppEngine instance classes standard environment' on the web. And, as above, re-run the upload tool to make these changes take effect on Google's servers. Useful Notes • from Geo for Good 2015 • The developer wiki has and tips on (and ).

• Google App Engine servers may be located anywhere in the world. Depending on the sensitivity of the data and specific storage rules/restrictions, the server infrastructure may not have all necessary security precautions (such as encryption). It is the organization's responsibility to research and comply with applicable laws and regulations before storing data on Google App Engine. The organization is also responsible for taking the appropriate security precautions and educating users that the information will be available to the organization and stored on Google servers as specified in the. • Looking for other servers? Try (for local offline storage), (for free data hosting on the cloud), (like Aggregate but in Python), (for SMS integration) or (for medical records).

At Vendasta the App Engine Datastore serves as the single point of truth for most operational data and the majority of interactions are against this single point of truth. However, a piece of required functionality in many of our products is to provide a searchable view of the data in the App Engine Datastore. Search is difficult using the Datastore and so we have moved to using the as a managed solution for searching datastore entities. In this use case, every edit to an entity in the Datastore is reflected as a change to a Search Document. This article details an architecture for keeping Datastore entities and Search Documents in sync throughout failure and race conditions. Updating the Search Document Using a _post_put_hook To ensure that every put of an entity to the Datastore results in an update to the associated search document, we update the search document in the _post_put_hook of the entity. The _post_put_hook is executed every time the entity is put so each time the entity has changed we will put a new and updated search document.

Datastore Detail On the Datastore Detail dashboard you can access information about the storage layer in your environment. Using this dashboard you can: • Monitor the most important performance metrics such as latency and IOPS for the connected datastore, at the filer and at the volume level. • Correlate virtual machine performance with storage performance (specifically NetApp storage). • Reduce the time it takes to identify a problem if storage performance degradation affects all of the hosts or some of the virtual machines on a particular datastore. Display datastore details Look at the details for a specific datastore either by using the drop-down lists to select a specific datastore, or drill down from another dashboard in the app to automatically populate the dashboard. Use the drop-down lists to select: • a virtual center. • a datastore.

• a time range. The panels in the dashboard populate with data about the datastore you selected. Look at the configuration and status of the datastore On this panel you can get information about the state of the datastore, such as: • If the datastore is accessible. • The volume type, for example, an NFS volume.

• The available space and total space, in GB, on the datastore. • The space provisioned, in GB, for a virtual machine, and the percent overprovisioned.

• The path to the datastore and the associated URL. • The number of virtual machines on the datastore.