I am using keycloak to authenticate users in my application. The users are imported in Keycloak through a external mysql user store. I am placing the user-provider jar inside /standalone/deployments folder.
I need to remotely debug this jar file through intellij.
I tried to uncomment the JPDA settings for remote socket debugging in standalone.conf file but it didn't work.
Try to set the following environment variables
DEBUG_PORT="*:8787"
DEBUG_MODE=true
and then start the server with --debug flag. You should then be able to attach a remote debugger to port 8787
Related
I have a small device that serves a webpage using Nginx in a local network. I'm developing the webpage using Vue and I need that once a person got connected to the server and visited the page, on disconnection, the page needs to work as normal
I'm currently using Workbox plugin and I get this code:
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.b62cf508e2c3da8c27f2635f7aab384a.js"
);
The problem is that it goes to the internet to download that file and I will not have an internet connection.
I tried downloading this file, but inside goes to the internet again.
Is there a way to get this to work in an offline environment?
You can follow the guidance in the workbox-sw docs to download a local copy of the bundled Workbox runtime libraries, and modify your service worker script to use those.
Running:
$ npx workbox-cli#4.3.1 copyLibraries /path/to/dir
from the command line will download a local copy of the runtime to the specified directory (replace /path/to/dir with the desired location).
You can then modify your service worker script so that it reads:
importScripts("/path/to/dir/workbox-v4.3.1/workbox-sw.js");
workbox.setConfig({
modulePathPrefix: '/path/to/dir/workbox-v4.3.1/'
});
importScripts(
"/precache-manifest.b62cf508e2c3da8c27f2635f7aab384a.js"
);
I would like to use IntelliJ to configure my SFTP servers.
Unfortunately, I have very complex configurations (SSH tunnels, proxy etc...) that I am currently doing with WinSCP.
Is it possible to import the exported WinSCP configurations into IntelliJ?
If not, what is the procedure to configure in IntelliJ an SFTP connection in WinSCP with
SSH Tunnel with private key
Proxy server
I have tried to set SSH and proxy with the settings I've found in IntelliJ, but it gives me connection timeout.
IntelliJ is not made for SFTP and other connection maintenance. You can easily import export from FileZilla to WinSCP and other SFTP IDE. IntelliJ is more like code editor for multiple platforms and it has little FTP file window program but it cannot have all settings like WinSCP has.
But if you still want to do it.
You have to find webserver.xml file or create a manual entry first time. It will create a file then edit that file. Check the format of your first manual entry.
I think password is encrypted. Learn how to encrypt password and write in xml file.
Passwords are now stored in either KeePass file (all platforms) or keychain (Mac & Linux; where supported libs are present).
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207074025-webServers-xml-format#5275025
I'm currently trying to connect my intellij installation to a remote websphere server (version 8.5.5.14). When I start making the configuration it gives me a message "Username but no password specified". The thing is, there's no password input in the form. So how do I specify the password?
In the recent versions, IDEA ensures that the plain passwords are never stored in the project- or application- level configuration files. All the passwords previously stored in the application servers run configurations should be automatically moved to KeePass manager or Mac Keychain after an opening of the project.
We also decided to not allow to specify passwords in the template run configurations, so your screenshot is as expected.
There was a bug preventing the passwords fields from showing up in the normal non- template run configurations, but it should be fixed in the final builds for 2018.3.6 and 2019.1 streams
I have a running instance that was created without a keypair, as I understand is not possible to apply a keypair to a running instance, I need to ssh connect to the instance to get some logs, how can I do that?
Right click on the instance -> Connect, shows a message saying that the instance is not associated with a key pair and "you will need to log into this instance using a valid username and password combination".
Our app runs on Elastic Beanstalk, the user should be ec2-user, but what about the password? How can I retrieve that?
PS: re-launch the instance with a keypair is not an option....
Thanks!
You can download the logs using tail logs or full logs option in the console
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html
The above will get you the default set of log files from the instance. If you want to get your files from one of the non-default locations you will need to update your environment with the following ebextension. Create a file custom-logs.config in a folder named .ebextensions in your app root. In the contents of your file create a log configuration file that points to your custom location.
Example contents:
files:
"/opt/elasticbeanstalk/tasks/systemtaillogs.d/my-cool-logs.conf" :
mode: "000777"
owner: root
group: root
content: |
/my-framework/my-logs/my-cool-log.log
This file is in yaml format, so be careful with the indentation. After creating this file you can deploy this new app version to your environment. Then when you snapshot logs using the instructions above you will get your custom logs.
If there's any way to access the command line on your instance then you could
edit
/etc/ssh/sshd_config
setting change the line to:
PasswordAuthentication yes
SSH User:Pass access defaults to no on launch.
I'm trying to get a local Tomcat deployment under control in IntelliJ (version 12) and so looking to configure a local connection to Tomcat.
I try to add a server specifying 'Local or mounted folder'. All seems okay but asks me to specify 'web server root URL'.
As its a local server I'd like something like '/opt/tomcat/tomcat7-dev' which points to the root of my tomcat install, however IntelliJ logically says this 'URL is not valid'.
Any advice on correct way to specify local server for IntelliJ deployment?
Local Tomcat configuration doesn't require any Deployment settings or mappings, you just configure a server, artifact and a run configuration to start the server and deploy the artifact, more details can be found in the tutorial.