Author Archives: Robins

Linux boot prompt “failed to initialize Hal!” solution

My operating system is debian5. There are some directories under/etc/that are RC *. D. * stands for numbers, which are all the services loaded when the system starts. Find DBUS and Hal in them. Pay attention to the numbers in front, which represent the startup order. For example, I found k88dbus and k16hal in RC1. D directory. The problem is that the startup order of DBUS is behind Hal, So it causes this problem. Therefore, write the startup sequence of dubs between Hal serial numbers. For example, I change k88dbus to k15dbus, and use the following command:

#mv K88dbus K15dbus

Restart again and the problem is solved.

Failed to connect to ourself

Today, when the management node of MySQL Cluster was restarted, it could not be started. After several attempts, there was still a problem. Check the log and the following error was reported.

2011-04-01 23:49:03 [MgmtSrvr] INFO     — Got initial configuration from ‘/usr/local/mysql/mysql-cluster/ config.ini ‘, will try to set it when all ndb_ mgmd(s

) started

2011-04-01 23:49:03 [MgmtSrvr] INFO     — Mgmt server state: nodeid 1 reserved for ip 192.168.100.32, m_ reserved_ nodes 1.

2011-04-01 23:49:03 [MgmtSrvr] INFO     — Node 1: Node 1 Connected

2011-04-01 23:49:03 [MgmtSrvr] INFO     — Id: 1, Command port: *:1186

2011-04-01 23:49:03 [MgmtSrvr] WARNING  — 1011 Unable to connect with connect string: nodeid=0, localhost:1186

2011-04-01 23:49:03 [MgmtSrvr] ERROR    — Failed to connect to ourself!

It’s strange that the server has been in normal use for several days. As soon as it was restarted today, there was a problem. I asked my colleagues what changes the server had made in the past two days. The answer is:

Changed the hosts file. Go up and see: found changed to:

127.0.0.1               localhost.localdomain openldap

So change to the default value

127.0.0.1               localhost.localdomain localhost

Restart, OK. business as usual!

Reproduced in: https://www.cnblogs.com/feihongwuhen/archive/2011/04/01/7170052.html

Solve the problem of failed to create the Java virtual machine when eclipse is opened

For the above reasons, the Java virtual machine can not be opened. It may be that the virtual memory of the Java virtual machine is set incorrectly. Open the eclipse decompression directory and open it eclipse.ini Documents.

 

The contents of the original document are as follows:

-startup

plugins/ org.eclipse.equinox .launcher_ 1.2.0.v20110502.jar

— launcher.library

plugins/ org.eclipse.equinox . launcher.win32 .win32.x86_ 1.1.100.v20110502

-product

org.eclipse.epp . package.jee.product

— launcher.defaultAction

openFile

— launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

— launcher.XXMaxPermSize

256m

— launcher.defaultAction

openFile

-vmargs

– Dosgi.requiredJavaVersion=1 .5

-Xms40m

-Xmx512m

 

Revised eclipse.ini The documents are as follows:

-startup

plugins/ org.eclipse.equinox .launcher_ 1.2.0.v20110502.jar

— launcher.library

plugins/ org.eclipse.equinox . launcher.win32 .win32.x86_ 1.1.100.v20110502

-product

org.eclipse.epp . package.jee.product

— launcher.defaultAction

openFile

— launcher.XXMaxPermSize

128M

-showsplash

org.eclipse.platform

— launcher.XXMaxPermSize

128m

— launcher.defaultAction

openFile

-vmargs

– Dosgi.requiredJavaVersion=1 .6

-Xms40m

-Xmx256m

 

Note: the red part is the modified part.

After saving, restart eclipse.

 

The solution of “failed to load ldlinux. C32” in Linux system

Using the U disk made by UltraISO to start, F12 key appears when USB starts

Failed to load ldlinux.c32
Boot failed: please change disks and press a key to continue

terms of settlement:

