BitShares Forum

Main => Technical Support => Topic started by: Average Guy on Street on December 25, 2014, 01:43:35 am

Title: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Average Guy on Street on December 25, 2014, 01:43:35 am
Anyone get this critical error? And know how to fix it?

"Critical Error: An instance of Bitshares is already running"
I am running Wallet 4.27.1

Please advise.
Thanks


Sent from my iPad using Tapatalk
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: julian1 on December 25, 2014, 10:07:30 am
What platform? Try to check the process list, and see if there's another instance running.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: btswildpig on December 25, 2014, 12:42:24 pm
Anyone get this critical error? And know how to fix it?

"Critical Error: An instance of Bitshares is already running"
I am running Wallet 4.27.1

Please advise.
Thanks


Sent from my iPad using Tapatalk
backup the wallet ,  exit the wallet , go to the data file folder where the blockchains and wallet are stored , then delete everything except "wallet" folder , the restart the wallet and wait ... ...
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: merlin0113 on December 25, 2014, 02:26:49 pm
I came to this exact error today too. I think it's a bug.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Average Guy on Street on December 27, 2014, 02:12:30 pm
I'm running windows 7


Sent from my iPad using Tapatalk
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Riverhead on December 27, 2014, 02:46:35 pm
Look in the %AppData%/Bitshares tree for a file called, "LOCK" and delete it.

Sent from my Timex Sinclair

Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: fran2k on January 05, 2015, 07:27:56 pm
Anyone get this critical error? And know how to fix it?

"Critical Error: An instance of Bitshares is already running"
I am running Wallet 4.27.1

Please advise.
Thanks


Sent from my iPad using Tapatalk
backup the wallet ,  exit the wallet , go to the data file folder where the blockchains and wallet are stored , then delete everything except "wallet" folder , the restart the wallet and wait ... ...

I'm having this same error after power loss in the computer while running the QT with 4.27.1 in Windows 7.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: vikram on January 06, 2015, 08:14:55 pm
We're not sure why this is happening to some people. Another thread: https://bitsharestalk.org/index.php?topic=10727.msg170452#msg170452
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: CLains on January 07, 2015, 09:36:42 pm
I get this as well on windows 7 bitshares 0.4.27.2
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: mint chocolate chip on January 07, 2015, 10:01:29 pm
Right click and close the Bitshares icon that is in the running programs box in the bottom right corner of your desktop. X-ing out of the client does not stop it from running on your computer.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Riverhead on January 09, 2015, 01:46:28 am
I got the error on a fresh boot into Windows. No BitShares process is running. I'll see if I can resolve. Could be a lock file somewhere.

It may be related to multithreading the indexing on 32bit Windows (that's what I'm running on this MacBook Pro). It starts the indexing and then closes with that error.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: CLains on January 09, 2015, 07:38:43 am
Yes, I also did a fresh boot. There are tons of lockfiles in many different subfolders. Would love a resolution here as I want to keep my shorts on  8)
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: vikram on January 09, 2015, 09:50:55 pm
Nathan's comment here: https://github.com/BitShares/qt_wallet/issues/82#issuecomment-68959403 made me realize that this is a misleading error message that our team has put there.

The message does not necessarily mean that another instance is running, rather it will show up when one of the LevelDB databases fails to open for some reason.

I've seen the underlying database error occur when the OS isn't happy about our process opening so many file handles. There are likely multiple other reasons this could happen as well, as we've been seeing reports of database opening failures for a long time.

Is everyone that has this problem running Windows? 64-bit or 32-bit?
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: testz on January 09, 2015, 10:17:25 pm
Is everyone that has this problem running Windows? 64-bit or 32-bit?

Never seen this problem (Windows 64-bit).
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: CLains on January 10, 2015, 04:08:39 am
I'm on 64-bit windows 7
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Riverhead on January 10, 2015, 04:42:27 am
32bit. I have a 64bit machine I can try tomorrow.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Markus on January 10, 2015, 07:43:22 am
I've had this too when upgrading to 4.27.1 a few weeks back.
Only managed to get rid of it my total reset (uninstall client, delete Roaming/Bitshares, redownload whole blockchain, import wallet backup)

I just got it again after a crash that froze my whole system entirely (including mouse and Ctr-Alt-Del) which happened just after I did a market trade.

Win 7 Professional 64bit
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Markus on January 10, 2015, 08:33:52 am
Now I'm stuck.
Deleting the LOCK files didn't work (there were 44 of them in total) and because this time it didn't happen while upgrading the client I don't have a recent json wallet backup so I'm a bit wary of flushing the whole thing.

