From time to time: java.io.FileNotFoundException: logs/current/20150326T110200/wall_shifts.json

Issue #407 resolved
Desrever Nu created an issue

After a few successful attempts at wall shifts, I get an exception :

ERROR - java.io.FileNotFoundException: logs/current/20150326T110200/wall_shifts.json (No such file or directory)

See extract from log below

11:03:08.413 c.n.n.t.PriceMonitorTriggerTask 474 INFO  - Walls needs to be shifted
11:03:08.413 c.n.n.t.PriceMonitorTriggerTask 529 INFO  - Sell Price 0.00410616  | Buy Price  0.00389026
11:03:08.413 c.n.n.s.S.StrategySecondaryPegTask 132 INFO  - Strategy received a price change notification.
11:03:08.417 c.n.n.s.S.StrategySecondaryPegTask 161 WARN  - Shift needed on Poloniex
Reason : BTC price went up more than 0.05 %
11:03:08.417 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=purple, message=Shift needed on Poloniex
Reason : BTC price went up more than 0.05 % ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:03:08.417 c.n.n.s.S.StrategySecondaryPegUtils 546 INFO  - Immediately try to cancel all orders
11:03:08.830 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127560701 deleted succesfully
11:03:09.534 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127560739 deleted succesfully
11:03:10.242 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127560653 deleted succesfully
11:03:10.942 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127560693 deleted succesfully
11:03:11.724 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.00410616 BTC
11:03:11.971 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - SELL Response1 = 127561091
11:03:11.971 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.00410616 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:03:17.246 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.00410616 BTC
11:03:17.466 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : SELL Response2 = 127561129
11:03:17.466 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.00410616 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:03:17.761 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00389026 BTC
11:03:18.060 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - BUY Response1 = 127561134
11:03:18.060 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00389026 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:03:23.319 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00389026 BTC
11:03:23.538 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : BUY Response2 = 127561175
11:03:23.538 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00389026 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:03:29.539 c.n.n.s.S.StrategySecondaryPegTask 167 INFO  - Wall shift successful
11:03:29.540 c.n.n.t.PriceMonitorTriggerTask 564 WARN  - Thu Mar 26 11:03:29 CET 2015,btce,BTC,250.112,USD,0.00410616,0.00389026,
11:04:10.139 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 249.988 USD

11:05:10.139 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 250.0 USD

11:06:11.113 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 250.0 USD

11:07:12.850 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 250.506 USD

11:07:12.851 c.n.n.t.PriceMonitorTriggerTask 474 INFO  - Walls needs to be shifted
11:07:12.851 c.n.n.t.PriceMonitorTriggerTask 529 INFO  - Sell Price 0.0040997  | Buy Price  0.00388414
11:07:12.851 c.n.n.s.S.StrategySecondaryPegTask 132 INFO  - Strategy received a price change notification.
11:07:12.854 c.n.n.s.S.StrategySecondaryPegTask 161 WARN  - Shift needed on Poloniex
Reason : BTC price went down more than 0.05 %
11:07:12.854 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=purple, message=Shift needed on Poloniex
Reason : BTC price went down more than 0.05 % ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:07:12.855 c.n.n.s.S.StrategySecondaryPegUtils 546 INFO  - Immediately try to cancel all orders
11:07:14.107 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127561134 deleted succesfully
11:07:14.858 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127561175 deleted succesfully
11:07:16.147 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127561091 deleted succesfully
11:07:16.875 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127561129 deleted succesfully
11:07:17.681 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00388414 BTC
11:07:17.966 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - BUY Response1 = 127562719
11:07:17.966 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00388414 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:07:23.225 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00388414 BTC
11:07:23.829 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : BUY Response2 = 127562760
11:07:23.829 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00388414 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:07:24.069 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.0040997 BTC
11:07:24.284 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - SELL Response1 = 127562767
11:07:24.285 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.0040997 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:07:29.969 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.0040997 BTC
11:07:30.204 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : SELL Response2 = 127562825
11:07:30.204 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.0040997 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:07:36.148 c.n.n.s.S.StrategySecondaryPegTask 73 INFO  - already shifting walls . orders will not be chage at present
11:07:36.205 c.n.n.s.S.StrategySecondaryPegTask 167 INFO  - Wall shift successful
11:07:36.206 c.n.n.t.PriceMonitorTriggerTask 564 WARN  - Thu Mar 26 11:07:36 CET 2015,btce,BTC,250.506,USD,0.0040997,0.00388414,
11:08:13.163 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 250.445 USD

11:09:15.085 c.n.n.t.PriceMonitorTriggerTask 449 INFO  - Price Updated. btce:1 BTC = 249.778 USD

