These are chat archives for ushahidi/Community

26th
Sep 2015
Pesaply Engineering
@pesaply
Sep 26 2015 09:38
Hey Guys Does Ushahid Have Docker Plugin
Hey @rjmackay Thanks I Did Figure Out The Issue , But Am Thinking Of Using This Project Inside Docker
Angel Rodriguez-Ricardo
@angelrr7702
Sep 26 2015 11:22
Yes
I create docker container for v2 and
Tow other for v3 you can use them like reference to make your own container
Angel Rodriguez-Ricardo
@angelrr7702
Sep 26 2015 11:28
Quantumobject/docker-shahid I for v2
And for client :
Pesaply Engineering
@pesaply
Sep 26 2015 11:35
Thanks ,, Asante Sana
Angel Rodriguez-Ricardo
@angelrr7702
Sep 26 2015 11:45
n/p or you can used it directly from docker repository ... for version 3 you need to run platform first and them with info from its https and port used to run client ...
I send to build it again to make sure it is up to update at docker repository ..
DandiC
@DandiC
Sep 26 2015 18:56
Hello, I'm trying to install ushahidi on windows with vagrant using this tutorial. The thing is that after running vagrant up && vagrant provision I get the following error: ''' "message": "Table 'ushahidi.users' doesn't exist [ SELECT users.* FROM users WHERE users.id IS NULL LIMIT 1 ]",
"code": 1146,
"class": "Database_Exception",
"file": "/var/www/application/classes/Database/MySQLi.php",
"line": 155, '''
Robbie Mackay
@rjmackay
Sep 26 2015 19:23
@DandiC did you get any errors from running vagrant ?
That sounds like the database migrations were never run
DandiC
@DandiC
Sep 26 2015 19:54

gf @rjmackay Yes sorry I forgot to include them, I'm not sure if this is what you meant but these are the errors I got in the CLI when I ran the vagrant command:

==> default: Error: /var/www/bin/update --no-interaction returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Main/Exec[bin-update]/returns: change from notrun to 0 failed: /var/www/bin/update --no-interaction returned 1 instead of one of [0]
==> default: Info: Class[Main]: Unscheduling all events on Class[Main]
==> default: Info: Stage[main]: Unscheduling all events on Stage[main]
==> default: Notice: Applied catalog in 76.82 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Robbie Mackay
@rjmackay
Sep 26 2015 19:54
odd. Its worth running vagrant provision again in case it just works on the 2nd run
Otherwise run vagrant ssh to log in to the VM. Then run the following
cd /var/www/
composer compile
and le tme know what that does
DandiC
@DandiC
Sep 26 2015 19:56
@rjmackay Ok I'm running vagrant provision for the second time now I'll let you know if I get it, thanks!
DandiC
@DandiC
Sep 26 2015 20:25

@rjmackay after running composer compile:

phinx migrate -c application/phinx.php
Phinx by Rob Morgan - https://phinx.org. version 0.4.3

using config file ./application/phinx.php
using config parser php
using migration path /var/www/migrations
warning no environment specified, defaulting to: ushahidi
using adapter mysql
using database ushahidi

== 20140716082651 Initial: migrating
== 20140716082651 Initial: migrated 0.6247s

== 20140716103608 InitialRelations: migrating
== 20140716103608 InitialRelations: migrated 0.2019s

== 20140716154343 InitialOauth: migrating
== 20140716154343 InitialOauth: migrated 0.0187s

== 20140716154431 InitialOauthRelations: migrating
== 20140716154431 InitialOauthRelations: migrated 0.0414s

== 20140821024335 AddLayers: migrating
== 20140821024335 AddLayers: migrated 0.0033s

== 20140827013047 PopulateOauthScopes: migrating
== 20140827013047 PopulateOauthScopes: migrated 0.0014s

== 20140828235719 AddLayersOauthScope: migrating
== 20140828235719 AddLayersOauthScope: migrated 0.0009s

== 20140829142629 DefaultAdminUser: migrating
== 20140829142629 DefaultAdminUser: migrated 0.0009s

== 20140829151920 DefaultOauthClient: migrating
== 20140829151920 DefaultOauthClient: migrated 0.0013s

== 20140904004829 AddPostUserFields: migrating
== 20140904004829 AddPostUserFields: migrated 0.0146s

== 20140904004900 MovePostUsersToPost: migrating
== 20140904004900 MovePostUsersToPost: migrated 0.0019s

== 20140904004941 RequireUsersUsername: migrating
== 20140904004941 RequireUsersUsername: migrated 0.0120s

== 20141007125013 CreatedUpdatedIndexes: migrating
== 20141007125013 CreatedUpdatedIndexes: migrated 0.2123s

== 20141015004705 AutoApproveDefaultOauthClient: migrating
== 20141015004705 AutoApproveDefaultOauthClient: migrated 0.0016s

== 20141017022550 FormsSoftDelete: migrating
== 20141017022550 FormsSoftDelete: migrated 0.0046s

== 20141105085836 FormAttributesRelations: migrating
== 20141105085836 FormAttributesRelations: migrated 0.0090s

== 20141107032450 FormAttributePriorityIndex: migrating
== 20141107032450 FormAttributePriorityIndex: migrated 0.0097s

== 20150307031255 AddAdditionalInfoToMessages: migrating
== 20150307031255 AddAdditionalInfoToMessages: migrated 0.0046s

== 20150312174835 AddFkConstraintOnPostTags: migrating
== 20150312174835 AddFkConstraintOnPostTags: migrated 0.0092s

== 20150323031520 RenameGroupsToStages: migrating
== 20150323031520 RenameGroupsToStages: migrated 0.0145s

== 20150326152730 AddSetFields: migrating
== 20150326152730 AddSetFields: migrated 0.0313s

== 20150326163454 AddPublishedToColumnToPosts: migrating
== 20150326163454 AddPublishedToColumnToPosts: migrated 0.0047s

== 20150331022622 AddRequiredAndCompletedStages: migrating
== 20150331022622 AddRequiredAndCompletedStages: migrated 0.0081s

== 20150428080719 AllowNullPostTitle: migrating
== 20150428080719 AllowNullPostTitle: migrated 0.0055s

== 20150502143055 UpdateConfigValueType: migrating
== 20150502143055 UpdateConfigValueType: migrated 0.0043s

== 20150507033314 CreateDefaultSets: migrating
== 20150507033314 CreateDefaultSets: migrated 0.0012s

== 20150608081940 AddSavedSearchesOauthScope: migrating
== 20150608081940 AddSavedSearchesOauthScope: migrated 0.0022s

== 20150612013637 RemoveTasks: migrating
== 20150612013637 RemoveTasks: migrated 0.0014s

== 20150612014430 AddDefaultRoles: migrating
== 20150612014430 AddDefaultRoles: migrated 0.0017s

== 20150612014440 AddUsersRoleForeignKey: migrating
== 20150612014440 AddUsersRoleForeignKey: migrated 0.0109s

== 20150715004543 AddUniquePostSlugIndex: migrating
== 20150715004543 AddUniquePostSlugIndex: migrated 0.0084s

== 20150716003751 FixUnstructuredPostSetFilter: migrating
== 20150716003751 FixUnstructuredPostSetFilter: migrated 0.0010s

== 20150716034610 AddMissingPostValueToFormAttributeFk: migrating
== 20150716034610 AddMissingPostValueToFormAttributeFk: migrated 0.0340s

== 20150716034618 AddPostRelations: migrating
== 20150716034618 AddPostRelations: migrated 0.0038s