Tag Archives: linux

Login failed in rabbitmq

First, use the following command to see why the log is logged:

 tail /var/log/rabbitmq/rabbit\@wzb1.log

Note: The default user guest only allows localhost login.
 
To create a remote login user, the guest user can only run under localhost:

rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p/admin ".*" ".*" ".*"

 

GConf Error: Failed to contact configuration server solution

GConf Error:Unable to reach configuration server workaround

GConf Error:Unable to contact configuration server; some possible reasons are that you need to enable TCP/IP networking for ORBit, or have an old NFS lock due to a system crash. For information, see http://www.gnome.org/projects/gconf/. (Details- 1:IOR file ‘/tmp/gconfd-chris/lock/ IOR ‘Not open, no such file or directory found 2:IOR file ‘/tmp/gconfd-chris/lock/ IOR ‘Not open, no such file or directory found’)
GConf Error: contact configuration server failed; some possible reasons are that you need to enable TCP/IP networking for ORBit, or have old NFS locks due to a system crash. For information, see http://www.gnome.org/projects/gconf/. (Details- 1:IOR file ‘/tmp/gconfd-chris/lock/ IOR ‘not open, no such file or directory found; 2:IOR file ‘/tmp/gconfd-chris/lock/ IOR not open, no such file or directory found)
==================================================
Some on the Internet say it was because of the execution of this order.
#chmod -R 0777 /tmp
Not on my machine, it’s a result of manually upgrading glibc2.7 according to the default path.

Solution.
# rm – r *user*
Then delete the .gnome2 and .gnome folders from the user’s home directory.

Configure Nvidia graphics card on ubuntu18.04 xrandr Failed to get size of gamma for output default

Initial problem: when I used teamViewer to connect uBuntu18.04, I immediately lost the display window. At first, I thought that it might be the resolution, so I looked up the resolution of Ubuntu18.04. The result showed that there was only a default 800×600, xrandr Failed to get size of Gamma for output default for a long time
Ubuntu18.04 for Nvidia graphics card configuration
https://blog.csdn.net/qq_37935670/article/details/80377196
 
 
Solve ubuntu18.04 installation of nvidia driver that nvidia-dkms dependent cannot be installed (complete picture matching)
https://blog.51cto.com/cfy10/2450167

CentOS Liunx 7 uses rdesktop to remotely connect to the Alibaba Cloud server and it appears Failed to connect, CredSSP required by server.

CredSSP Required by Server fails to connect when Liunx connects to Window server.
1. Connect to the server remotely on the web side. 2. Right click on my computer -> Property – & gt; Remote setting -& GT; 3. Uncheck computer connections that allow running remote desktops using network sector authentication only (recommended)(N)

The exact reason is not clear, but this operation successfully connected to the Aliyun server. Note: the image of ali cloud Server system is: Windows Server 2012 D2 Datacenter


Write in the last
I am a pure white, and the blog I write is also written because of the problems encountered in learning to use to find information and then solve the problem. If there are some mistakes, or involving infringement, please contact me.
QQ: 994961015
E-mail: [email protected]
WeChat: this can not be given.

InternalError: Failed to create session. Error and solution

InternalError: Failed to create session. Errors and solutions
Introduction Error message solution

preface
This error occurred at the beginning of training Keras (using the TensorFlow as Backend) model.
Python version: 3.5.2
Keras version: 2.1.3
TensorFlow version: 1.9.0
Error message

InternalErrorTraceback (most recent call last)
< ipython-input-4-d4cc2ca313a3> in < module>
10 model.compile(loss= ‘mse’, optimizer= ‘Adam’)
11 # fit network
— > 12 history = model.fit(X_train, y_train, epochs=3000, batch_size=16, validation_data=(x_test, y_test), verbose=2, shuffle=False)
13 #history = model.fit(X,y, epochs=3000, batch_size=16, Verbose = 2, shuffle = False)
14 # plot history
/usr/local/lib/python3.5/dist – packages/keras/models. Py fit in (self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
963 initial_epoch=initial_epoch,
964 steps_per_epoch=steps_per_epoch,
— > 965 validation_steps = validation_steps)

