# Bitsquare won't start with exception "Could not create JavaWatchObserver"

**URL:** <https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259>\
**Category:** Support\
**Created:** [January 13, 2017, 10:02pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259 "2017-01-13T22:02:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [January 13, 2017, 10:02pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/1 "2017-01-13T22:02:25Z")

</div>

Hi,

has anyone encountered the problem of a not starting bitsquare on ubuntu although it was running before? I get this message in the log:  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: [os.name](http://os.name): Linux  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: os.version: 4.2.0-36-generic  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: os.arch: amd64  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: sun.arch.data.model: 64  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: JRE: 1.8.0\_112-b15 (Oracle Corporation)  
… [JavaFX Application Thread] INFO i.b.c.u.Utilities: JVM: 25.112-b15 (Java HotSpot™ 64-Bit Server VM)  
… [JavaFX Application Thread] INFO i.b.b.p.PriceFeedService: baseUrl for PriceFeedService: [http://h234zt7d2vztpwe.onion/](http://h234zt7d2vztpwe.onion/)  
… [JavaFX Application Thread] ERROR i.b.g.m.MainViewModel: initializeAllServices  
… [JavaFX Application Thread] ERROR i.b.p.n.TorNetworkNode: TorNode creation failed with exception: Could not create JavaWatchObserver

Any suggestions?

Regards

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [January 14, 2017, 3:39pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/2 "2017-01-14T15:39:23Z")

</div>

Hm, never saw that before. Does it continue complaining after restart?

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [January 14, 2017, 4:06pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/3 "2017-01-14T16:06:56Z")

</div>

Unfortunatelly it does continue to fail. After 4 minutes the GUI suggests so restart. By having another look into the log file, I saw that this exception occured before, but in between it Bitsquare was starting perfectly and I even could do some trades. System and Bitsquare restarts won’t help. I also tried to restart the network manager “service network-manager restart” but other then that I’m out of ideas.

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [January 21, 2017, 1:22pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/4 "2017-01-21T13:22:18Z")

</div>

Just a quick update on this. I finally started bitsquare via console and it worked one time, so that I was able to transfer my bitcoins. After that it went back to the previously described problem.  
But I finally kind of solved the issue by running bitsquare as root, I usually don’t like to run software as root but for now I can work with that. Remember to move the appfolder to the root home directory…  
Hope this helps others!  
Regards!!

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [January 22, 2017, 8:59am UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/5 "2017-01-22T08:59:58Z")

</div>

Thanks. Should be not needed to run as root.  
Maybe the control\_auth\_cookie file had issues?  
…/Bitsquare/mainnet/tor/.tor/control\_auth\_cookie  
You could try to remove all tor files inside the tor folder beside the files inside the hiddenservice folder. Do a backup before for safety.  
Could it be that you started Bitsquare once as root and later as user again?

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [February 24, 2017, 5:20pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/6 "2017-02-24T17:20:30Z")

</div>

Sorry, that I didn’t respond. I just tried your suggestion on my unix system and removed all files and folders besides the hiddenservice folder. Unfortunatelly, no luck.  
I startet to start bitsquare as root only after the mentioned issues. But, I am going to update to the later version, maybe the problem will resolve itself.

Greetings!

---

<div class="post-metadata">

**Author:** ![quantv](https://bisq.community/letter_avatar/quantv/32/5_5575768a8748004e209b776fc1b2916d.png) [@quantv](https://bisq.community/u/quantv)\
**Post date:** [February 25, 2017, 7:15am UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/7 "2017-02-25T07:15:11Z")

</div>

I have the same error too. In my case, it’s because of the inotify limitation reached (I’m using Linux Mint). Try close other programs and restart bitsquare.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [February 25, 2017, 9:35pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/8 "2017-02-25T21:35:49Z")

</div>

> [@quantv](#):
>
> inotify

Can you provide more info about inotify?

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [February 25, 2017, 11:14pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/9 "2017-02-25T23:14:05Z")

</div>

I doubt that this issue is connected to other opened programms, cause during my tests I had a freshly restarted system and just 2 terminal sessions as well as bitsquare running.

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [February 28, 2017, 9:42pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/10 "2017-02-28T21:42:50Z")

</div>

So I just updated bitsquare to the latest version on ubuntu, but unfortunatelly the problem still exists. The log shows the latest version:  
Feb-28 17:57:54.510 [JavaFX Application Thread] INFO i.b.app.Version: Version{ **VERSION=0.4.9.9** , P2P\_NETWORK\_VERSION=4, LOCAL\_DB\_VERSION=4, TRADE\_PROTOCOL\_VERSION=2, BTC\_NETWORK\_ID=0, getP2PNetworkId()=0}

…with the same error message:  
Feb-28 17:58:06.738 [JavaFX Application Thread] ERROR i.b.p.n.TorNetworkNode: TorNode creation failed with exception: Could not create JavaWatchObserver

As before, running with sudo still works.

Any thoughts?  
Thanks in advance and regards

---

<div class="post-metadata">

**Author:** ![quantv](https://bisq.community/letter_avatar/quantv/32/5_5575768a8748004e209b776fc1b2916d.png) [@quantv](https://bisq.community/u/quantv)\
**Post date:** [March 1, 2017, 11:06am UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/11 "2017-03-01T11:06:33Z")

</div>

> [@ManfredKarrer](#):
>
> Can you provide more info about inotify?

This is the message and stacktrace:  
User limit of inotify watches reached  
java.io.IOException: User limit of inotify watches reached  
at sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:264)  
at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:260)  
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:329)  
at java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![quantv](https://bisq.community/letter_avatar/quantv/32/5_5575768a8748004e209b776fc1b2916d.png) [@quantv](https://bisq.community/u/quantv)\
**Post date:** [March 1, 2017, 11:08am UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/12 "2017-03-01T11:08:09Z")

</div>

This error happen when I have Visual Studio Code open. If I close the VS Code, the application run normally. Your case might different though.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [March 1, 2017, 1:58pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/13 "2017-03-01T13:58:06Z")

</div>

Seem that the inotify limit is too small on that user. can u increase that in the OS?

---

<div class="post-metadata">

**Author:** ![df2rg45](https://bisq.community/letter_avatar/df2rg45/32/5_5575768a8748004e209b776fc1b2916d.png) [@df2rg45](https://bisq.community/u/df2rg45)\
**Post date:** [March 5, 2017, 7:31pm UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/14 "2017-03-05T19:31:59Z")

</div>

I think we are talking about two different issues here.  
Cause LinuxWatchService and JavaWatchObserver are not the same.  
I am going to re-setup my linux anyway and I am hoping to solve this. Might take so time, but I will keep you posted.  
Regards!

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [March 6, 2017, 7:24am UTC](https://bisq.community/t/bitsquare-wont-start-with-exception-could-not-create-javawatchobserver/1259/15 "2017-03-06T07:24:47Z")

</div>

Let us know if you find the reason and solution.
