Author Archives: Robins

Solution to 1030 got error 28 from storage engine in MySQL

Problem Performance:

Solutions:

Mysql 1030 error does not have enough space, so clean up the disk space and restore normal use.

Mysql database had “Got error 28 from Storage Engine” error, so the problem was solved in this way.
1.

XML/HTML code

    disk temporary space is not enough. Solution: empty the/TMP directory, or change the tmpdir parameter in my.cnf to point to the directory with enough space

2,

XML/HTML code

    mysql> ERROR 1030 (HY000): Got ERROR 28 from storage engine
    the reason for this problem: there is not enough temporary space to execute this SQL statement solution: simply point tmpdir to a directory with a large hard disk space

Of course, both statements are the same. So there’s almost certainly no space left. I looked at the other disks and sure enough.

depressed, the backup file was deleted first normal.

svn process exited with error code: 1

Error appears when SVN is used in IDEA to submit the code: SVN Process exited with error code: 1. The following Settings can be used to solve the problem:

 
Check the first one, leave the second one unchecked, clear the cache again, and enter the account number and password again when submitting later.
 
 
If this error occurs:
Can’t use Subversion command line client: svn Probably the path to Subversion executable is wrong
 
Refer to this address at https://blog.csdn.net/fuqiang3270/article/details/68945645
 

Microsoft SQL server, additional database error: error 916 solution

Error Message: Error message: Title: Microsoft SQL Server Management Studio Express — — could not retrieve data for this request. (Microsoft) is essentially) Express. SmoEnum) about help information, please click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server& LinkId=20476 — Other information: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft. Essentially. Express. ConnectionInfo) — — — — — — server subject “Jack – PC/Jack” can’t “model” to access to database under the current security context. (Microsoft SQL Server, an error: 916) for help information, please click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server& ProdVer = 09.00.4035 & amp; EvtSrc=MSSQLServer& EvtID=916& LinkId=20476 — button: OK –.
A quick web search revealed the solution: It’s actually quite simple: just run Management Sdudio with administrator privileges.

On error goto (resume)

Iamlaosong article
Error capture is often used to prevent unexpected program interruptions. There are three types of capture:
On Error GoTo 0
means to disable any Error handlers that have been started in the current process. The test results show that -1 actually works, which has the same effect as 0. After executing this statement, if the error is encountered again, the system will interrupt the program execution and pop up an error prompt.

On Error Resume Next
indicates that when a runtime Error occurs, the control goes to the statement that follows the Error and continues to run here. That is, no error prompt, continue to run. Use this form when accessing objects instead of using On Error GoTo.

On Error GoTo line
starts the Error handler, and the routine starts with the line specified in the necessary line parameter. The line parameter can be any line label or line number. If a runtime error occurs, the control jumps to line, activating the error handler. Using this kind of statement is to write your own error handlers, especially for predictable errors. The specified line must be in a procedure, the same as the On Error statement; Otherwise, a compile time error will occur. After you go to line, you can do error handling. In addition to the Exit Sub, the error handler can finally execute:

Resume: Execute at the wrong place. Try again. Resume Next: Similar to On Error Resume Next, ignore the current Error statement and execute the Next statement Resume < Label & gt; Go to the label and deal with it.

Err.Clear is used to Clear the Err object after handling errors; for example, Clear is used when using delay Error handling for On Error Resume Next. The Clear method is automatically called whenever the following statement is executed:
Resume statement of any type Exit Sub, Exit Function, Exit Property any On Error statement.

You can see the effect of the error capture statement with the following routine (assuming no more than 4 worksheets) :

Sub tt()
    For i = 0 To 5
       On Error GoTo err1
       a = 5
       b = a/i
       MsgBox b
       On Error GoTo err2
       c = i
       Sheets(c).Select
    Next i
    Exit Sub
err1:
    MsgBox err.Number & err.Description
    err.Clear
    MsgBox err.Number & err.Description
    Resume Next
err2:
    MsgBox err.Number & err.Description
    c = 1
    Resume
End Sub

Sub tt()
    For i = 0 To 5
       On Error GoTo err1
       a = 5
       b = a/i
       MsgBox b
       On Error GoTo err2
       c = i
       Sheets(c).Select
    Next i
    On Error GoTo 0
    Sheets(i).Select
    Exit Sub
err1:
    MsgBox err.Number & err.Description
    err.Clear
    MsgBox err.Number & err.Description
    Resume Next
err2:
    MsgBox err.Number & err.Description
    c = 1
    Resume
End Sub

Excel pivot table data source not valid

The perspective is needed because the work requires it, and it turns out that no matter how you create it, it always says “data source invalid”
Checked Baidu experience, after saying is two reasons: 1. Title bar has space 2. Title bar may be merged cells
But it is of no damn use
In the deletion of no sequence is still invalid after finally found the reason, the original is the reason for the file name, the file name can not have [], tragedy, thank you here this netizen, in order to forget, or write an article to commemorate it
The original link:
https://zhidao.baidu.com/question/367555675.html
 

Python uses try… Except… To output detailed errors

When a Python segment USES try... except... After , I don’t know how to locate the detailed program crush
. These two days, the program needs to use this aspect, so I looked it up.

You need to use the Traceback package

import traceback

try:
		#Dividing by zero errors is an example
		3/0
except Exception, e:
		#This is the output for the error category, which is not really visible if the catch is a generic error
		print 'str(Exception):\t', str(Exception) #Output str(Exception): <type 'exceptions.Exception'>
		#This is the specific reason for the output error. 
		print 'str(e):\t\t', str(e) #output str(e): integer division or modulo by zero
		print 'repr(e):\t', repr(e) # Output repr(e): ZeroDivisionError('integer division or modulo by zero',)
		print 'traceback.print_exc():';    
		#Both of the following steps output the exact location of the error
		traceback.print_exc()
		print 'traceback.format_exc():\n%s' % traceback.format_exc()

In addition, Python 2.6 except after the sentence can be replaced with except Exception as e

django Internal server error 500 Modify source code to view print errors

Internal Server Error 500 is an annoying error that will probably make you want to smash your computer.
because this error caused too many sources, (I, often encountered the background py file error, including some very incredible format errors)
so looking for a long time on the Internet finally found a good solution

use python pyamf client connect to the server, only quote us this error:
pyamf.remoting.RemotingError: HTTP Error 500: INTERNAL SERVER ERROR
If you just look at this mistake, you’ll get confused. You have to make the error report more specific.
Think about it, there are two ways to make the error location, one is to change pyAMf source code, one is to change the source code of Django, let Django directly print out 500 error messages.
This is done with the second idea.
Django 500 source: python2.7/site – packages/django/core/handlers/base. Py
The source code is as follows, the middle section is added by me, so that the detailed error can be displayed:
def handle_uncaught_exception(self, request, resolver, Exc_info):
“”
Processing for any otherwise uncaught exceptions (those that will
generate HTTP 500 responses). Can be overridden by subclasses who want
customised 500 handling

    Be *very* careful when overriding this because the error could be
    caused by anything, so assuming something like the database is always
    available would be an error.
    """
    from django.conf import settings

    if settings.DEBUG_PROPAGATE_EXCEPTIONS:
        raise

    logger.error('Internal Server Error: %s', request.path,
        exc_info=exc_info,
        extra={
            'status_code': 500,
            'request': request
        }
    )
    #============= Code start ========== by chang
    print "---------- HTTP 500 Error Msg ---------- "
    print exc_info
    import traceback
    print traceback.format_exc()
    print "---------------------------------------- " 
    #============= Code end =========

    if settings.DEBUG:
        from django.views import debug
        return debug.technical_500_response(request, *exc_info)

    # If Http500 handler is not installed, re-raise last exception
    if resolver.urlconf_module is None:
        raise exc_info[1], None, exc_info[2]
    # Return an HttpResponse that displays a friendly error message.
    callback, param_dict = resolver.resolve500()
    return callback(request, **param_dict)

Solve gitbook rangeerror: maximum call stack size exceeded

Problem description
Gitbook serve preview: error RangeError: Maximum call stack size exceeded

The solution
https://github.com/GitbookIO/plugin-lunr/blob/master/README.md#limitations

lunr
This plugin provides a backend for the search plugin.
This plugin is a default plugin.
Disable this plugin
This is a default plugin and it can be disabled using a book.json configuration:

{
    "plugins": ["-lunr"]
}

Limitations
Lunr can’t index a huge book, by default the index size is limited at ~100ko.
You can change this limit by settings the configuration maxIndexSize:

{
    "pluginsConfig": {
        "lunr": {
            "maxIndexSize": 200000
        }
    }
}

Json is created in the root directory of the GitBook project, and the lunr plug-in is disabled

$ vim book.json

$ ls
_book/     Chapter10/  Chapter3/  Chapter6/  Chapter9/
book.json  Chapter11/  Chapter4/  Chapter7/  README.md
Chapter1/  Chapter2/   Chapter5/  Chapter8/  SUMMARY.md

$ cat book.json
{
    "plugins": ["-lunr"]
}

Preview again to see if there are any errors

At this point, there is no problem with using gitbook serve, but using gitbook build --gitbook=2.6.7 still gives an error.
Use gitbook Build –gitbook=2.6.7 Still gives an error

When using gitbook build only, the error will not be reported, while when making gitbook version, the error will be reported, indicating that lunr plug-in is not disabled when making the version.
Therefore, this approach does not solve this reduced version of gitbook build case.

Excel VBA on error resume next error handling

Original Code
Sub test()
Dim arr() As String                                  'Define dynamic arrays
Dim n As Long
Dim c As Integer
Dim i As Integer
Dim q As Integer
Dim pvc As Variant

Sheets("Sheet1").Select
n = Application.WorksheetFunction.CountA(Range("A:A")) 'Determine the amount of data in column A
ReDim arr(1 To n) As String 'Redefine array based on column A data.
For i = 1 To n
    arr(i) = Cells(i, 2) 'Assign value to array
Next
Sheets("Experian Content Spreadsheet").Select

For c = 2 To [I65535].End(xlUp).Row Step 1
    If Len(LTrim(Range("I" & c).Value)) <> 0 Then
        pvc = Split(Range("I" & c), "|")
        For i = LBound(pvc) To UBound(pvc) Step 1
            On Error Resume Next
            q = WorksheetFunction.Match(pvc(i), arr, 0)
            If q = 0 Then
                Range("I" & c).Interior.Color = RGB(255, 255, 0)
                msgbox "I" & c
            End IF
        Next i
    End If
Next c
End Sub

修改后的代码
Sub test()
Dim arr() As String                                  'Define dynamic arrays
Dim n As Long
Dim c As Integer
Dim i As Integer
Dim q As Integer
Dim pvc As Variant

Sheets("Sheet1").Select
n = Application.WorksheetFunction.CountA(Range("A:A")) 'Determine the amount of data in column A
ReDim arr(1 To n) As String 'Redefine array based on column A data.
For i = 1 To n
    arr(i) = Cells(i, 2) 'Assign value to array
Next
Sheets("Experian Content Spreadsheet").Select

On Error Resume Next
For c = 2 To [I65535].End(xlUp).Row Step 1
    If Len(LTrim(Range("I" & c).Value)) <> 0 Then
        pvc = Split(Range("I" & c), "|")
        For i = LBound(pvc) To UBound(pvc) Step 1
            q = WorksheetFunction.Match(pvc(i), arr, 0)
            If Err.Number <> 0 Then
                Range("I" & c).Interior.Color = RGB(255, 255, 0)
                MsgBox "I" & c
                Err.Number = 0
            End If
        Next i
    End If
Next c
On Error GoTo 0
End Sub

The first time an error occurs, Q is not assigned a value, and the initial value is 0. Later, when an error occurs, Q is not assigned a value, and the previous value is kept. In fact, you should not be judging Q, but whether there is an error value Err.
Number, which is changed when Match makes an error, and is not assigned to Q. Unless there are consecutive errors, the last Q value cannot be 0.
The first time you use I2 to execute Q, the error is skipped and Q is the initial value of 0.
The second time I12 is used to perform Q with a value of 1.
......
Error again at I34, where the Q value is the value after I32 execution1

 

Compilation error: * * [all local] error 2

Nrpe compiles error

Using Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98/blib/lib /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 6.
BEGIN failed--compilation aborted at Makefile.PL line 6.
make[3]: Entering directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98'
Can't run make. Please
        rm -rf /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98
to remake from this point) at ../tools/build_perl_modules line 235.
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1'
make: *** [all] Error 2

This is the lack of Perl modules resulting in the installation

yum -y install perl-ExtUtils-MakeMaker

And then make&amp again; & make install

CMake Error: Could not find CMAKE_ROOT !!!

The operation error is shown in the figure below:

CMake version 3.13.0-RC2
The installation package is placed in the /usr/local/directory

Recompile the new version

cd /usr/local/

sudo tar -zxv -f cmake-3.13.0-rc2.tar.gz

sudo mv cmake-3.13.0-rc2 cmake

cd cmake

sudo ./bootstrap --prefix=/usr

sudo make

sudo make install

cmake --version