Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWS blocks startup (stage 2) because of file lock even without access rights #542

Open
undergraver opened this issue Jun 14, 2023 · 2 comments

Comments

@undergraver
Copy link
Contributor

undergraver commented Jun 14, 2023

This is related to #404 .

I'm using OWS 1.8.0.

I create (as administrator) this path and files

C:\Windows\sun\java\deployment>dir
 Volume in drive C is SYSTEM
 Volume Serial Number is 268B-0434

 Directory of C:\Windows\sun\java\deployment

06/14/2023  11:15 PM    <DIR>          .
06/14/2023  11:15 PM    <DIR>          ..
06/14/2023  11:14 PM                 4 .appletTrustSettings
06/14/2023  11:15 PM                 4 .appletTrustSettings.lock
               2 File(s)              8 bytes
               2 Dir(s)  103,946,653,696 bytes free

C:\Windows\sun\java\deployment>

I run OWS 1.8.0 as normal user (no admin rights) and, because of this it keeps blocking, I believe we should check if we can write to that folder before blocking indefinitely with logs in stage2 looking like this:

[ITW-CORE][2023-06-14 23:21:18.937 EEST][INFO ][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Failed to delete lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:18.938 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Could not create lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.440 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Trying to create lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.442 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Found stale lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.443 EEST][INFO ][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Failed to delete lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.443 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Could not create lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.950 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Trying to create lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock
[ITW-CORE][2023-06-14 23:21:19.952 EEST][DEBUG][net.adoptopenjdk.icedteaweb.lockingfile.LockableFile] Found stale lock file C:\WINDOWS\Sun\Java\deployment\.appletTrustSettings.lock

We have this case when an application (java) runs with administrative rights and creates those files, blocking our non-admin java execution.

@adipiciu
Copy link

adipiciu commented Apr 8, 2024

I have the same issue with IcedTea
AdoptOpenJDK/IcedTea-Web#940

@adipiciu
Copy link

adipiciu commented Apr 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants