2FAuth icon indicating copy to clipboard operation
2FAuth copied to clipboard

Clear cache from admin, causes app to crash with Server error

Open compgeniuses opened this issue 1 year ago • 1 comments
trafficstars

Version

5.2

Details & Steps to reproduce

Go to admin interface, and clikc on clear cache

Expectation

the cache is cleared, and the app continues to work

Error & Logs

{
    "message": "Server Error"
}

trying to update the app, leads to 

2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14] Error: requires at least 1 arg(s), only received 0
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14] Traceback (most recent call last):
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14]   File "/usr/local/agent/actions/update-module/05pullimages", line 79, in <module>
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14]   File "/usr/lib64/python3.11/subprocess.py", line 502, in check_returncode
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14]     ).check_returncode()
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14]       ^^^^^^^^^^^^^^^^^^
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14] subprocess.CalledProcessError: Command '('podman', 'pull')' returned non-zero exit status 125.
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14]     raise CalledProcessError(self.returncode, self.args, self.stdout,
2024-07-31T02:17:57+03:00 [1:2fauth14:agent@2fauth14] task/module/2fauth14/5b9d800f-62ca-411e-876e-932ade115a6d: action "update-module" status is "aborted" (1) at step 05pullimages

Execution environment

2fauth has been implemented as a nethserve r8 App here https://github.com/geniusdynamics/ns8-2fa/

Containerization

  • [X] Docker

Additional information

no way to recover so far

compgeniuses avatar Jul 30 '24 23:07 compgeniuses

Hi, the reported error is from the nethserve r8 implementation/processing, I do not provide support for this system. Also, the Clear Cache button does not generate any error on regular installations, nor on my development machine, nor on the demo site, nor on my Docker test machine.

You can check the app logs in [2fauth_install_dir]/storage/logs/, search for a possible error at the time you clicked the Clear cache button. Maybe you will find something useful to understand why nethserve is broken.

Bubka avatar Aug 01 '24 09:08 Bubka