Skip to content

Instantly share code, notes, and snippets.

View harshadura's full-sized avatar

Harsha Siriwardena harshadura

View GitHub Profile
[harsha@DuraArch ~]$ sudo journalctl -xn
-- Logs begin at Mon 2007-01-01 05:30:28 IST, end at Thu 2013-06-27 08:57:15 IST. --
Jun 27 08:56:59 DuraArch mysqld[15396]: 130627 8:56:59 [Warning] Can't create test file /var/lib/mysql/DuraArch.lower-test
Jun 27 08:56:59 DuraArch mysqld[15396]: [68B blob data]
Jun 27 08:56:59 DuraArch mysqld[15396]: 130627 8:56:59 [ERROR] Aborting
Jun 27 08:56:59 DuraArch mysqld[15396]: 130627 8:56:59 [Note] /usr/bin/mysqld: Shutdown complete
Jun 27 08:56:59 DuraArch systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
Jun 27 08:57:10 DuraArch sudo[15527]: harsha : TTY=pts/1 ; PWD=/home/harsha ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Jun 27 08:57:10 DuraArch sudo[15527]: pam_unix(sudo:session): session opened for user root by harsha(uid=0)
Jun 27 08:57:10 DuraArch sudo[15527]: pam_unix(sudo:session): session closed for user root
[root@DuraArch mysql]# journalctl -xn
-- Logs begin at Mon 2007-01-01 05:30:28 IST, end at Thu 2013-06-27 09:28:47 IST. --
Jun 27 09:28:47 DuraArch systemd[1]: Failed to start MariaDB database server.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit mysqld.service has failed.
--
[harsha@DuraArch ~]$ sudo journalctl -xn
[sudo] password for harsha:
-- Logs begin at Mon 2007-01-01 05:30:28 IST, end at Thu 2013-06-27 09:33:14 IST. --
Jun 27 09:31:47 DuraArch mysqld[5920]: 130627 9:31:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
Jun 27 09:31:47 DuraArch mysqld[5920]: 130627 9:31:47 [ERROR] Unknown/unsupported storage engine: InnoDB
Jun 27 09:31:47 DuraArch mysqld[5920]: 130627 9:31:47 [ERROR] Aborting
Jun 27 09:31:47 DuraArch mysqld[5920]: 130627 9:31:47 [Note] /usr/bin/mysqld: Shutdown complete
Jun 27 09:31:47 DuraArch systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
Jun 27 09:31:58 DuraArch sudo[6073]: harsha : TTY=pts/1 ; PWD=/home/harsha ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Jun 27 09:31:58 DuraArch sudo[6073]: pam_unix(sudo:session): session opened for user root by harsha(uid=0)
<%@ include file="/WEB-INF/template/include.jsp"%>
<%@ include file="/WEB-INF/template/header.jsp"%>
<%@ page import="net.tanesha.recaptcha.ReCaptcha" %>
<%@ page import="net.tanesha.recaptcha.ReCaptchaFactory" %>
<openmrs:htmlInclude file="${pageContext.request.contextPath}/moduleResources/patientnarratives/css/styles.css"/>
<%--<openmrs:htmlInclude file="${pageContext.request.contextPath}/moduleResources/htmlformentry/htmlFormEntry.js"/>--%>
<%--<openmrs:htmlInclude file="${pageContext.request.contextPath}/moduleResources/htmlformentry/htmlFormEntry.css"/>--%>
public void dialogOptionBuilder() throws IOException {
final CharSequence[] items = { getString(R.string.opdialog_rb_sinhala),
getString(R.string.opdialog_rb_tamil) };
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Select Your Mother Language");
builder.setSingleChoiceItems(items, getSelectedValue(),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int item) {
(ReferenceError): DWRXformsService is not defined
stack: isUserAuthenticated@http://localhost:8088/openmrs/module/patientnarratives/submitPatientNarrative.form:603
Mwb@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:1972
Ir@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:1966
Yv@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:1779
aw@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:901
Kv@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:1351
_P@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:714
_q@http://localhost:8088/openmrs/moduleResources/xforms/formrunner/A9DE4ECD339EC9385DDEAC7E4A6A42A3.cache.html:1448
cQ@http://localhost:8088/openmrs/moduleResources
<?xml version="1.0" encoding="UTF-8"?>
<PurcForm><Xform><xf:xforms xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jr="http://openrosa.org/javarosa">
<xf:model id="openmrs_model">
<xf:instance id="openmrs_model_instance">
<form id="1" name="Test1" version="1" uuid="2e5e8c7a-412b-442b-a301-934255986e3c" xmlns:openmrs="formentry.infopath_server_url cannot be empty/moduleServlet/formentry/forms/schema/1-1" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
<header>
<enterer/>
<date_entered/>
<session/>
<uid/>
INFO: Unexpected database error occurred
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'update_time' in 'field list'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
@harshadura
harshadura / gist:6420564
Created September 3, 2013 07:07
file download servlet
package org.openmrs.module.patientnarratives.web.servlet;
/*
* net/balusc/webapp/FileServlet.java
*
* Copyright (C) 2009 BalusC
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
@harshadura
harshadura / gist:6420565
Created September 3, 2013 07:08
fileDownloadservlet
package org.openmrs.module.patientnarratives.web.servlet;
/*
* net/balusc/webapp/FileServlet.java
*
* Copyright (C) 2009 BalusC
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.