11:09:15.089 c.n.n.t.PriceMonitorTriggerTask 474 INFO  - Walls needs to be shifted
11:09:15.090 c.n.n.t.PriceMonitorTriggerTask 529 INFO  - Sell Price 0.00411165  | Buy Price  0.00389546
11:09:15.091 c.n.n.s.S.StrategySecondaryPegTask 132 INFO  - Strategy received a price change notification.
11:09:15.098 c.n.n.s.S.StrategySecondaryPegTask 161 WARN  - Shift needed on Poloniex
Reason : BTC price went up more than 0.05 %
11:09:15.098 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=purple, message=Shift needed on Poloniex
Reason : BTC price went up more than 0.05 % ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:09:15.100 c.n.n.s.S.StrategySecondaryPegUtils 546 INFO  - Immediately try to cancel all orders
11:09:15.129 c.n.n.u.FileSystem 83 ERROR - java.io.FileNotFoundException: logs/current/20150326T110200/orders_history.csv (No such file or directory)
Exception in thread "sendLiquidity" java.lang.NullPointerException
11:09:15.130 c.n.n.u.FileSystem 105 ERROR - java.io.FileNotFoundException: logs/current/20150326T110200/orders_history.json (No such file or directory)
    at com.nubits.nubot.utils.FileSystem.readFromFile(FileSystem.java:110)
    at com.nubits.nubot.tasks.SubmitLiquidityinfoTask.reportTier1(SubmitLiquidityinfoTask.java:254)
    at com.nubits.nubot.tasks.SubmitLiquidityinfoTask.checkOrders(SubmitLiquidityinfoTask.java:131)
    at com.nubits.nubot.tasks.SubmitLiquidityinfoTask.run(SubmitLiquidityinfoTask.java:124)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
11:09:15.570 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127562719 deleted succesfully
11:09:16.271 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127562760 deleted succesfully
11:09:16.975 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127562767 deleted succesfully
11:09:17.681 c.n.n.t.w.PoloniexWrapper 442 WARN  - Order 127562825 deleted succesfully
11:09:18.434 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.00411165 BTC
11:09:18.652 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - SELL Response1 = 127563512
11:09:18.653 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.00411165 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:09:23.903 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : SELL side order :  SELL 3.0 NBT @ 0.00411165 BTC
11:09:24.138 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : SELL Response2 = 127563556
11:09:24.138 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New SELL wall is up on Poloniex : SELL side order :  SELL 3.0 NBT @ 0.00411165 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:09:24.408 c.n.n.s.S.StrategySecondaryPegUtils 244 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00389546 BTC
11:09:24.655 c.n.n.s.S.StrategySecondaryPegUtils 263 WARN  - Strategy - BUY Response1 = 127563560
11:09:24.655 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00389546 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
11:09:29.905 c.n.n.s.S.StrategySecondaryPegUtils 326 WARN  - Strategy - Submit order : BUY side order :  BUY 3.0 NBT @ 0.00389546 BTC
11:09:30.126 c.n.n.s.S.StrategySecondaryPegUtils 344 WARN  - Strategy : BUY Response2 = 127563601
11:09:30.126 i.e.o.h.v.c.PostRequest 27 INFO  - POST - path: /room/826590/notification, params: {color=yellow, message=New BUY wall is up on Poloniex : BUY side order :  BUY 3.0 NBT @ 0.00389546 BTC ( develop|1427364121007|402caf - bVcXrdTgrMSg6J2YqsLedCbi6Ubek9eTe5), notify=false}
Exception in thread "priceTriggerTask" java.lang.NullPointerException
11:09:36.127 c.n.n.s.S.StrategySecondaryPegTask 167 INFO  - Wall shift successful
    at com.nubits.nubot.utils.FileSystem.readFromFile(FileSystem.java:110)
11:09:36.127 c.n.n.t.PriceMonitorTriggerTask 564 WARN  - Thu Mar 26 11:09:36 CET 2015,btce,BTC,249.778,USD,0.00411165,0.00389546,
    at com.nubits.nubot.tasks.PriceMonitorTriggerTask.computeNewPrices(PriceMonitorTriggerTask.java:586)
11:09:36.127 c.n.n.u.FileSystem 83 ERROR - java.io.FileNotFoundException: logs/current/20150326T110200/wall_shifts.csv (No such file or directory)
    at com.nubits.nubot.tasks.PriceMonitorTriggerTask.verifyPegPrices(PriceMonitorTriggerTask.java:477)
11:09:36.128 c.n.n.u.FileSystem 105 ERROR - java.io.FileNotFoundException: logs/current/20150326T110200/wall_shifts.json (No such file or directory)
    at com.nubits.nubot.tasks.PriceMonitorTriggerTask.updateLastPrice(PriceMonitorTriggerTask.java:460)
    at com.nubits.nubot.tasks.PriceMonitorTriggerTask.executeUpdatePrice(PriceMonitorTriggerTask.java:261)
    at com.nubits.nubot.tasks.PriceMonitorTriggerTask.run(PriceMonitorTriggerTask.java:159)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

Comments (4)

  1. Benjamin Cordes

    AFAIK starting several bots should be impossible (?), otherwise I would have guessed a different process is moving folders. At the beginning the folder is created and set. Afterwards it appears to been moved by another process or move is called wrongly (currently don't understand how this could happen). Will fix this issue ASAP.

    Added some logging about session folders.

  2. Desrever Nu reporter

    Is it possible that some other NuBot instance is moving folders?

    Not that I am aware of. Double checking now.

  3. Desrever Nu reporter

    But AFAIK starting several bots should be impossible (?).

    It is possible, actually, and this might be exactly what happened.

  4. Log in to comment