967 966 def the evaluate (self, x = None, y = None,
/usr/local/lib/python3.5/dist – packages/keras/engine/training. Py fit in (self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
1667 initial_epoch=initial_epoch,
1668 steps_per_epoch=steps_per_epoch,
-> 1669 validation_steps = validation_steps)

1671 1670 def the evaluate (self, x = None, y = None,
/usr/local/lib/python3.5/dist – packages/keras/engine/training. Py in _fit_loop (self, f, ins, out_labels, batch_size, epochs, verbose, callbacks, val_f, val_ins, shuffle, callback_metrics, initial_epoch, steps_per_epoch, validation_steps)
1204 ins_batch[i] = ins_batch[i].toarray()
1205
-> 1206 outs = f (ins_batch)
1207 if not isinstance (outs, a list) :
1208 outs = [outs]
/usr/local/lib/python3.5/dist – packages/keras/backend/tensorflow_backend py in the call (self, inputs)
2471 feed_dict[tensor] = value
2472 fetches = self.outputs + [self.updates_op] + self.fetches
-> 2473 session = get_session()
2474 updated = session.run(fetches=fetches, Feed_dict = feed_dict,
2475 * * self session_kwargs)
/usr/local/lib/python3.5/dist – packages/keras/backend/tensorflow_backend py in get_session ()
config = 174 Tf. ConfigProto (intra_op_parallelism_threads = num_thread,
175 allow_soft_placement = True)
– & gt; 176 _SESSION = tf. The Session (config = config)
177 Session = _SESSION 178 if not _MANUAL_VAR_INIT:

/usr/local/lib/python3.5/dist – packages/tensorflow/python/client/Session. Py in init (self, Target, graph, config)
1561
1562 “”
-& gt; 1563 super(Session, self).init(target, graph, config=config)
1564 # NOTE(mrry): Create these on first __enter__ to avoid a reference cycle.
1565 self._default_graph_context_manager = None
/usr/local/lib/python3.5/dist – packages/tensorflow/python/client/session. Py in init (self, target, graph, the config).
631 if self _created_with_new_api:
632 # pylint: Disable = protected – access
– & gt; 633 self._session = tf_session.TF_NewSession(self._graph._c_graph, opts)
634 # pylint: enable=protected-access
635 else:
InternalError: Failed to create session.

The solution


found that GPU memory has been occupied by other programs.
try to close these programs, then reruns the code (no need to restart kernel) and find the problem solved!

ERR_CONTENT_DECODING_FAILED error occurs in PHP program, summary of solutions

The problem background
When a new project is deployed to a new server, colleagues can run on Windows without any problems, but when migrating to a Liinux server, they find the following error.
chrome prompt: ERR_CONTENT_DECODING_FAILED
as follows:

Screening method
Check whether the nginx.conf of Nginx opens gzip; if it opens gzip, close it and reload to check whether the zlib.output_compression is open; if it is not opened, use zlib.output_compression = On
The solution
In the php.ini configuration file, the following configuration is found to be off. Open it and restart PHP-FPM

; http://php.net/zlib.output-compression
zlib.output_compression = On


Reference links:
https://stackoverflow.com/questions/14039804/error-330-neterr-content-decoding-failed

Under Linux, git cannot be used, prompt sign_and_send_pubkey: signing failed: agent refused operation

Under Linux, Git cannot be used if the server has already added a public key
Git Clone and other functions cannot be used under Linux. Prompt:

sign_and_send_pubkey: signing failed: agent refused operation

In turn (if no public key is added) :

ssh-add
eval $(ssh-agent -s)

Execute (public key has been added) :

eval $(ssh-agent -s)

Eval $(sSH-Agent-s) system runs at startup
Obviously, the above method requires executing eval $(sSH-agent-s) before using Git for the first time. Otherwise, it is not friendly to use an error. We want to avoid the trouble of eval $(ssh-agent-s) once and for all, which is unlikely to be remembered. Therefore, I need to initialize this command when the system boot, help me to execute this command.
Current user (if you prefer “any configuration is for users”)
modify ~/.bashrc, vim ~/.bashrc
add this line (suggested at the end) :

# 启动 ssh-agent,“> .null”是为了解决在终端喊一嗓子的问题(其实就是将它输出到一个.null文件中去了)
eval $(ssh-agent) > .null

All users (recommended)
modify (may need sudo, add it yourself as necessary) /etc/bashrc, vim /etc/bashrc
add this line (it is recommended to add it at the end) :

# 启动 ssh-agent,“> .null”是为了解决在终端喊一嗓子的问题(其实就是将它输出到一个.null文件中去了)
eval $(ssh-agent) > .null

PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)

I found a lot of answers on the Internet, but they are not the root cause of the problem.
Finally, it can be seen on the official website that the connection of PDO_dblib to MSSQL database is through FreeTDS.
PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary.
Therefore, the problem was found. Freetds is a re-implementation of TDS protocol (Baidu’s). Different database versions use different VERSIONS of TDS protocol, so it is ok to modify the corresponding TDS version.
I am an Ubuntu system and the installation directory of Freetds is /usr/local/freetds
Modify the file to/usr/local/freetds/etc/freetds. Conf file.
Connect SQL Server2000, I change to TDS version=4.2 is ok, although Baidu is 8.0, I do not know this, but I know the key of the problem is ok, and so on in the future to understand the update.

VMware Workstation failed to start VMware Authorization Service

This is because VMware Authorization Service in Windows system Service has not started.
press the win+r shortcut key, enter services. MSC , click ok
Service list to find VMware Authorization Service, and double-click

Modify the startup type to be automatic or manual. Click apply
and then click start. Wait for the startup to complete, then click ok to

I don’t know if it is because of the system access. I don’t know if it is because of the system access. I’m sorry, we can’t solve this for the moment.

MySQL failed to start prompt: job failed to start

Today, I modified the character set for the mysql database under Linux. In order to facilitate operation, I modified the permissions for the configuration file sudo Chmod 777 My.cnF

after modification, start: Job failed to start appears.
Nothing is printed in the
error log.

after the character set configuration is removed still prompt cannot start.

finally consider the possibility that only permissions have been modified due to permissions.

sudo chomd o-w my.cnf

sudo chmod g-w my.cnf

and then start MySQL.