Apache NiFi - login issue when entering username and password - apache-nifi

I installed Apache NiFi locally. (https://localhost:8443/nifi).
I set up the config:
<provider>
<identifier>single-user-provider</identifier>
<class>org.apache.nifi.authentication.single.user.SingleUserLoginIdentityProvider</class>
<property name="Username">test#gmail.com</property>
<property name="Password">123456789011</property>
</provider>
But when I try to log in (UI), I have an issue: The supplied username and password are not valid.
I use ./nifi.sh set-single-user-credentials command to set up the username and password.
What should I do to resolve this issue?

In windows OS, after restart, it worked charming!

Related

NiFi - Not Seeing user/password in nifi-app.log

In Windows, I've downloaded, installed, and started NiFi 1.16.3.
However when it asks me for a User and Password, I don't see these in nifi-app.log.
Is there a default User/Password?
Thanks
John
if you are on linux just run this command to set custom user/password for single user nifi:
cd <nifi_root_folder>
./bin/nifi.sh set-single-user-credentials <username> <password>
for windows there is a workaround to set custom credentials:
cd <nifi_root_folder>
java -cp conf;lib\bootstrap\* -Dnifi.properties.file.path=conf/nifi.properties ^
org.apache.nifi.authentication.single.user.command.SetSingleUserCredentials ^
<username> <password>
if you start a plain new nifi instance you will find the username and password in logs/nifi-app.log.
somewhere should be printed a line like this:
Generated Username [ae7b6dd8-bc89-44b0-a025-abe1230e6327]
Generated Password [DPwOASAEiXKHKAtR6CuzfNrRIVH+iU4o]

Apache NIFI login issue after installation

I am new to Apache NIFI. I have installed Apache NIFI on my local windows machine. Now, It is asking user's name and password to login. Do you know where I can find or set the password? I did not set any user name and password during installation. I much appreciate the response as soon as possible. Please have a look at the image attachment-> Nifi login requires a user name and password
First you go to the "conf/login-identity-providers.xml" file
There if u see something like below
<provider>
<identifier>single-user-provider</identifier>
<class>org.apache.nifi.authentication.single.user.SingleUserLoginIdentityProvider</class>
<property name="Username">3489c555-49b4-4e7d-9e6f-ca7f71abea81</property>
<property name="Password">25BiJ9913n8q68bPGRxrm0qY6C4Z/GbT</property>
</provider>
Then make username & password property empty like below
<provider>
<identifier>single-user-provider</identifier>
<class>org.apache.nifi.authentication.single.user.SingleUserLoginIdentityProvider</class>
<property name="Username"></property>
<property name="Password"></property>
</provider>
Then save the login-identity-providers.xml file and restart the NIFI
After it starts open logs/nifi-app.log file
Then you can able to see generated usename and password like below.
Generated Username [3489c734-49b4-4e7d-9e6f-ca7f79abea81]
Generated Password [25BiJ9911n8k68btGRxqm0qY6C4Z/GbT]
Use this for login. Thank u.
As the official GitHub gives
https://github.com/apache/nifi#authenticating
you can find username and password in .\logs\nifi-app.log use search "password"
and you will see this
I try change password in windows but failed, but it can be done in Linux.
./bin/nifi.sh set-single-user-credentials <username> <password>
You can change the default password using the following (assuming path to nifi is D:\nifi-1.15.0)
java -cp d:\nifi-1.15.0\lib\bootstrap\* -Dnifi.properties.file.path=D:\nifi-1.15.0\conf\nifi.properties org.apache.nifi.authentication.single.user.command.SetSingleUserCredentials username password
Go To *nifi-1.15.2\logs*
open nifi-app.log and search for USERNAME, Copy it and paste it there
Username and Password
It will have some auto-generated credentials to use by default. You'll see them in the nifi-app.log
Generated Username [USERNAME]
Generated Password [PASSWORD]
This is my docker-compose file:
version: "3"
services:
nifi:
image: apache/nifi
container_name: nifi
volumes:
- /home/my_user/nifi/conf:/opt/nifi/conf
ports:
- 8443:8443
environment:
- NIFI_WEB_HTTPS_PORT:8443
- NIFI_WBE_HTTP_HOST=my_ip
- NIFI_WEB_PROXY_HOST=my_ip:8443
- SINGLE_USER_CREDENTIALS_USERNAME:admin
- SINGLE_USER_CREDENTIALS_PASSWORD:ransom_pwd
restart: always
but the login was not working. So I had to SSH into docker container
then cd into /opt/nifi/bin and then run ./nifi.ssh set-single-user-credentials username password

Bitnami cassandra application password

I created bitnami cassandra on EC2.
The documentation says that
The administrator user name is cassandra and you can get the password from the server dashboard for your server.
But it is not found when I get the system log.
I do find though a message that says
Not setting Bitnami application passwords
How to obtain the same?
Here are some more info: (default cassandra password is the same as application password)
https://docs.bitnami.com/virtual-machine/faq/#how-to-find-application-credentials
if you check this picture, you can see where you need to look:
https://docs.bitnami.com/images/img/platforms/virtual-machine/app-credentials-1bc7e819.png
For the bitnami-cassandra-3.10-0-linux-ubuntu-14.04.3-x86_64-ebs (ami-32a71751) image,
I found
default username : cassandra
default password: bitnami
It is not as per the documentation. I hope it might help who were facing the same issue.
Bitnami developer here,
If you launched the machine on EC2, you should follow this guide instead:
https://docs.bitnami.com/aws/faq/get-started/find-credentials/
You also could check the password by accessing via SSH and running:
sudo cat /opt/bitnami/var/log/pre-start.log | grep "application password"
User is cassandra by default.
I hope it helps

How to login in Jenkins first time? [duplicate]

I tried using Jenkins or my admin username as user and password. For password, I tried to update using sudo passwd jenkins, so I am fine on that. However, I am skeptical about the user name. How do I confirm the username for Jenkins? Can someone pls help me?
During the initial run of Jenkins a security token is generated and printed in the console log. The username is admin
The token should look something like,
*************************************************************
Jenkins initial setup is required. A security token is required to proceed.
Please use the following security token to proceed to installation:
41d2b60b0e4cb5bf2025d33b21cb
*************************************************************
For me the initial admin password was in a log at ~/.jenkins/secrets/initialAdminPassword
after installing with homebrew.
source
If you pod is running in a Kubernetes cluster, just look at the running process … Your initial password will be shown…
e.g.
--argumentsRealm.passwd.admin=**3kJQtPDkhk** --argumentsRealm.roles.admin=admin
Username: admin
For password,
cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword
you will get similar to this token 2762710d8dab4c88a59fea0a2e559069

XPEnology phpMyAdmin cannot log in to mysql

Installed XPEnology operating system, and using package manager installed MariaDB and phpMyAdmin.
Tired to login to phpMyAdmin http://WEB/phpMyAdmin and receiving a 'Cannot connect to local server' error message.
In the control panel enable SSH.
Login to SSH using Putty (http://www.putty.org), using the username and password you originally set up the XPEnology with.
Issue this command, changing the *** to your password
mysqladmin -u root password *******
You should now be able to login to phpMyAdmin on Synology. Username should be 'root'

Resources