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

Forest DB error : A file operation is not permitted (-50) #1683

Closed
msanilkumar2020 opened this issue Mar 24, 2017 · 6 comments
Closed

Forest DB error : A file operation is not permitted (-50) #1683

msanilkumar2020 opened this issue Mar 24, 2017 · 6 comments
Labels
Milestone

Comments

@msanilkumar2020
Copy link

msanilkumar2020 commented Mar 24, 2017

Hi,

We are getting forest DB error while launching database.

This issue is occurring during overnight idle testing.

Please find the below code snippet,

Couch Logs:
[02/19 05:00:34:592] [T 0x17007df00] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[02/19 05:00:34:599] [T 0x17007df00] Type-WARNING , Message-Unexpected CBForest error -50
{at err2status:214}
[02/19 05:00:34:760] [T 0x17046e680] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[02/19 05:00:34:761] [T 0x17046e680] Type-WARNING , Message-Unexpected CBForest error -50
{at err2status:214}
[02/19 05:00:34:779] [T 0x17046e680] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)

Because of this issue, DB initialisation fails and we are getting timeout error(500) for our REST based Api's.

  • Version: CBL 4.0
  • Client OS: 10.2.1
@pasin
Copy link
Contributor

pasin commented Mar 24, 2017

I'm not sure what it means by testing database idle over night and at the same time initialize the database? Could you please provide more detail about the scenario? Could you also enable Database Logging so that we could see what the database operation that causes the issue?

@msanilkumar2020
Copy link
Author

@pasin ,

We have disabled logs because of this issue
#1572

Now i have enabled Database logs and testing this issue from our end, will update to you with database enabled logs.

@djpongh
Copy link

djpongh commented Apr 21, 2017

Any chance to get those logs?

Thanks

@msanilkumar2020
Copy link
Author

@djpongh , as of now i am not getting this issue to get the logs. At the time of issue logs were disable.

Please resolve this issue #1572 , because of this crash we are not able to enable logs.

@djpongh djpongh added the ffp label Apr 24, 2017
@djpongh djpongh added the icebox label May 12, 2017
@msanilkumar2020
Copy link
Author

@djpongh ,
we are able to reproduce this issue, please find the below log snippet.

05/22 10:58:20:468] [T 0x170075040] Type-Database , Message-Created CBLManager[0x17010e610 /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite]
[05/22 10:58:20:471] [T 0x170075040] Type-Server , Message-CBL_RunLoopServer[0x1704228e0] Starting server thread ...
[05/22 10:58:20:472] [T 0x170663040] Type-Server , Message-CBL_RunLoopServer[0x1704228e0]: Server thread starting...
[05/22 10:58:20:481] [T 0x170075040] Type-Database , Message-CBLManager[0x17010de30 /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite] created CBL_RunLoopServer[0x1704228e0] (with CBLManager[0x17010e610 /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite])
[05/22 10:58:20:702] [T 0x170075040] Type-Database , Message-Opening CBLDatabase[<0x174321e00>ptxdata]
[05/22 10:58:20:707] [T 0x170075040] Type-(null) , Message-Initializing ForestDB
[05/22 10:58:20:708] [T 0x170075040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:20:709] [T 0x170075040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:20:725] [T 0x170075040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:20:730] [T 0x170075040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:20:838] [T 0x170075040] Type-Database , Message-Opening CBLDatabase[<0x174321e00>ptxdata]
[05/22 10:58:20:840] [T 0x170075040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:20:840] [T 0x170075040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:20:845] [T 0x170075040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:20:846] [T 0x170075040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:21:204] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:21:206] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:21:207] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:21:208] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:21:211] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:21:212] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:21:213] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:21:254] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:21:255] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:21:256] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:21:257] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:21:259] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:21:260] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:21:261] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:21:673] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:21:675] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:21:676] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:21:676] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:21:678] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:21:679] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:21:680] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:21:745] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:21:747] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:21:748] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:21:749] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:21:751] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:21:765] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:21:766] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:22:103] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:22:104] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:22:105] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:22:106] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:22:109] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:22:109] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:22:110] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:22:137] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:22:138] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:22:140] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:22:140] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:22:142] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:22:143] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:22:144] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:22:464] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:22:466] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:22:467] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:22:468] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:22:474] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:22:475] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:22:476] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json
[05/22 10:58:22:502] [T 0x170663040] Type-Router , Message-GET http://lite.couchbase./ptxdata
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) Mobile/14F89 (5768272144)
Accept: application/json
Content-Type: application/json
[05/22 10:58:22:503] [T 0x170663040] Type-Database , Message-Opening CBLDatabase[<0x1703224e0>ptxdata]
[05/22 10:58:22:504] [T 0x170663040] Type-Database , Message-Using CBL_ForestDBStorage for db at /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2; upgrade=0
[05/22 10:58:22:505] [T 0x170663040] Type-Database , Message-Open /var/mobile/Containers/Data/Application/6F730AB1-95D9-47B0-94C5-8A708458BD10/Library/Application Support/CouchbaseLite/ptxdata.cblite2/db.forest with ForestDB (flags=5(null))
[05/22 10:58:22:507] [T 0x170663040] Type-WARNING , Message-ForestDB error: A file operation is not permitted (-50)
{at FDBLogCallback:68}
[05/22 10:58:22:508] [T 0x170663040] Type-WARNING , Message-Unexpected CBForest error -50 {at err2status:214}
[05/22 10:58:22:509] [T 0x170663040] Type-Router , Message-Response -- status=500, body=46 bytes
Server: CouchbaseLite 1.3.1 unofficial: commit 05977be+CHANGES
Content-Type: application/json

Please let me know if you need any information from me.

@djpongh djpongh added this to the 1.4.2 milestone Nov 29, 2017
@djpongh djpongh modified the milestones: 1.4.2, 1.4.x Dec 7, 2017
@djpongh djpongh modified the milestones: 1.4.x, 1.5.0 Feb 20, 2018
@djpongh djpongh removed the ffp label Feb 20, 2018
@jayahariv
Copy link
Contributor

Closing 1.x issue!

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

No branches or pull requests

4 participants