Skip to content

Mongo upgrade 4.2 to 4.4: Windows docker volume lock file issue #435

Closed
@fdubois1

Description

@fdubois1

Something similar to #385

I'm using "library/mongo:4.2-windowsservercore-1809" on Windows Server 2019 with a docker volume. Now, I want to move to version 4.4. I just stopped my container, removed it and ran the command docker run pointing on the "library/mongo:4.4-windowsservercore-1809"

It failed to start with that log
{"t":{"$date":"2020-11-17T20:45:31.948+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"} {"t":{"$date":"2020-11-17T20:45:31.975+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2020-11-17T20:45:31.976+00:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."} {"t":{"$date":"2020-11-17T20:45:32.153+00:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":12012,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"4b5e866f3aa5"}} {"t":{"$date":"2020-11-17T20:45:32.153+00:00"},"s":"I", "c":"CONTROL", "id":23398, "ctx":"initandlisten","msg":"Target operating system minimum version","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}} {"t":{"$date":"2020-11-17T20:45:32.153+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.1","gitVersion":"ad91a93a5a31e175f5cbf8c69561e788bbc55ce1","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2020-11-17T20:45:32.153+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows Server 2019","version":"10.0 (build 17763)"}}} {"t":{"$date":"2020-11-17T20:45:32.153+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}} {"t":{"$date":"2020-11-17T20:45:32.190+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"C:/data/db/","storageEngine":"wiredTiger"}} {"t":{"$date":"2020-11-17T20:45:32.191+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=3583M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":16,"message":"[1605645932:205673][12012:140734189032032], wiredtiger_open: __win_file_lock, 239: C:\\data\\db\\\\WiredTiger.lock: handle-lock: LockFile: The process cannot access the file because another process has locked a portion of the file.\r\n: Resource device"}} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":16,"message":"[1605645932:205673][12012:140734189032032], wiredtiger_open: __conn_single, 1677: WiredTiger database is already being managed by another process: Resource device"}} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":16,"message":"[1605645932:206677][12012:140734189032032], wiredtiger_open: __win_file_lock, 239: C:\\data\\db\\\\WiredTiger.lock: handle-lock: LockFile: The process cannot access the file because another process has locked a portion of the file.\r\n: Resource device"}} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":16,"message":"[1605645932:206677][12012:140734189032032], wiredtiger_open: __conn_single, 1677: WiredTiger database is already being managed by another process: Resource device"}} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"W", "c":"STORAGE", "id":22347, "ctx":"initandlisten","msg":"Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade."} {"t":{"$date":"2020-11-17T20:45:32.206+00:00"},"s":"F", "c":"STORAGE", "id":28595, "ctx":"initandlisten","msg":"Terminating.","attr":{"reason":"16: Resource device"}} {"t":{"$date":"2020-11-17T20:45:32.207+00:00"},"s":"F", "c":"-", "id":23091, "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":28595,"file":"src\\mongo\\db\\storage\\wiredtiger\\wiredtiger_kv_engine.cpp","line":1101}} {"t":{"$date":"2020-11-17T20:45:32.207+00:00"},"s":"F", "c":"-", "id":23092, "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}

If I delete my docker volume and start the version 4.4, no problem and I can stop/start as I want, as long as I delete the lock file before launching the container. But if I move from 4.2 to 4.4 and I want to keep my docker volume, so I use the same volume for 4.4 that I used for 4.2, even if I delete the lock file before launching 4.4, it doesn't start with the log above. Any hint ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions