# Raspistill/camerapi doesn't work inside node-red

**URL:** <https://discourse.nodered.org/t/raspistill-camerapi-doesnt-work-inside-node-red/8179>\
**Category:** General\
**Created:** [20 February 2019 10:29 UTC](https://discourse.nodered.org/t/raspistill-camerapi-doesnt-work-inside-node-red/8179 "2019-02-20T10:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squishy447](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@squishy447](https://discourse.nodered.org/u/squishy447)\
**Post date:** [20 February 2019 10:29 UTC](https://discourse.nodered.org/t/raspistill-camerapi-doesnt-work-inside-node-red/8179/1 "2019-02-20T10:29:59Z")

</div>

Apologies if this is in the wrong place, i'm new to the node-red community.

A few days ago i installed the camerapi node and i got it working. i don't rememeber changing anything on the pi but now it just outputs an empty string. I've also tried running the "raspistill ... " command using exec node and it returns an error code 255, yet the same command works when directly entered in the pi's terminal.

my first thought is that node-red doesn't have the permissions to run the commands but then the camerapi node wouldn't have worked before.  
does anyone know why this is happening and has a possible solution?