Any advice please?

Running the CLI I get this:
Code: [Select]
C:\Program Files\BitShares\bin>bitshares_client.exe --rebuild-index
Clearing database index
Loading config from file: C:\Users\AppData\Roaming\BitShares\config.json
Using blockchain checkpoints from file: C:\Users\User\AppData\Roaming\BitShares\checkpoints.json
Tracking Statistics: true
Initializing genesis state from built-in genesis file
Please be patient, this will take a few minutes...
Successfully re-indexed 0 blocks in 1 seconds.
Blockchain size changed from 0MiB to 0MiB.
------------ error --------------
10001 db_in_use_exception: Database in Use
Unable to open database C:/Users/User/AppData/Roaming/BitShares/peers.leveldb
        Corruption: error in middle of record
  {"db":"C:/Users/User/AppData/Roaming/BitShares/peers.leveldb","msg":"Corruption
: error in middle of record"}
    p2p  level_pod_map.hpp:62 bts::db::level_pod_map<unsigned int,struct bts::ne
t::potential_peer_record>::open

    {"dir":"C:/Users/User/AppData/Roaming/BitShares/peers.leveldb","create":true,"c
ache_size":0}
    p2p  level_pod_map.hpp:67 bts::db::level_pod_map<unsigned int,struct bts::ne
t::potential_peer_record>::open

Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: abit on January 10, 2015, 10:19:48 am
Now I'm stuck.
Deleting the LOCK files didn't work (there were 44 of them in total) and because this time it didn't happen while upgrading the client I don't have a recent json wallet backup so I'm a bit wary of flushing the whole thing.

Any advice please?

Running the CLI I get this:
Code: [Select]
C:\Program Files\BitShares\bin>bitshares_client.exe --rebuild-index
Clearing database index
Loading config from file: C:\Users\AppData\Roaming\BitShares\config.json
Using blockchain checkpoints from file: C:\Users\User\AppData\Roaming\BitShares\checkpoints.json
Tracking Statistics: true
Initializing genesis state from built-in genesis file
Please be patient, this will take a few minutes...
Successfully re-indexed 0 blocks in 1 seconds.
Blockchain size changed from 0MiB to 0MiB.
------------ error --------------
10001 db_in_use_exception: Database in Use
Unable to open database C:/Users/User/AppData/Roaming/BitShares/peers.leveldb
        Corruption: error in middle of record
  {"db":"C:/Users/User/AppData/Roaming/BitShares/peers.leveldb","msg":"Corruption
: error in middle of record"}
    p2p  level_pod_map.hpp:62 bts::db::level_pod_map<unsigned int,struct bts::ne
t::potential_peer_record>::open

    {"dir":"C:/Users/User/AppData/Roaming/BitShares/peers.leveldb","create":true,"c
ache_size":0}
    p2p  level_pod_map.hpp:67 bts::db::level_pod_map<unsigned int,struct bts::ne
t::potential_peer_record>::open
Delete this directory 'C:/Users/User/AppData/Roaming/BitShares/peers.leveldb' and retry.
It's safe.
Don't delete the LOCK files only.
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: wrzkll on January 11, 2015, 02:16:29 am
@abit

Renaming ~/peers.leveldb to peers.leveldb-old did the trick for me. Also, I didn't need to delete any LOCK files.


I'm running Windows 7-64bit 0.4.27 wallet.


Thanks!
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: CLains on January 11, 2015, 03:41:09 am
@abit

Renaming ~/peers.leveldb to peers.leveldb-old did the trick for me. Also, I didn't need to delete any LOCK files.


I'm running Windows 7-64bit 0.4.27 wallet.


Thanks!

Can confirm, this worked for me as well. Thanks!
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: fuzzy on January 13, 2015, 06:03:05 am
I've been having this problem for the past two weeks.  It has actually kept me from being able to start running a delegate.  Windows 8 here...
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: Average Guy on Street on January 14, 2015, 03:17:57 pm

I've been having this problem for the past two weeks.  It has actually kept me from being able to start running a delegate.  Windows 8 here...

fuzzy - how did you fix your wallet trouble?
I noticed on another thread, that you fixed it.




Sent from my iPad using Tapatalk
Title: Re: Critical Error: An instance of Bitshares is already running! Wallet 4.27.1 Please Advise.
Post by: vikram on January 15, 2015, 04:28:20 am
Can people with this problem check if it persists in v0.5: https://github.com/BitShares/bitshares/releases/tag/bts%2F0.5.0

At the very least it should hopefully give a more detailed error message.