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

Java FileSystemPreferences errors #10

Open
JacksonWrath opened this issue Mar 17, 2019 · 4 comments
Open

Java FileSystemPreferences errors #10

JacksonWrath opened this issue Mar 17, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@JacksonWrath
Copy link

The container works great, even with multiple deployed, but I get the following on the console:

Mar 17, 2019 10:50:20 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
Mar 17, 2019 10:50:20 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

Doesn't seem to impact functionality, but still. Tried some Googling but nothing I could find is working (I may not have been doing it right though; new to docker).

Any ideas how to resolve it?

@DomiStyle
Copy link
Owner

It doesn't have any effects from what I have seen so far so I never bothered to fix it. The app user probably just needs a proper home folder.

It's already listed in the issues section though.

@DomiStyle DomiStyle added the bug Something isn't working label Mar 18, 2019
@AlexBander
Copy link

Hi,
on my system it gets additional to the missing file lock:

Connection failed with exception: Connection refused

Initialization complete, starting virtual console
java.util.prefs.FileSystemPreferences$1 run
WARNING: Couldn't create user preferences directory. User preferences are unusable.
java.util.prefs.FileSystemPreferences$1 run
WARNING: java.io.IOException: Not a directory
Starting client.
====setPowerMenuStatus: (##2)
Connection failed with exception: Connection refused
copy_tiles: allocating first_line at size 41
created selwin: 0x400036
called initialize_xfixes()
java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
[services.d] stopping services
[services.d] stopping app...
[services.d] stopping statusmonitor...
[services.d] stopping x11vnc...
caught signal: 15
deleted 40 tile_row polling images.
Restored X server key autorepeat to: 1
[services.d] stopping logmonitor...
[services.d] stopping openbox...
[services.d] stopping xvfb...
[services.d] stopping certsmonitor...
[services.d] stopping nginx...
[services.d] stopping s6-fdholderd...
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

@kylian-002
Copy link

I also experience this issue. with the Couldn't get file lock

idrac6-idrac1-1 | WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
idrac6-idrac1-1 | Mar 20, 2022 7:39:36 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
idrac6-idrac1-1 | WARNING: Could not lock User prefs. Unix error code 20.
idrac6-idrac1-1 | Mar 20, 2022 7:39:36 AM java.util.prefs.FileSystemPreferences syncWorld
idrac6-idrac1-1 | WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
idrac6-idrac1-1 | Mar 20, 2022 7:40:06 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
idrac6-idrac1-1 | WARNING: Could not lock User prefs. Unix error code 20.
idrac6-idrac1-1 | Mar 20, 2022 7:40:06 AM java.util.prefs.FileSystemPreferences syncWorld
idrac6-idrac1-1 | WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

@AskAlice
Copy link

I'm getting this

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting nginx...
[services.d] starting certsmonitor...
[nginx] starting...
[services.d] starting xvfb...
./run: 10: ps: not found
[certsmonitor] disabling service: secure connection not enabled.
[xvfb] starting...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
[services.d] starting openbox...
[openbox] starting...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
[services.d] starting logmonitor...
[services.d] starting x11vnc...
[logmonitor] no file to monitor: disabling service...
[services.d] starting statusmonitor...
[services.d] starting app...
[x11vnc] starting...
[statusmonitor] no file to monitor: disabling service...
23/07/2022 19:41:17 passing arg to libvncserver: -rfbport
23/07/2022 19:41:17 passing arg to libvncserver: 5900
23/07/2022 19:41:17 passing arg to libvncserver: -rfbportv6
23/07/2022 19:41:17 passing arg to libvncserver: -1
23/07/2022 19:41:17 passing arg to libvncserver: -httpportv6
23/07/2022 19:41:17 passing arg to libvncserver: -1
23/07/2022 19:41:17 passing arg to libvncserver: -desktop
23/07/2022 19:41:17 passing arg to libvncserver: iDRAC 6
23/07/2022 19:41:17 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 887
23/07/2022 19:41:17 Using X display :0
23/07/2022 19:41:17 rootwin: 0x50e reswin: 0x400001 dpy: 0x81dc9c00
23/07/2022 19:41:17
23/07/2022 19:41:17 ------------------ USEFUL INFORMATION ------------------
[app] starting iDRAC 6...
Starting
Environment ok
Creating library folder
Downloading avctKVM
[services.d] done.
--2022-07-23 19:41:17--  https://172.16.0.223/software/avctKVM.jar
Connecting to 172.16.0.223:443... 23/07/2022 19:41:17 X DAMAGE available on display, using it for polling hints.
23/07/2022 19:41:17   To disable this behavior use: '-noxdamage'
23/07/2022 19:41:17
23/07/2022 19:41:17   Most compositing window managers like 'compiz' or 'beryl'
23/07/2022 19:41:17   cause X DAMAGE to fail, and so you may not see any screen
23/07/2022 19:41:17   updates via VNC.  Either disable 'compiz' (recommended) or
23/07/2022 19:41:17   supply the x11vnc '-noxdamage' command line option.
23/07/2022 19:41:17 X COMPOSITE available on display, using it for window polling.
23/07/2022 19:41:17   To disable this behavior use: '-noxcomposite'
23/07/2022 19:41:17
23/07/2022 19:41:17 Wireframing: -wireframe mode is in effect for window moves.
23/07/2022 19:41:17   If this yields undesired behavior (poor response, painting
23/07/2022 19:41:17   errors, etc) it may be disabled:
23/07/2022 19:41:17    - use '-nowf' to disable wireframing completely.
23/07/2022 19:41:17    - use '-nowcr' to disable the Copy Rectangle after the
23/07/2022 19:41:17      moved window is released in the new position.
23/07/2022 19:41:17   Also see the -help entry for tuning parameters.
23/07/2022 19:41:17   You can press 3 Alt_L's (Left "Alt" key) in a row to
23/07/2022 19:41:17   repaint the screen, also see the -fixscreen option for
23/07/2022 19:41:17   periodic repaints.
23/07/2022 19:41:17 GrabServer control via XTEST.
connected.
23/07/2022 19:41:17
23/07/2022 19:41:17 Scroll Detection: -scrollcopyrect mode is in effect to
23/07/2022 19:41:17   use RECORD extension to try to detect scrolling windows
23/07/2022 19:41:17   (induced by either user keystroke or mouse input).
23/07/2022 19:41:17   If this yields undesired behavior (poor response, painting
23/07/2022 19:41:17   errors, etc) it may be disabled via: '-noscr'
23/07/2022 19:41:17   Also see the -help entry for tuning parameters.
23/07/2022 19:41:17   You can press 3 Alt_L's (Left "Alt" key) in a row to
23/07/2022 19:41:17   repaint the screen, also see the -fixscreen option for
23/07/2022 19:41:17   periodic repaints.
23/07/2022 19:41:17
23/07/2022 19:41:17 XKEYBOARD: number of keysyms per keycode 7 is greater
23/07/2022 19:41:17   than 4 and 51 keysyms are mapped above 4.
23/07/2022 19:41:17   Automatically switching to -xkb mode.
23/07/2022 19:41:17   If this makes the key mapping worse you can
23/07/2022 19:41:17   disable it with the "-noxkb" option.
23/07/2022 19:41:17   Also, remember "-remap DEAD" for accenting characters.
23/07/2022 19:41:17
23/07/2022 19:41:17 X FBPM extension not supported.
Xlib:  extension "DPMS" missing on display ":0".
23/07/2022 19:41:17 X display is not capable of DPMS.
23/07/2022 19:41:17 --------------------------------------------------------
23/07/2022 19:41:17
23/07/2022 19:41:17 Default visual ID: 0x21
23/07/2022 19:41:17 Read initial data from X display into framebuffer.
23/07/2022 19:41:17 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3204
23/07/2022 19:41:17 WARNING: Width (801) is not a multiple of 4. VncViewer has problems with that.
23/07/2022 19:41:17
23/07/2022 19:41:17 X display :0 is 32bpp depth=24 true color
23/07/2022 19:41:17
23/07/2022 19:41:17 Listening for VNC connections on TCP port 5900
23/07/2022 19:41:17
23/07/2022 19:41:17 Xinerama is present and active (e.g. multi-head).
23/07/2022 19:41:17 Xinerama: number of sub-screens: 1
23/07/2022 19:41:17 Xinerama: no blackouts needed (only one sub-screen)
23/07/2022 19:41:17
23/07/2022 19:41:17 fb read rate: 1916 MB/sec
23/07/2022 19:41:17 fast read: reset -wait  ms to: 10
23/07/2022 19:41:17 fast read: reset -defer ms to: 10
23/07/2022 19:41:17 The X server says there are 10 mouse buttons.
23/07/2022 19:41:17 screen setup finished.
23/07/2022 19:41:17

The VNC desktop is:      5313529b6d1e:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

WARNING: The certificate of '172.16.0.223' is not trusted.
WARNING: The certificate of '172.16.0.223' doesn't have a known issuer.
WARNING: The certificate of '172.16.0.223' was signed using an insecure algorithm.
WARNING: The certificate of '172.16.0.223' has expired.
The certificate has expired
The certificate's owner does not match hostname '172.16.0.223'
HTTP request sent, awaiting response... 200 OK
Length: 1006289 (983K) [application/octet-stream]
Saving to: 'avctKVM.jar'

     0K .......... .......... .......... .......... ..........  5%  256K 4s
    50K .......... .......... .......... .......... .......... 10%  329K 3s
   100K .......... .......... .......... .......... .......... 15%  331K 3s
   150K .......... .......... .......... .......... .......... 20%  333K 3s
   200K .......... .......... .......... .......... .......... 25%  296K 2s
   250K .......... .......... .......... .......... .......... 30%  316K 2s
   300K .......... .......... .......... .......... .......... 35%  331K 2s
   350K .......... .......... .......... .......... .......... 40%  332K 2s
   400K .......... .......... .......... .......... .......... 45%  331K 2s
   450K .......... .......... .......... .......... .......... 50%  332K 2s
   500K .......... .......... .......... .......... .......... 55%  332K 1s
   550K .......... .......... .......... .......... .......... 61%  234K 1s
   600K .......... .......... .......... .......... .......... 66%  238K 1s
   650K .......... .......... .......... .......... .......... 71%  330K 1s
   700K .......... .......... .......... .......... .......... 76%  331K 1s
   750K .......... .......... .......... .......... .......... 81%  332K 1s
   800K .......... .......... .......... .......... .......... 86%  330K 0s
   850K .......... .......... .......... .......... .......... 91%  297K 0s
   900K .......... .......... .......... .......... .......... 96%  326K 0s
   950K .......... .......... .......... ..
    100%  329K=3.2s

2022-07-23 19:41:20 (309 KB/s) - 'avctKVM.jar' saved [1006289/1006289]

Downloading avctKVMIOLinux64
--2022-07-23 19:41:20--  https://172.16.0.223/software/avctKVMIOLinux64.jar
Connecting to 172.16.0.223:443... connected.
WARNING: The certificate of '172.16.0.223' is not trusted.
WARNING: The certificate of '172.16.0.223' doesn't have a known issuer.
WARNING: The certificate of '172.16.0.223' was signed using an insecure algorithm.
WARNING: The certificate of '172.16.0.223' has expired.
The certificate has expired
The certificate's owner does not match hostname '172.16.0.223'
HTTP request sent, awaiting response... 200 OK
Length: 983833 (961K) [application/octet-stream]
Saving to: 'lib/avctKVMIOLinux64.jar'

     0K .......... .......... .......... .......... ..........  5%  335K 3s
    50K .......... .......... .......... .......... .......... 10%  320K 3s
   100K .......... .......... .......... .......... .......... 15%  321K 2s
   150K .......... .......... .......... .......... .......... 20%  326K 2s
   200K .......... .......... .......... .......... .......... 26%  334K 2s
   250K .......... .......... .......... .......... .......... 31%  331K 2s
   300K .......... .......... .......... .......... .......... 36%  337K 2s
   350K .......... .......... .......... .......... .......... 41%  335K 2s
   400K .......... .......... .......... .......... .......... 46%  306K 2s
   450K .......... .......... .......... .......... .......... 52%  329K 1s
   500K .......... .......... .......... .......... .......... 57%  261K 1s
   550K .......... .......... .......... .......... .......... 62%  331K 1s
   600K .......... .......... .......... .......... .......... 67%  334K 1s
   650K .......... .......... .......... .......... .......... 72%  335K 1s
   700K .......... .......... .......... .......... .......... 78%  333K 1s
   750K .......... .......... .......... .......... .......... 83%  311K 0s
   800K .......... .......... .......... .......... .......... 88%  321K 0s
   850K .......... .......... .......... .......... .......... 93%  331K 0s
   900K .......... .......... .......... .......... .......... 98%  335K 0s
   950K ..........
    100%  358K=3.0s

2022-07-23 19:41:24 (324 KB/s) - 'lib/avctKVMIOLinux64.jar' saved [983833/983833]

Downloading avctVMLinux64
--2022-07-23 19:41:24--  https://172.16.0.223/software/avctVMLinux64.jar
Connecting to 172.16.0.223:443... connected.
WARNING: The certificate of '172.16.0.223' is not trusted.
WARNING: The certificate of '172.16.0.223' doesn't have a known issuer.
WARNING: The certificate of '172.16.0.223' was signed using an insecure algorithm.
WARNING: The certificate of '172.16.0.223' has expired.
The certificate has expired
The certificate's owner does not match hostname '172.16.0.223'
HTTP request sent, awaiting response... 200 OK
Length: 135360 (132K) [application/octet-stream]
Saving to: 'lib/avctVMLinux64.jar'

     0K .......... .......... .......... .......... .......... 37%  277K 0s
    50K .......... .......... .......... .......... .......... 75%  334K 0s
   100K .......... .......... .......... ..
    100%  322K=0.4s

2022-07-23 19:41:25 (308 KB/s) - 'lib/avctVMLinux64.jar' saved [135360/135360]

Extracting avctKVMIOLinux64
Extracting avctVMLinux64
Initialization complete, starting virtual console
Jul 23, 2022 7:41:25 PM java.util.prefs.FileSystemPreferences$1 run
WARNING: Couldn't create user preferences directory. User preferences are unusable.
Jul 23, 2022 7:41:25 PM java.util.prefs.FileSystemPreferences$1 run
WARNING: java.io.IOException: Not a directory
07/23/2022 07:41:25:634: Starting client.
====setPowerMenuStatus: (##2)

ProtocolAPCP: Version [1.0]

07/23/2022 07:41:26:615:  Connection failed.
23/07/2022 19:41:34 Got connection from client 127.0.0.1
23/07/2022 19:41:34   other clients:
23/07/2022 19:41:34 Got 'ws' WebSockets handshake
23/07/2022 19:41:34 Got protocol: binary
23/07/2022 19:41:34   - webSocketsHandshake: using binary/raw encoding
23/07/2022 19:41:34   - WebSockets client version hybi-13
23/07/2022 19:41:34 Disabled X server key autorepeat.
23/07/2022 19:41:34   to force back on run: 'xset r on' (3 times)
23/07/2022 19:41:34 incr accepted_client=1 for 127.0.0.1:33374  sock=10
23/07/2022 19:41:34 Client Protocol Version 3.8
23/07/2022 19:41:34 Protocol version sent 3.8, using 3.8
23/07/2022 19:41:34 rfbProcessClientSecurityType: executing handler for type 1
23/07/2022 19:41:34 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
23/07/2022 19:41:34 copy_tiles: allocating first_line at size 27
23/07/2022 19:41:34 Pixel format for client 127.0.0.1:
23/07/2022 19:41:34   32 bpp, depth 24, little endian
23/07/2022 19:41:34   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
23/07/2022 19:41:34 no translation needed
23/07/2022 19:41:34 Enabling NewFBSize protocol extension for client 127.0.0.1
23/07/2022 19:41:34 Enabling full-color cursor updates for client 127.0.0.1
23/07/2022 19:41:34 Using image quality level 6 for client 127.0.0.1
23/07/2022 19:41:34 Using JPEG subsampling 0, Q79 for client 127.0.0.1
23/07/2022 19:41:34 Using compression level 9 for client 127.0.0.1
23/07/2022 19:41:34 Enabling LastRect protocol extension for client 127.0.0.1
23/07/2022 19:41:34 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
23/07/2022 19:41:34 Using tight encoding for client 127.0.0.1
23/07/2022 19:41:35 client_set_net: 127.0.0.1  0.0004
23/07/2022 19:41:35 created   xdamage object: 0x40001e
23/07/2022 19:41:43 created selwin: 0x40001f
23/07/2022 19:41:43 called initialize_xfixes()
Jul 23, 2022 7:41:57 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
Jul 23, 2022 7:41:57 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Jul 23, 2022 7:42:27 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
Jul 23, 2022 7:42:27 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Jul 23, 2022 7:42:57 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
Jul 23, 2022 7:42:57 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Jul 23, 2022 7:43:27 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs.  Unix error code 20.
Jul 23, 2022 7:43:27 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants