Category Archives: How to Fix

SMTP Error: The following recipients failed

Describe the problems I encountered:
After receiving phpmailer, The following Error was reported: SMTP Error: The following Error was received: XXXX Server Error: ‘4.7.1 < mail address sending to> Relay access denied’
I put the code in the same room with SMTP server on the machine can normal to send, after the change back to ali cloud is an error, I am depressed, Google once met this question a lot, but haven’t been able to solve my problem, and then I try to modify the inside of the phpmailer configuration, after changing the SMTPAuth to true unexpectedly send mail properly, the original is useless authentication out of wrong, but I in another machine SMTPAuth is false is normal, don’t know the reason why is it the same room so no authentication is required

Error: Failed dependencies: error encountered when installing rpm package

Under Linux install RPM packages often encounter the following problem:
error: Failed dependencies:
… The
ellipsis indicates the missing package for installing this RPM.
when you encounter this problem, you can add two parameters after the installation of RPM package command, such as:
rpm-ivh libstdc++5.0-3.3.3-62745cl.i386. RPM
is changed to:
RPMS -ivh libstdc++5.0-3.3.3-62745cl.i386. RPM –nodeps –force

plus those two parameters mean that
is installed without having to dependencies among packets, and
does not count error: Failed dependencies: such errors
In RedHat Linux and Other RedHat compliant distributions such as Mandrake, the entire distribution is installed using RPM. So the best way to install new software is to

downloading RPM packages from the network.
1) to install a package using an RPM, the simplest command is as follows:

# rb-ivh foo-1.0l-l.is386.rpm (the package in question is foo-1.0l-l.is386.rpm, all of the following)

foo#################### ############. Installation is simple.

2) remove installed packages
to uninstall package foo, simply enter the following command:

# rpm-e foo

note: the package name is foo, not the RPM file name “foo-1.01-l.b.i. 386.rpm”.

3) upgrading packages to upgrade the software is similar to install the software:

# RPM – Uvh foo – 2.0 – l.i 386 RPM

foo# # # # # # # # # # # # # # # # # # # #

user note: RPM will automatically install the old version of the corresponding software package. Rpmsave

saving /etc/foo.conf as /etc/foo.conf.rpmsave

so that the user can manually change the configuration file. In addition, if the user wants to install the older version of the software, the user will see the following error message:

# rpm-uvh foo-1.0-l.i386. RPM

foo packag foo-2.0-l(which is newer) is already installed

error: foo-1.0l-l.i 386. RPM cannot be installed

.
user can use rpm-q to query the corresponding software in the RPM database, RPM will give the name of the software package, version, release version number, for example:

# rpm-q foo

foo-2.0-l

the following is the query can use the specific parameters:
-a query the current system installed all software packages.
-f filename query includes ga file packages.
– F with the -f parameter, just input is standard input (for example the find/usr/bin | RPM – qF)
– q package name:
– q query the package with the -p parameter, just input is standard input (for example the find/MNT/cdrom/RedHat/RPMS | RPM – qQ)
here is the format of the output options:
– I displays the name of the package, description, distribution, size, date of compilation, the date of installation, developers and other information.
-l display the files contained in the software package
-s display the current status of the files contained in the software package, only two states: normal and missing
-d display the documents in the software package (such as man,info,README, etc.)
-c display the configuration files in the software package, these files generally need to be manually modified by the user after installation, for example: Sendmail. Cf, passwd, inittab etc.
if using the -v parameter can be similar to the output of the ls -l

5) in the RPM packages
users can use the RPM used to check the package has been installed, the RPM can check file size, MD5 check code, file permissions, type, and the information such as owner.
here is the parameter description:
– a simple calibration software package if the file exists
– b check package in a single file

– c check installation of all packages – d compare a source package and already installed packages

if the test through, there is no any error messages, if there is an error message, its format is as follows: the error information is one of the eight string, if it is a “. “, means there is no problem, here is the meaning of the corresponding characters: MD5 check error
5 MD5 check error
S file size error
L symbolic connection
T file modification time error
D device file error
U user name error
G group name error
M attributes (including overwrite weight and file type) error
if the user sees this information, it is best to reinstall or manually repair.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

the RPM practical skills!
1) users can install packages via FTP. If users will be able to connect on the network, want to install a new software package, you can directly use it to install to the URL:
for example: under ftp.linuxsir.com/pub/linux/redhat/RPMS/ now have this file package: foo – 1.0-1. I386 RPM, then you can use this command:

# RPM -i ftp.linuxsir.com/pub/linux/redhat/RPMS/foo-1.0-1.i386.rpm

to install, also can query!

2) if the user accidentally wushan several files, but not sure whether those documents, want to check to the whole system, in order to understand which parts may be damaged, you can use:

# RPM – Va

3) if the user meets a person not to come out of the file, want to know it belongs to the words of a software package, you can do it:

# rpb-qf /usr/X11R6/bin/xjewel

results are obtained with the following information:
xjewel-1.6-1

4) if the user gets a new RPM file, but does not know its contents; Or to find out which files a particular file package will install on your system, do this:

gvim: GConf-WARNING **: Client failed to connect to the D-BUS daemon

64-bit Debian GNU/Linux 8.2.0
# gvim mount
(gvim:1657): gnomeUI-WARNING **:When connecting to the session manager:
The specified authentication protocol is not supported.
(gvim:1657): GConf-WARNING **:Client failed to connect to the D-BUS daemon:
No reply received. Possible causes include:remote application not sending reply, message bus security policy blocking reply, reply timeout, or network connection disruption.
Solution:Use the “soo–” command to get the root identity.

How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict

The reason for this conflict is that the branch of the remote warehouse has been modified, but you have not pulled it locally, and you have also made the changes locally, so the system does not know whether to focus on the remote warehouse or the local warehouse, so the conflict occurs.

so how to fix it?
Method one:
1. Git Stash saves local changes to the cache
2, the git pull
3. Git Stash Pop # merges local and remote changes
4. At this point, the conflict needs to be resolved manually, as shown below. Delete the marker line, and then determine which needs to be modified
5. Redo git add and git commit,git push

mysql problem solving: mysqladmin: connect to server at’localhost’ failed

The mysql service could not be started. The output error message of the mysql script was modified as follows:

$ /etc/init.d/mysql start
Starting MySQL database server: mysqld/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
160811 10:54:23 mysqld_safe Logging to syslog.
160811 10:54:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160811 10:54:28 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 ./usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
 failed!

Problem solving method:
according to the error message, we know that the cause of the problem is that the local IP cannot be accessed. Execute the ifconfig command:

bond0     Link encap:Ethernet  HWaddr fc:4d:d4:3d:1a:cf  
      inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
      inet6 addr: fe80::fe4d:d4ff:fe3d:1acf/64 Scope:Link
      UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
      RX packets:220431 errors:0 dropped:0 overruns:0 frame:0
      TX packets:536525 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:17535415 (16.7 MiB)  TX bytes:43680367 (41.6 MiB)

eth0      Link encap:Ethernet  HWaddr fc:4d:d4:3d:1a:cf  
      UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
      RX packets:220431 errors:0 dropped:0 overruns:0 frame:0
      TX packets:536525 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:17535415 (16.7 MiB)  TX bytes:43680367 (41.6 MiB)
      Interrupt:20 Memory:fb300000-fb320000 

Ifconfig response shows that the local loopback device has not started. Execute “Ifconfig lo up” to pull up the local loopback device:

# ifconfig lo
lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:16436  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Restart mysql service after the local loop device is pulled up:

$ /etc/init.d/mysql restart
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.

Another method is the entry “bind-address = 127.0.0.1” in the comment /etc/mysql/my.cnf file. Note: the bind-address entry is used to disable remote access to the mysql database, i.e. only allow local access.
port Settings that allow remote access:

# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      29394/mysqld
...

Port Settings that allow local access only:

# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2657/mysqld
...

The second approach is not recommended for security reasons.

Debian/Ubuntu uses proxy for gpg and apt-key-error resolution: gpg: keyserver receive failed: Connection timed out

GPG and Apt-Key make agents that do not read directly from the terminal set up and need to be set separately. Keyserver timed out when trying to add a GPG public key – Unix & Linux Stack Exchange
for example, the default command is:

 gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys SOMEKEY
 apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys AKEYXXX

The error of not setting the agent is as follows:

root@ubuntu:/home/zhang# apt-key adv  --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
Executing: /tmp/apt-key-gpghome.ar8g11QK0Q/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
gpg: keyserver receive failed: Connection timed out

Set the agent as follows:

 gpg --keyserver-options http-proxy=test.com:8080/" --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys SOMEKEY
 apt-key adv --keyserver-options http-proxy=test.com:8080/" --keyserver hkp://keyserver.ubuntu.com --recv-keys AKEYXXX

EBS R12 login error—R12.1 FRM-92050: FAILED TO CONNECT TO SERVER: /FORMS/LSERVLET

This method is from metalink
The resolution process is as follows.

Adding applications/middle tier servers to the intranet in IE8. (Internet options than; local intranet wishes are added in advance)

This is also described in the recommended browser comment 389422.1:

Set Oracle E-Business Suite to run through the “Trusted Sites” area and set the “Medium” security settings. (if required)

Step 1:Select Tools -> Internet Options -> Security tab -> Trusted Sites icon -> “Site” button from the Internet Explorer menu bar.

Step 2:If you have not set the “security level of this zone”, set it to “Medium”.

