New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 812046 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

wmatrix database not initialized, syntax error in createusers.sh

Project Member Reported by mattmallett@chromium.org, Feb 14 2018

Issue description

createusers.sh: 18: createusers.sh: Syntax error: "fi" unexpected (expecting "then")

Also, missing 'then' on line 19, line 22, line 23

createusers.sh gives syntax error and fails to execute during moblab-database-init. This results in 500 error trying to load wmatrix on moblab due to the users not being setup correctly.
 
Owner: mattmallett@chromium.org
Status: Started (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, Feb 18 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/whining/+/182f191de97e9025e2e07a971b2459d40e101b09

commit 182f191de97e9025e2e07a971b2459d40e101b09
Author: Keith Haddow <haddowk@chromium.org>
Date: Sun Feb 18 03:46:09 2018

[moblab] Fixing errors in wmatrix db provisioning

Creating moblab specific versions of wmatrix db scripts that
match the environment and method signature of moblab init
environment.

BUG= chromium:812046 
TEST=On local moblab device, verify that wmatrix pages load

Change-Id: I9b0873d4709642740b7992bb938fe8e251395edf
Reviewed-on: https://chromium-review.googlesource.com/922361
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>

[add] https://crrev.com/182f191de97e9025e2e07a971b2459d40e101b09/src/backend/sql/createusers_moblab.sh
[add] https://crrev.com/182f191de97e9025e2e07a971b2459d40e101b09/src/backend/sql/recreate_moblab.sh
[add] https://crrev.com/182f191de97e9025e2e07a971b2459d40e101b09/src/backend/sql/rawrecreate_moblab.sh

Project Member

Comment 3 by bugdroid1@chromium.org, Feb 18 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/81f54b79545111c4abf3f5913f4c20080658e0e1

commit 81f54b79545111c4abf3f5913f4c20080658e0e1
Author: Keith Haddow <haddowk@chromium.org>
Date: Sun Feb 18 03:46:11 2018

[moblab] Fixing 500 error on moblab wmatrix page

Error caused by db init scripts not running, wmatrix not able to
connect to database.

BUG= chromium:812046 
TEST=On local moblab device, verified that wmatrix pages load
again.
CQ-DEPEND=CL:922361

Change-Id: Id398d5b5384fa6c2baaed12523ec3c144f7ef06a
Reviewed-on: https://chromium-review.googlesource.com/922323
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>

[modify] https://crrev.com/81f54b79545111c4abf3f5913f4c20080658e0e1/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-database-init.conf

Project Member

Comment 4 by bugdroid1@chromium.org, Feb 21 2018

Labels: merge-merged-release-R65-10323.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/whining/+/8abf49b220bfb940115248132bc77844cfb4c64c

commit 8abf49b220bfb940115248132bc77844cfb4c64c
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:29:37 2018

[moblab] Fixing errors in wmatrix db provisioning

Creating moblab specific versions of wmatrix db scripts that
match the environment and method signature of moblab init
environment.

BUG= chromium:812046 
TEST=On local moblab device, verify that wmatrix pages load

Change-Id: I9b0873d4709642740b7992bb938fe8e251395edf
Reviewed-on: https://chromium-review.googlesource.com/922361
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 182f191de97e9025e2e07a971b2459d40e101b09)

[add] https://crrev.com/8abf49b220bfb940115248132bc77844cfb4c64c/src/backend/sql/createusers_moblab.sh
[add] https://crrev.com/8abf49b220bfb940115248132bc77844cfb4c64c/src/backend/sql/recreate_moblab.sh
[add] https://crrev.com/8abf49b220bfb940115248132bc77844cfb4c64c/src/backend/sql/rawrecreate_moblab.sh

Project Member

Comment 5 by bugdroid1@chromium.org, Feb 21 2018

Labels: merge-merged-release-R64-10176.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/whining/+/c102db52858ad3433ea0f5657e00aafe07163652

commit c102db52858ad3433ea0f5657e00aafe07163652
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:29:20 2018

[moblab] Fixing errors in wmatrix db provisioning

Creating moblab specific versions of wmatrix db scripts that
match the environment and method signature of moblab init
environment.

BUG= chromium:812046 
TEST=On local moblab device, verify that wmatrix pages load

Change-Id: I9b0873d4709642740b7992bb938fe8e251395edf
Reviewed-on: https://chromium-review.googlesource.com/922361
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 182f191de97e9025e2e07a971b2459d40e101b09)

[add] https://crrev.com/c102db52858ad3433ea0f5657e00aafe07163652/src/backend/sql/createusers_moblab.sh
[add] https://crrev.com/c102db52858ad3433ea0f5657e00aafe07163652/src/backend/sql/recreate_moblab.sh
[add] https://crrev.com/c102db52858ad3433ea0f5657e00aafe07163652/src/backend/sql/rawrecreate_moblab.sh

Project Member

Comment 6 by bugdroid1@chromium.org, Feb 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/ca2698a811bf10fc92f3ee49064ac1d508530e85

commit ca2698a811bf10fc92f3ee49064ac1d508530e85
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:59:36 2018

[moblab] Fixing 500 error on moblab wmatrix page

Error caused by db init scripts not running, wmatrix not able to
connect to database.

BUG= chromium:812046 
TEST=On local moblab device, verified that wmatrix pages load
again.
CQ-DEPEND=CL:922361

Change-Id: Id398d5b5384fa6c2baaed12523ec3c144f7ef06a
Reviewed-on: https://chromium-review.googlesource.com/922323
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 81f54b79545111c4abf3f5913f4c20080658e0e1)
Reviewed-on: https://chromium-review.googlesource.com/929442
Commit-Queue: Matt Mallett <mattmallett@chromium.org>
Tested-by: Matt Mallett <mattmallett@chromium.org>
Trybot-Ready: Matt Mallett <mattmallett@chromium.org>

[modify] https://crrev.com/ca2698a811bf10fc92f3ee49064ac1d508530e85/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-database-init.conf

Project Member

Comment 7 by bugdroid1@chromium.org, Feb 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/848458c2764c09b2a5befdb48d0cdfd9a175fef5

commit 848458c2764c09b2a5befdb48d0cdfd9a175fef5
Author: Keith Haddow <haddowk@chromium.org>
Date: Wed Feb 21 18:59:37 2018

[moblab] Fixing 500 error on moblab wmatrix page

Error caused by db init scripts not running, wmatrix not able to
connect to database.

BUG= chromium:812046 
TEST=On local moblab device, verified that wmatrix pages load
again.
CQ-DEPEND=CL:922361

Change-Id: Id398d5b5384fa6c2baaed12523ec3c144f7ef06a
Reviewed-on: https://chromium-review.googlesource.com/922323
Commit-Ready: Keith Haddow <haddowk@chromium.org>
Tested-by: Keith Haddow <haddowk@chromium.org>
Reviewed-by: Keith Haddow <haddowk@chromium.org>
(cherry picked from commit 81f54b79545111c4abf3f5913f4c20080658e0e1)
Reviewed-on: https://chromium-review.googlesource.com/929441
Commit-Queue: Matt Mallett <mattmallett@chromium.org>
Tested-by: Matt Mallett <mattmallett@chromium.org>
Trybot-Ready: Matt Mallett <mattmallett@chromium.org>

[modify] https://crrev.com/848458c2764c09b2a5befdb48d0cdfd9a175fef5/project-moblab/chromeos-base/chromeos-bsp-moblab/files/init/moblab-database-init.conf

Status: Fixed (was: Started)

Sign in to add a comment