Sqllite error when trying to spin up flow emulator
Closed this issue ยท 10 comments
Problem
Getting the following error when trying to spin up the flow-emulator:
10:35PM ERR :exclamation: Failed to configure storage error="unable to open database file: out of memory (14)"
seems like the issue was caused by this PR: #301
more info on the the "unable to open database file:" error :https://stackoverflow.com/questions/7670289/sqlite3-operationalerror-unable-to-open-database-file
Acceptance Criteria
flow-emulator should be able to spin up without the error occurring
Context
Cannot upgrade to flow v0.44.0 because of this
I will have a look now ( which environment @supertejAnchor ? )
I tried osx and linux couldn't reproduce, trying to find a windows machine.
Try using https://www.parallels.com/eu/
I can help but not today as I'm quite busy.
I found one unused at home, today I will debug
PS C:\Users\bluesign> flow version
Version: v0.45.4
Commit: b19fe3345881e7489c74449b47586e457b22becb
PS C:\Users\bluesign> flow emulator
5:44AM INF โ๏ธ Using service account 0xf8d6e0586b0a20c7 serviceAddress=f8d6e0586b0a20c7 serviceHashAlgo=SHA3_256 servicePrivKey=e87566e6629212562312c18e22b82247f834e231e3aa6efe228011fd12e7cc57 servicePubKey=a6a403a9b41014913897d07277e7164494fc865ae9e7759a489aae43d4b5cd88150478a126eecb696109edff5dc40fb5f817b733dcb4f962702184d6d68862a2 serviceSigAlgo=ECDSA_P256
5:44AM INF ๐ Flow contract FlowFees=0xe5a8b7f23e8b548f
5:44AM INF ๐ Flow contract FlowStorageFees=0xf8d6e0586b0a20c7
5:44AM INF ๐ Flow contract FlowServiceAccount=0xf8d6e0586b0a20c7
5:44AM INF ๐ Flow contract FlowToken=0x0ae53cb6e3f42a79
5:44AM INF ๐ Flow contract FungibleToken=0xee82856bf20e2aa6
5:44AM INF ๐ฑ Starting gRPC server on port 3569 port=3569
5:44AM INF ๐ฑ Starting REST API on port 8888 port=8888
5:44AM INF ๐ฑ Starting admin server on port 8080 port=8080
5:44AM INF ๐ฑ Starting debugger on port 2345 port=2345
5:44AM INF โ
Started REST API server on port 8888 port=8888
5:44AM INF โ
Started gRPC server on port 3569 port=3569
5:44AM INF โ
Started admin server on port 8080 port=8080
I will need some more information to dig about environment.
Turns out this error is because the emulator is trying to create the DB in the current directory (which is readonly in this case) instead of in $FLOW_DBPATH as the previous versions.
@supertejAnchor I wil have a look at $FLOW_DBPATH problem, thanks for the details