When UltraISO makes the boot disk, the write mode is changed to “raw”, and the system can start smoothly when it is installed.

reference material:

http://www.cnblogs.com/huadongw/p/6516637.html

Failed to clean project: Failed to delete

Failed to clean project: Failed to delete access_ Log. A log file

Before, when I started Tomcat plug-in to test whether Dubbo resource scheduling is normal in Maven distributed project construction, I encountered the following error

error message

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project e3-manager-service: Failed to clean project: Failed to delete E:\ecplise18\qiu\e3demo\e3-manager\e3-manager-service\target\tomcat\logs\access_log.2018-06-08 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 

Cause of error

Because you’ve started the service before, just turn it off.

resolvent

Tns-03505: the ultimate solution to failed to resolve name

System environment: centos7

Oracle environment: 11g

Fault description: the server directly restarts after running data crash, and various errors are reported after restart,

Tns-03505: failed to resolve name,

The external PLSQL connection prompts ora-12170: TNS: connection timeout.

The specific solutions are as follows:

1. Check the file configuration information listener and tnsnames, and confirm that the following is correct. If the configuration of this file is wrong, the listening service will not be started normally.

 

2. Start the monitoring service lsnrctl start and update the registration

Services Summary…
Service “orcl” has 1 instance(s).
  Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
 

“Unknown” is prompted here. Registration update is required,

3. Open orcl service and update the registration

sqlplus/as sysdba

startup

alter system register;

quit

lsnrctl status

Service “orcl” has 1 instance(s).
  Instance “orcl”, status READY, has 1 handler(s) for this service…
Service “orclXDB” has 1 instance(s).
  Instance “orcl”, status READY, has 1 handler(s) for this service…
The command completed successfully

Confirm that the monitoring status is ready
then

4. Test results

Tns-03505 failed to resolve name is displayed. After confirming that there is no problem in the previous steps, proceed to the last step to view the firewall and port information

 

5. Check the firewall information, view the specific port information, and add the corresponding port. After confirming that the port is added, test again, and you can access it normally

 

Ccache: failed to create / home

Ccache: failed to create/home cause: the user name has been modified before, but the home directory of the original user name has not been modified, resulting in this problem.

Solution: use the command sudo GEDIT/etc/passwd to change the original user’s home directory name to the current user name

User name: X: uid: GID: remarks: home directory path: shell path

That is, modify the home directory path

Failed to resolve: com.github

Error after running someone else’s Demo:

Failed to resolve: com.github.yangjie10930:EpMedia:v0.8.2

Solutions:
1 in project build.gradle Join in

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

Full version

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

2 add in module

 compile ('com.github.yangjie10930:EpMedia:v0.8.2'){
        transitive = true
    }

Full version

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        applicationId "com.joe.epmediademo"
        minSdkVersion 18
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }


}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile ('com.github.yangjie10930:EpMedia:v0.8.2'){
        transitive = true
    }
    testCompile 'junit:junit:4.12'
}

Failed to resolve: failed to resolve

Failed to resolve: failed to resolve*


Background: some time ago, I did a PDF reading function, but when I introduced the remote warehouse dependency package, Android studio always reported errors. Failed to resolve: * well, I don’t need to say much nonsense. I’ll post the process of my solution for the reference of workers.


Premise: delete gradle.properties Then file – & gt; setting – & gt; proxy (search) – & gt; noproxy.
1.
2. Add the address of Alibaba cloud Maven warehouse in Android studio. As shown in the following figure:

3.

Solve the problem of prompt “failed to sync branch” when using Git

When an empty git project is created and a large number of local files are copied in, and you want to do any git operation, you will be reported
as soon as possible

failed to sync this branch
You might need to open a shell and debug the state of this repo.

Maybe you’ll follow the instructions

debug xxx

But it doesn’t work

The actual reason is that there is no initialization

Do it in the current directory

git init

It’s OK