How to debug a program trying to reach the web?

I think this is the most generic I can get to see if people here can help me - and one of the most noob questions I've ever had.

Here in Brazil, the government has a program for taxes, which can connect to the internet. It usually (well, I used it back in Windows =p) opens a browser to authenticate on their domain (acesso.gov.br) then return the auth to the program.

The program runs in Java, I could find it runnning with ps aux and monitor it on btop. The issue is: when I try to authenticate running it on Garuda, it's not opening any browser for auth. Not Firedragon, not Vivaldi (my default browser), not anything.

It just keeps there... waiting.

image

System:
  Kernel: 6.2.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=468e3250-834f-4678-85b1-f50f268e557d rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=92d5bc58-440e-4eab-9f01-4fa35d34e02b loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: G5 5590 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0F3T2G v: A00 serial: <superuser required> UEFI: Dell
    v: 1.22.0 date: 11/10/2022
Battery:
  ID-1: BAT0 charge: 48.6 Wh (100.0%) condition: 48.6/60.0 Wh (81.0%)
    volts: 16.6 min: 15.2 model: SMP DELL JJPFK87 type: Li-poly serial: <filter>
    status: full
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 3713 high: 4100 min/max: 800/4500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 4100 2: 4099 3: 4092
    4: 4100 5: 4100 6: 2600 7: 4100 8: 4100 9: 4096 10: 4100 11: 2472 12: 2600
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: none off: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Dell
    driver: nvidia v: 530.41.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-03) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1f11 class-ID: 0300
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-5:4 chip-ID: 0c45:671f class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x2160 s-dpi: 96 s-size: 675x570mm (26.57x22.44")
    s-diag: 883mm (34.78")
  Monitor-1: DP-1-0 pos: primary,top res: 2560x1080 hz: 60 dpi: 81
    size: 798x334mm (31.42x13.15") diag: 865mm (34.06") modes: N/A
  Monitor-2: HDMI-1-0 pos: bottom res: 2560x1080 hz: 60 dpi: 96
    size: 677x290mm (26.65x11.42") diag: 736mm (29") modes: N/A
  Monitor-3: eDP-1 size-res: N/A modes: N/A
  API: OpenGL v: 4.6 Mesa 23.0.1 renderer: Mesa Intel UHD Graphics 630 (CFL
    GT2) direct-render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    bus-ID: 1-4.1:5 v: kernel chip-ID: 1b3f:2008
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    class-ID: 0300 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 8
    link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:10f9 class-ID: 0403
  Device-3: Generalplus USB Audio Device type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-4: Realtek USB Audio type: USB driver: snd-usb-audio
    bus-ID: 1-4.5:9 chip-ID: 0bda:4014 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.2.9-zen1-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 0.3.68 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek vendor: Dell driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 3c:00.0 chip-ID: 10ec:2502
    class-ID: 0200
  IF: enp60s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
    vendor: Dell driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 3d:00.0 chip-ID: 168c:003e class-ID: 0280 temp: 60.0 C
  IF: wlp61s0 state: down mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 6-1.2:3 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp58s0u1u2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-14:8
    chip-ID: 0cf3:e007 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives:
  Local Storage: total: 1.14 TiB used: 538.29 GiB (46.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: PC SN520 NVMe WDC 256GB size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD serial: <filter>
    rev: 20240012 temp: 54.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD10SPZX-75Z10T3 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 4514 scheme: GPT
Partition:
  ID-1: / raw-size: 221.19 GiB size: 221.19 GiB (100.00%)
    used: 63.44 GiB (28.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 624 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 221.19 GiB size: 221.19 GiB (100.00%)
    used: 63.44 GiB (28.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 221.19 GiB size: 221.19 GiB (100.00%)
    used: 63.44 GiB (28.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 221.19 GiB size: 221.19 GiB (100.00%)
    used: 63.44 GiB (28.7%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.43 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 16.98 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 66.0 C pch: 74.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 333 Uptime: 11m wakeups: 3 Memory: 15.43 GiB
  used: 5.9 GiB (38.2%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1924
  libs: 531 tools: gnome-software,octopi,pamac,paru,yay pm: appimage pkgs: 0
  Shell: Zsh v: 5.9 running-in: kitty inxi: 3.3.26
Garuda (2.6.16-1):
  System install date:     2023-04-01
  Last full system update: 2023-04-07
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Does the program write some log file or output messages when run from a terminal?

Else, you may use strace -f to show all system calls made, but that's going to output an awful lot of things in a not so easy to understand format. (I read here about the -f option).

JConsole may be a better option though since this is Java but... I don't know Java.
edit: no, looks like it's for profiling resources but not tracing calls.

1 Like

"This forum is not a general technical support forum."
Wish I could reply to who marked this... AFAIK, if it's something that used to work elsewhere but doesn't work in Garuda, it's not a "general technical support" issue, it's a Garuda-related issue, or am I mistaken?

just tried strace, but there seems to be far too much garbage from it to be useful. Tried grepping for stuff like xdg or browser, but nothing.

To make strace really useful:

strace -p <process id> -f -e trace=network

Focus it on the app (-p <process id>) and its forks (-f), and only the networking (-e trace=network)

1 Like

It's this one? Download do Programa de Imposto de Renda — Receita Federal

This is what I did:
downloaded https://downloadirpf.receita.fazenda.gov.br/irpf/2023/irpf/arquivos/IRPF2023-1.1.zip
unzip IRPF2023-1.1.zip
cd IRPF2023
pacman -S jre-openjdk

fish❯ java -jar irpf.jar
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel {}
Unrecognized option: {}
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

no idea what's {} in _JAVA_OPTIONS, get rid of it:

fish❯ _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' java -jar irpf.jar

program runs, complains it's Java 19 and not the expected 11, proceed:
image
image
image
I don't have a CPF so... but the page opens and I guess the login dialog will close itself when the authentication is complete.

I don't think you need to install jre-openjdk and use the .zip version though, if you have the .sh.bin one just fix the _JAVA_OPTIONS and try again. In that case run the "exec.sh" that will use the included JRE.

I know next to nothing about Java so I can't tell if that {} thing has any reason to be there, but that seems to be the problem. In which case, I'd concur it's likely "our" problem.

Note how the problem became apparent running in the terminal, and the program also writes a log file by the way.

yeah, it doesn't seem like the program itself tries anything on the network... I'm only seeing:

[pid 104548] recvmsg(90, {msg_namelen=0}, 0) = -1 EAGAIN (Recurso temporariamente indisponível)
[pid 104544] recvmsg(90, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\6\0as4[\303\0{\t\0\0003\0\300\4\0\0\0\0\356\4\242\2\356\4\202\2\20\0\1\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 64

Btw, "recurso temporariamente indisponível" would translate to "resource temporarily unavailable". But no idea what it is, and it shows even before I hit the button to try.

To be more exact, this new one: https://downloadirpf.receita.fazenda.gov.br/irpf/2023/irpf/arquivos/IRPF2023Linux-x86_64v1.1.sh.bin - but I'm guessin this ".bin" file is just a script to easily install stuff from it.

yeah, that's my end goal - hit the "Entrar com gov.br" (Login with gov.br) button to reach the website, but no browser pops up here.

I am able to launch the program, I've already did what I mostly needed with it, I'm just finding it very weird that it won't open the browser when needed - something you achieved... even more weird now.

yeah, I haven't tried through the terminal - when it's installed via the .bin file it'll create shortcuts and I've been using those:

I'll try with the terminal... :thinking:

IRPF2023.desktop is:

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=IRPF2023
Exec="/home/johnny/ProgramasRFB/IRPF2023/IRPF2023" %U
Icon=/home/johnny/ProgramasRFB/IRPF2023/.install4j/IRPF2023.png
Categories=Application;
StartupWMClass=install4j-serpro-ppgd-app-IRPFPGD275692530

Running ./IRPF2023 from the terminal, I get a minimal starting log:

┖[~/ProgramasRFB/IRPF2023]
└─Δ ./IRPF2023        
Redirecionando msgs de erro para 'IRPF2023.log'...
Redirecionando msgs de erro para 'IRPF2023.log'...
arq log = /home/johnny/ProgramasRFB/IRPF2023/IRPF2023.log
TinyLaF v1.4.0
Theme: jar:file:/home/johnny/ProgramasRFB/IRPF2023/irpf.jar!/Default.theme

And now, when I hit the "Entrar com gov.br" it shows an error: "Not possible to start the login service", but nothing new shows up on the log...

AHHH now we have a log with error message:

┖[~/ProgramasRFB/IRPF2023]
└─Δ cat IRPF2023.log 
Sistema: Linux
Java: 11.0.15
JavaHome: /home/johnny/ProgramasRFB/IRPF2023/jre
abr 07, 2023 1:45:04 PM serpro.ppgd.negocio.util.LogPPGD erro
GRAVE: /home/johnny/.rfb/.cacheni.properties (Arquivo ou diretório inexistente)
Warning: Could not get charToByteConverterClass!
Sistema: Linux
Java: 11.0.15
JavaHome: /home/johnny/ProgramasRFB/IRPF2023/jre
Sistema: Linux
Java: 11.0.15
JavaHome: /home/johnny/ProgramasRFB/IRPF2023/jre
Sistema: Linux
Java: 11.0.15
JavaHome: /home/johnny/ProgramasRFB/IRPF2023/jre
java.net.BindException: Endereço já em uso
	at java.base/sun.nio.ch.Net.bind0(Native Method)
	at java.base/sun.nio.ch.Net.bind(Unknown Source)
	at java.base/sun.nio.ch.Net.bind(Unknown Source)
	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
	at jdk.httpserver/sun.net.httpserver.ServerImpl.<init>(Unknown Source)
	at jdk.httpserver/sun.net.httpserver.HttpServerImpl.<init>(Unknown Source)
	at jdk.httpserver/sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source)
	at jdk.httpserver/com.sun.net.httpserver.HttpServer.create(Unknown Source)
	at serpro.ppgd.irpf.nuvem.BarramentoIRPFService.initHTTPLocalhostServer(BarramentoIRPFService.java:282)
	at serpro.ppgd.app.acoes.LoginGovAction.iniciarLogon(LoginGovAction.java:93)
	at serpro.ppgd.app.acoes.LoginGovAction.iniciarLogon(LoginGovAction.java:41)
	at serpro.ppgd.app.acoes.LoginGovAction.executarAcao(LoginGovAction.java:34)
	at serpro.ppgd.irpf.gui.dialogs.PainelAbaBemVindos.btnLoginGovActionPerformed(PainelAbaBemVindos.java:252)
	at serpro.ppgd.irpf.gui.dialogs.PainelAbaBemVindos$5.actionPerformed(PainelAbaBemVindos.java:184)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
abr 07, 2023 8:00:00 PM serpro.ppgd.negocio.util.LogPPGD erro
GRAVE: Mensagem Não foi possível iniciar o serviço de Login não está cadastrada no Mensagens.properties!

Mensagem Não foi possível iniciar o serviço de Login não está cadastrada no Mensagens.properties! translates roughly to "Message Not possible to start login service not registered on Mensagens.properties!"

oh. ok. probably because I had forgotten to shutdown the one that was already running...

Yes, the .sh.bin is a shell install script with a zip file appended.
And, you're right, you got the program running but not the authentication, I was confused again (too much multitasking I guess).
Let me try the new other version. (should be the same one but with JRE included)

ok, now from the top. Running through the terminal with no other instance running, the initial log, and all the way up to me waiting after pushing the "Entrar com gov.br" button, is:

┖[~/ProgramasRFB/IRPF2023]
└─Δ ./IRPF2023
Redirecionando msgs de erro para 'IRPF2023.log'...
Redirecionando msgs de erro para 'IRPF2023.log'...
arq log = /home/johnny/ProgramasRFB/IRPF2023/IRPF2023.log
TinyLaF v1.4.0
Theme: jar:file:/home/johnny/ProgramasRFB/IRPF2023/irpf.jar!/Default.theme
HTTP server started

On the other screen, tail -f IRPF2023.log says:

Sistema: Linux
Java: 11.0.15
JavaHome: /home/johnny/ProgramasRFB/IRPF2023/jre

And the program is... waiting. Nothing happens.

:confused: Maybe the included JRE doesn't play ball with the browser for some reason?
Try installing jre-openjdk, cd /home/johnny/ProgramasRFB/IRPF2023/, then the command I used above (edit: not the exec.sh that would use the included JRE). No idea if you need a reboot after installing JRE, I forgot to say, I did so just for good measure.

I think I can skip reinstalling jre, right? =p

image

No dice =(

image

I did notice one thing... perhaps it's something broken in my distro with Firedragon? mine shows kinda weird...

or am I imagining things trying to figure this one out?

That is strange indeed. In my screenshot, that space to the left of regular tabs is taken by the two "pinned" forum pages, but seems just empty in yours. If I unpin those tabs it looks like this:
image
I'm out if ideas to be honest.


edit: my inxi just in case it matters (different edition, Sway WM)

garuda-inxi
System:
  Kernel: 6.2.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=592f1813-a12e-4fe0-a4bb-da4e2ce4dbea rw rootflags=subvol=@
    quiet splash vt.global_cursor_default=0 loglevel=3 rd.udev.log_priority=3
    acpi_osi=Linux systemd.unified_cgroup_hierarchy=1
    resume=UUID=B5F8F072-9672-D546-B5BA-E3A0B73B9458 ibt=off
  Desktop: sway v: 1.8.1 info: waybar vt: 1 dm: greetd Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: TOSHIBA product: Satellite L500 v: PSLS3E-03V00TIT
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: TOSHIBA model: KSWAA v: 1.00 serial: <superuser required>
    BIOS: TOSHIBA v: 1.90 date: 12/17/2009
Battery:
  ID-1: BAT1 charge: 36.5 Wh (100.0%) condition: 36.5/43.2 Wh (84.5%)
    volts: 12.3 min: 10.8 model: TOSHIBA PA3534U-1BRS type: Li-ion
    serial: <filter> status: not charging
CPU:
  Info: model: Pentium T4400 bits: 64 type: MCP arch: Penryn level: v1
    built: 2008 process: Intel 45nm family: 6 model-id: 0x17 (23)
    stepping: 0xA (10) microcode: 0xA0B
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 1024 KiB desc: 1x1024 KiB
  Speed (MHz): avg: 2195 min/max: 1200/2200 scaling: driver: acpi-cpufreq
    governor: schedutil cores: 1: 2195 2: 2195 bogomips: 8778
  Flags: ht lm nx pae sse sse2 sse3 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD RV710/M92 [Mobility Radeon HD 4530/4570/5145/530v/540v/545v]
    vendor: Toshiba driver: radeon v: kernel alternate: amdgpu arch: TeraScale
    code: R6xx/RV6xx/RV7xx process: TSMC 55-65nm built: 2005-13 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 ports: active: HDMI-A-1,LVDS-1 empty: DP-1,VGA-1
    bus-ID: 01:00.0 chip-ID: 1002:9553 class-ID: 0300
  Device-2: Suyin USB 2.0 Camera type: USB driver: uvcvideo bus-ID: 7-6:2
    chip-ID: 064e:d104 class-ID: 0e02 serial: <filter>
  Display: wayland server: Xwayland v: 23.1.1 compositor: sway v: 1.8.1
    driver: gpu: radeon d-rect: 1366x1536 display-ID: 1
  Monitor-1: HDMI-A-1 pos: primary,top model: LG (GoldStar) TV
    serial: <filter> built: 2009 res: 1360x768 hz: 60 dpi: 49 gamma: 1.2
    scale: 1 size: 700x390mm (27.56x15.35") diag: 802mm (31.6") ratio: 16:9
    modes: max: 1360x768 min: 720x400
  Monitor-2: LVDS-1 pos: bottom model: LG Display LP156WH2-TLAA built: 2009
    res: 1366x768 hz: 60 dpi: 101 gamma: 1.2 scale: 1
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes:
    max: 1366x768 min: 640x480
  API: OpenGL v: 3.3 Mesa 23.0.1 renderer: AMD RV710 (DRM 2.50.0 /
    6.2.9-zen1-1-zen LLVM 15.0.7) compat-v: 3.0 direct-render: Yes
Audio:
  Device-1: Intel 82801I HD Audio vendor: Toshiba driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:293e class-ID: 0403
  Device-2: AMD RV710/730 HDMI Audio [Radeon HD 4000 series] vendor: Toshiba
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 1002:aa38 class-ID: 0403
  API: ALSA v: k6.2.9-zen1-1-zen status: kernel-api tools: alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.68 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Toshiba
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000
    bus-ID: 0e:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp14s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Realtek RTL8191SEvB Wireless LAN driver: rtl8192se v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 5000 bus-ID: 14:00.0
    chip-ID: 10ec:8172 class-ID: 0280
  IF: wlp20s0 state: down mac: <filter>
Drives:
  Local Storage: total: 298.09 GiB used: 68.36 GiB (22.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MK3263GSXN
    size: 298.09 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: N/A serial: <filter> rev: 2M scheme: GPT
Partition:
  ID-1: / raw-size: 42 GiB size: 42 GiB (100.00%) used: 35.09 GiB (83.5%)
    fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-2: /home raw-size: 85.04 GiB size: 85.04 GiB (100.00%)
    used: 16.26 GiB (19.1%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
  ID-3: /var/log raw-size: 42 GiB size: 42 GiB (100.00%)
    used: 35.09 GiB (83.5%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-4: /var/tmp raw-size: 42 GiB size: 42 GiB (100.00%)
    used: 35.09 GiB (83.5%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 3.79 GiB used: 480.7 MiB (12.4%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda5 maj-min: 8:5
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 216 Uptime: 7h 28m wakeups: 2 Memory: 3.79 GiB
  used: 2.1 GiB (55.3%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 2089 libs: 398 tools: octopi,paru Shell: fish v: 3.6.1 default: Bash
  v: 5.1.16 running-in: alacritty inxi: 3.3.26
Garuda (2.6.16-1):
  System install date:     2021-12-03
  Last full system update: 2023-04-07
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       <superuser required>
  Failed units:            

trying with the .sh.bin (had to sleep yesterday...)
Again I run into the {} thing and work around it as before, installer runs and recommends to close other running programs, I close the browser (hoping the installer doesn't mess with it) and proceed, installer warns the directory exists (there's the .log file from the .zip version that I had unpacked in a different place, oh well...), proceed, installs, complains about {} again (that must be something off on my machine I guess), _JAVA_OPTIONS again, runs (I used the exec.sh this time, to check whether the problem is with the included JRE 11), works, opens the authentication page.
Here' the .log from the .zip version (it shows that some warnings are actually non-problems):

   1   │ Sistema: Linux
   2   │ Java: 19.0.2
   3   │ JavaHome: /usr/lib/jvm/java-19-openjdk
   4   │ Apr 08, 2023 12:32:20 AM java.util.prefs.FileSystemPreferences$1 run
   5   │ INFO: Created user preferences directory.
   6   │ Apr 08, 2023 12:32:22 AM serpro.ppgd.negocio.util.LogPPGD erro
   7   │ SEVERE: /home/meanruse/.rfb/.cacheni.properties (No such file or directory)
   8   │ Warning: Could not get charToByteConverterClass!
   9   │ Sistema: Linux
  10   │ Java: 19.0.2
  11   │ JavaHome: /usr/lib/jvm/java-19-openjdk

.log from the .sh.bin is the same plus it now detects JRE 11.
I notice at least two directories appeared (~/.rfb and ~/.irpf) that may affect the program execution, maybe get rid of them (rename rather than delete, just in case) and try again. Actually, at this point I'd nuke every trace of the program, upgrade, reboot and start anew.
There's an uninstall script in the program directory, very similar to the .sh.bin initial shell script.

Still I have no idea what's going on.

I have the docs of it safely backed up, can nuke it. Will try now.

Meanwhile, I've been thinking maybe something is going on with the two browsers

Vivaldi (my default browser)

does it mean "technically" default (as in, configured something to make it default) or just the "favorite" one you generally use?

(sorry writing in a rush, back to familiy gathering, i'll be back later)

Properly configured.

image

Nuked everything I found of it... .rfb, .receitanet, .irpf, .java... nothing. I still get the waiting for authentication popup rolling and nothing happens.

Changed default browser do Firedragon, still nothing.

Is it possible that this tool listens for a login on a local webserver? Maybe the issue is also a closed port in the firewall, since I can't imagine how this government website would signal the client that you logged into a session without some kind of open port.

Could you run the application and check for ports used by that application via netstat -tunlp?

Both of these browsers have built-in popup blockers that are enabled by default. Try disabling the popup blocker, or try another browser like Firefox.

it does, indeed - as pointed out in the logs when it shows up "HTTP server started". The login endpoint on the gov.br will redirect back to a localhost address to pass the necessary authentication info. The problem here still being that the program, which @meanruse's execution was able to complete properly, didn't happen here.

The service runs on port 9991:

I really haven't considered that case...? I thought that even with a popup blocker, something would show up - like if you try to xdg-open https://forum.garudalinux.org.

Installed Firefox, Opera and even Midori (never had heard of it before). Made sure they had popup blocker settings turned off.

xdg-open check.

But still nothing =( opening firefox from the terminal, doesn't seem like anything even reached it

I see port 9991 in the netstat output. Try opening the firewall on that port, maybe also connecting to that with your browser does something.

Heh, not that simple (both http and https return the same)
image

I thought maybe (despite it returning a valid HTTP status code) it could be blocked by firewall... then, even though wiki says UFW is preinstalled, doesn't seem to be the case for dragonized?

image

Settings GUI confirms, "firewall is disabled" (not really an issue here, my networking assets take care of external stuff).

So not a firewall issue either.