Author Archives: Robins

! [rejected]master -> master error: failed to push some refs to’https://github.com/ The ultimate solution

Git error:

$ git push -u origin master

To [email protected]:***.git

 ! [rejected]        master -> master (non-fast-forward)

error: failed to push some refs to '[email protected]:***.git

hint: Updates were rejected because the tip of your current branch is behin

hint: its remote counterpart. Integrate the remote changes (e.g.

hint: 'git pull ...') before pushing again.

hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Git already has some code in the repository, so it doesn’t allow you to overwrite your code directly. There are two ways to solve this problem:
method 1: force the code to github warehouse (recommended, save time and effort)

git push -f origin master		//直接强推,即利用强覆盖方式用你本地的代码替代github仓库内的内容

method 2: fetch git’s stuff to your local, merge and push

git fetch
git merge			//这两条命令等价于git pull  
git config branch.master.remote origin  
git config branch.master.merge refs/heads/master  

Then pull git back and git pushes your code. Reference: Here.

Oracle 11gR2 RAC ohasd failed to start solution

CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
Ohasd failed to start the at/u01/app/11.2.0/grid/CRS/install/rootcrs. Pl line 443. When I installed 11gR2 RAC for the first time, I encountered this classic problem of 11.0.2.1. After checking on the Internet, I realized that it was a bug and the solution was very simple.
Just before root.sh, execute the following command
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
If there is a
/bin/dd: opening`/var/tmp/.oracle/npohasd’: No such file or directory
While the file is still running, it is not Adding a daemon to Inittab until it is ready to run. The DD command is usually executed while Adding a daemon to Inittab.
Another solution is to change file permissions
chown root:oinstall /var/tmp/.oracle/npohasd
To perform root. Don’t forget to delete the configuration before sh:/u01/app/11.2.0/grid/CRS/install/roothas. Pl – deconfig – force – verbose
Reference:
https://cn.forums.oracle.com/forums/thread.jspa?threadID=2350285
http://blog.csdn.net/tianlesoftware/article/details/8207629

Completely solve Mechanism level: Failed to find any Kerberos tgt

Error description
Secure Client Cannot Connect ([Caused by GSSException: No valid credentials provided(Mechanism level: Failed to find any Kerberos tgt)])
symptoms
If it’s not due to the validity of the Klist Keytab, and you return the error, if it’s a resident service, like nohup, Tomcat, etc., there’s a pattern to the error, like 12 o ‘clock every day, or after a certain period of time.
The solution
To test that

https://hbase.apache.org/book.html#trouble.client.security.rpc
https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/Troubleshooting.html

Reproduced in: https://www.cnblogs.com/slankka/p/10217038.html

Pod reports error “Back-off restarting failed container” solution

Pod error “back-off Restarting Failed Container” solution
Phenomenon:

Events:
  Type     Reason          Age                  From                         Message
  ----     ------          ----                 ----                         -------
  Normal   Scheduled       3m                   default-scheduler            Successfully assigned default/jenkins-master-deploy-6694c4f497-r46fn to master.localdomain
  Normal   SandboxChanged  85s                  kubelet, master.localdomain  Pod sandbox changed, it will be killed and re-created.
  Normal   Pulled          83s (x5 over 2m59s)  kubelet, master.localdomain  Container image "drud/jenkins-master:v0.29.0" already present on machine
  Normal   Created         83s (x5 over 2m59s)  kubelet, master.localdomain  Created container jenkins-master
  Normal   Started         81s (x5 over 2m59s)  kubelet, master.localdomain  Started container jenkins-master
  Warning  BackOff         78s (x9 over 2m57s)  kubelet, master.localdomain  Back-off restarting failed container

Solution:
reference page:

https://serverfault.com/questions/924243/back-off-restarting-failed-container-error-syncing-pod-in-minikube in deployment that mirror followed by the command
command: [“/bin/bash “, “- ce”, “tail -f/dev/null”]

kind: Deployment
apiVersion: apps/v1beta2
metadata:
  labels:
    app: jenkins-master
  name: jenkins-master-deploy
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jenkins-master
  template:
    metadata:
      labels:
        app: jenkins-master
    spec:
      containers:
      - name: jenkins-master
        image: drud/jenkins-master:v0.29.0
        imagePullPolicy: IfNotPresent
        command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]
        volumeMounts:
        - mountPath: /var/jenkins_home/
          name: masterjkshome
        ports:
        - containerPort: 8080
      volumes:
      - name: masterjkshome
        persistentVolumeClaim:
          claimName: pvcjkshome

 

Building wheel for wrapt (setup.py) … error

Go here
here
find corresponding error uninstalled library WHL file to download
PIP command to install
take me for example wrapt

C:\Windows\system32>pip install C:\Users\88304\Desktop\wrapt-1.11.2-cp36-cp36m-win_amd64.whl
Processing c:\users\88304\desktop\wrapt-1.11.2-cp36-cp36m-win_amd64.whl
Installing collected packages: wrapt
Successfully installed wrapt-1.11.2

C:\Windows\system32>pip install -i https://pypi.douban.com/simple/ tensorflow
Looking in indexes: https://pypi.douban.com/simple/
Collecting tensorflow
  Downloading https://pypi.doubanio.com/packages/d3/af/296748d4c8d8987423231b93aecce5ab5952f6f2243cb6cedb88dd425397/tensorflow-2.0.0-cp36-cp36m-win_amd64.whl (48.1MB)
     |████████████████████████████████| 48.1MB 113kB/s
Requirement already satisfied: google-pasta>=0.1.6 in c:\program files\python36\lib\site-packages (from tensorflow) (0.1.8)
Requirement already satisfied: wheel>=0.26 in c:\program files\python36\lib\site-packages (from tensorflow) (0.33.6)
Requirement already satisfied: absl-py>=0.7.0 in c:\program files\python36\lib\site-packages (from tensorflow) (0.8.1)
Requirement already satisfied: grpcio>=1.8.6 in c:\program files\python36\lib\site-packages (from tensorflow) (1.25.0)
Requirement already satisfied: opt-einsum>=2.3.2 in c:\program files\python36\lib\site-packages (from tensorflow) (3.1.0)
Requirement already satisfied: wrapt>=1.11.1 in c:\program files\python36\lib\site-packages (from tensorflow) (1.11.2)
Requirement already satisfied: tensorboard<2.1.0,>=2.0.0 in c:\program files\python36\lib\site-packages (from tensorflow) (2.0.2)
Requirement already satisfied: gast==0.2.2 in c:\program files\python36\lib\site-packages (from tensorflow) (0.2.2)
Requirement already satisfied: numpy<2.0,>=1.16.0 in c:\program files\python36\lib\site-packages (from tensorflow) (1.17.4)
Requirement already satisfied: six>=1.10.0 in c:\program files\python36\lib\site-packages (from tensorflow) (1.13.0)
Requirement already satisfied: termcolor>=1.1.0 in c:\program files\python36\lib\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: tensorflow-estimator<2.1.0,>=2.0.0 in c:\program files\python36\lib\site-packages (from tensorflow) (2.0.1)
Requirement already satisfied: astor>=0.6.0 in c:\program files\python36\lib\site-packages (from tensorflow) (0.8.0)
Requirement already satisfied: keras-applications>=1.0.8 in c:\program files\python36\lib\site-packages (from tensorflow) (1.0.8)
Requirement already satisfied: protobuf>=3.6.1 in c:\program files\python36\lib\site-packages (from tensorflow) (3.11.1)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\program files\python36\lib\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (1.7.2)
Requirement already satisfied: requests<3,>=2.21.0 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (2.22.0)
Requirement already satisfied: markdown>=2.6.8 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (3.1.1)
Requirement already satisfied: setuptools>=41.0.0 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (42.0.2)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (0.4.1)
Requirement already satisfied: werkzeug>=0.11.15 in c:\program files\python36\lib\site-packages (from tensorboard<2.1.0,>=2.0.0->tensorflow) (0.16.0)
Requirement already satisfied: h5py in c:\program files\python36\lib\site-packages (from keras-applications>=1.0.8->tensorflow) (2.10.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\program files\python36\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow) (0.2.7)
Requirement already satisfied: cachetools<3.2,>=2.0.0 in c:\program files\python36\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow) (3.1.1)
Requirement already satisfied: rsa<4.1,>=3.1.4 in c:\program files\python36\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow) (4.0)
Requirement already satisfied: idna<2.9,>=2.5 in c:\program files\python36\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\program files\python36\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\program files\python36\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow) (1.25.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python36\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow) (2019.11.28)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\program files\python36\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.1.0,>=2.0.0->tensorflow) (1.3.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\program files\python36\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\program files\python36\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.1.0,>=2.0.0->tensorflow) (3.1.0)
Installing collected packages: tensorflow
Successfully installed tensorflow-2.0.0

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3 My solution

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3. Failed to register the DLL/OCX: RegSvr32 failed with exit code 0x3
A dependency analysis also did not find problems
It turned out to be a dependent DLL that did not support XP when VS2013 was compiled.
Record.

Reproduced in: https://www.cnblogs.com/nomadcirlce/p/8469677.html

MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC

Mongodb is installed, but the MongoDB server is not started.
Step 1: Open CMD and enter the MongoDB bin directory

Step 2: Enter the instruction: MonGod — dbPATH database path
If successful, it will be shown as follows:

Step 3: Leave the window open and open another CMD
Enter the bin directory of MongoDB again and enter Mongo, which is shown as follows:

 
 
Finally, you can run mongo on the console. Such as:

Failed to load resource: the server responded with a status of 503 (Service Unavailable)

If the corresponding JS reference is correct, a refresh will work fine
When you visit a web page, load a blank, and view a development script, you find a bunch of errors
Failed to load resource: the server responded with a status of 503 (Service Unavailable)

When switching to sources, it is found that the corresponding JS file has not been loaded

python sqlite Error IntegrityError: UNIQUE constraint failed: table_area1.user_name

This error is caused by the fact that when you were building the table, you set the key to be UNIQUE. When a user with the same name appears, the user will report
user_name INT NOT NULL UNIQUE
It’s also possible that this is the key that you just want to make unique but you insert this key twice later
for example you insert something with id 1
and then you insert something with id 1 because you can only have one field with id 1 so you get an error here

SSIS package error report login failed for user’nt authority\anonymous logon’ solution

Question link: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/35139786-12bd-424a-9a60-27b5de981cd6/login-failed-for-user-nt-authorityanonymous-logon
This problem is called a Kerberos problem
The current credential cannot be passed to another server due to executing SSIS Package or other reasons in the database when you are currently logged into a database using Windows authentication. Therefore, your identity becomes anonymous Logon

Solutions:
Log in remotely to the server where the database is located and then perform the relevant actions
Or upgrade anonymous users of remote servers