Step 3: In the ‘Add this Web site to the zone:’ field, enter the ‘hostname and domain’ of the environment running Oracle E-Business Suite; for example, https://. Then click the ‘Add’ button. Alternatively, you can simply add the ‘*’ in front of the domain name to make all websites in the domain pass through this zone. I.e. *.

If you are using a proxy server…

1. go to “Tools” option in Internet Explorer and select Internet option. 2.

2. select the “Connection” tab.

3. select the “LAN Settings” button

4. select the “Advanced” button

5. add an entry for the APS node under the exception definition…;.

Example: sydprodapp.mycompany.com.au

6. save this change to Internet Explorer…and reconnect to the R12 application

 

I have tried, can succeed, of course, also depends on their own computer system version, than this theme such as seems to have problems!

gunicorn.errors.HaltServer: HaltServer ‘App failed to load.’ 4

Error executing the following code while installing Gunicorn:

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    # return 'hello world'

if __name__ == '__main__':
    app.run(debug=True)

Use the command: Gunicorn WSGI: application-b 0.0.0.0.0:8000-w 2
Error message:

[2019-01-09 15:39:40 +0800] [29565] [INFO] Starting gunicorn 19.9.0
[2019-01-09 15:39:40 +0800] [29565] [INFO] Listening at: http://0.0.0.0:8000 (29565)
[2019-01-09 15:39:40 +0800] [29565] [INFO] Using worker: sync
[2019-01-09 15:39:40 +0800] [29568] [INFO] Booting worker with pid: 29568
[2019-01-09 15:39:40 +0800] [29570] [INFO] Booting worker with pid: 29570
Failed to find application object 'application' in 'wsgi'
[2019-01-09 15:39:40 +0800] [29568] [INFO] Worker exiting (pid: 29568)
Failed to find application object 'application' in 'wsgi'
[2019-01-09 15:39:40 +0800] [29570] [INFO] Worker exiting (pid: 29570)
Traceback (most recent call last):
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 203, in run
    self.manage_workers()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 545, in manage_workers
    self.spawn_workers()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 617, in spawn_workers
    time.sleep(0.1 * random.random())
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
    self.reap_workers()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 528, in reap_workers
    raise HaltServer(reason, self.APP_LOAD_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'App failed to load.' 4>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ejior/.virtualenvs/begin/bin/gunicorn", line 11, in <module>
    sys.exit(run())
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 61, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/app/base.py", line 223, in run
    super(Application, self).run()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 232, in run
    self.halt(reason=inst.reason, exit_status=inst.exit_status)
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 345, in halt
    self.stop()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
    time.sleep(0.1)
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
    self.reap_workers()
  File "/home/ejior/.virtualenvs/begin/lib/python3.6/site-packages/gunicorn/arbiter.py", line 528, in reap_workers
    raise HaltServer(reason, self.APP_LOAD_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'App failed to load.' 4>

 
Reason for error:
app = Flask(___)). This is defined as app. This should also be used in the command gunicorn-w 4-b 0.0.0.0.0:8000-k gevent wsgi:app.
 
 
 
 

CreateProcess failed when the inno setup packager is installed; code 740

problem: USES inno setup to package our published program test.exe. After the installation, check Launch XXX to run the program, and the following error occurs:
Unable to execute file:xxx
CreateProcess failed; code 740.
The requested operation needs to be promoted.

error reason: below are the two ICONS of test.exe, with the shield is with the administrator rights, without the shield is a normal program.


When packaging ordinary programs, the end of the installation will not report an error; An error will not be reported until the end of the installation when the administrator privilege program is packaged.
My guess is that when the installation package is executed, the installation package does not carry administrator rights, so after the installation is over, start test.exe without administrator rights and it will execute normally.
However, if you were to execute test.exe with administrator privileges, you would have permission issues.
therefore, we need to install the package with administrator rights, let the installation package run with administrator rights.
Specific implementation steps are as follows:
Let the installation packages generated by inno Setup come with administrator privileges
Download Resource Hacker
Download address: http://www.angusj.com/resourcehacker/

2. Modify setupldr.e32 file
, right click on the administrator rights to run resourcehacker.exe, select File-> Open, find the setupldr.e32 file in the Inno Setup installation directory.

I’ll change asInvoker to requireAdministrator

After modification, first select Action-& GT; Modify, then File-> Save. As follows:

3. Recompile the package script
Recompiled with Inno Setup, the resulting installation package will have a shield attached to the icon. As follows:


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Spare time not regularly update some ideas, thinking articles, welcome to pay attention to, discuss together, precipitation technology!

jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)

1. First, debug JS in the foreground to see whether $. Ajax can send the request; if the request is received in the background, debug whether it is an entity or other methods.
2. If the foreground cannot send the request, see if it is a problem with JS’s validate validation, as well as js’s dataPicker time plug-in assignment and other required data validation issuesLike friends can scan my personal public account, there are good things to share with. Free access to a variety of learning video, source code, PPT materials
You can also search WeChat for Java programmer stuff