Skip to content

Instantly share code, notes, and snippets.

Code:

-- work around JDBC 'A result was returned when none was expected.'
DO '
BEGIN
  -- fix broken nextval due to poorly written 20140320100000_CreateAdminUserRoleTables.sql
  PERFORM setval(''admin_user_role_groups_id_seq'', 1 + COALESCE(MAX(id), 0), FALSE) FROM admin_user_role_groups;
END; ';

Summary

mvn gcloud:run complains gcloud app xxx exit code is: 1, with no more information.

Trace

$ mvn -DskipTests gcloud:run
Mar 26, 2015 3:48:31 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Users/apennebaker/Desktop/src/users-ws/users-impl/target/users-impl-1.22.0-SNAPSHOT/WEB-INF/appengine-web.xml
FROM ubuntu:12.04
MAINTAINER Andrew Pennebaker <[email protected]>
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y postgresql postgresql-contrib
RUN service postgresql start

Summary

Why am I getting unable to get local issuer certificate when I try to connect to gitlab.colo.networkedinsights.com:443?

Fix

$ wget -O /etc/httpd/ssl/gd_bundle-g2-g1.crt https://certs.godaddy.com/repository/gd_bundle-g2-g1.crt