kylejohnson / Patiobar

A web frontend for pianobar, which is a CLI frontend for Pandora.
MIT License
62 stars 22 forks source link

Error: ENOENT: no such file or directory #22

Closed jjackson85 closed 3 years ago

jjackson85 commented 6 years ago

When I run node index.js I get the following message, I found something on another board about editing the eventcmd but I didn't have that so I created it. When I did then I still got the same error and go a new one when I ran pianobar that said cannot start eventcmd. (Exec format error). Does anyone have any suggestions as to what could help.

Thanks

a user connected fs.js:646 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^

Error: ENOENT: no such file or directory, open '/home/pi/.config/pianobar/currentSong' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at readCurrentSong (/home/pi/Patiobar/index.js:16:23) at Namespace. (/home/pi/Patiobar/index.js:65:2) at emitOne (events.js:116:13) at Namespace.emit (events.js:211:7) at Namespace.emit (/home/pi/Patiobar/node_modules/socket.io/lib/namespace.js:205:10) at /home/pi/Patiobar/node_modules/socket.io/lib/namespace.js:172:14 at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)

bonelifer commented 3 years ago

In the .config/pianobar folder you need need to create three files: ctl (which is the FIFO file) currentSong stationList

You'd think they'd be created in from the install.sh.

kylejohnson commented 3 years ago

This was likely due to #25, which is now fixed.