# ERROR: Cannot open serial port /dev/ttyAMC0. Error code 2

**URL:** https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570
**Category:** General
**Created:** [4 February 2019 11:42 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570 "2019-02-04T11:42:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [4 February 2019 11:42 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570/1 "2019-02-04T11:42:31Z")

</div>

I have installed z-wave library and open Z-Wave. No problems.  
When I start node-red I get the following error message:

**2019-02-04 12:23:39.398 Error, ERROR: Cannot open serial port /dev/ttyAMC0. Error code 2**

I don't understand this as MinOZW /dev/ttyACM0 and Node test2 runs without a problem. Is there a problem with different groups of node-red and dialout? If yes how can I change it. I am relatively new to Raspian. any help very much appreciated.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [4 February 2019 12:46 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570/2 "2019-02-04T12:46:11Z")

</div>

It is always useful to state the name of the node you have installed  
If you are using node-red-contrib-openzwave have you followed the instructions in the readme?

Secondly only one thing can access the serial port at the same time so check you have no other apps using that serial port

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [4 February 2019 12:56 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570/3 "2019-02-04T12:56:04Z")

</div>

Thanks for your response.  
I fixed the problem!

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [4 February 2019 12:57 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570/4 "2019-02-04T12:57:49Z")

</div>

How? If you post your solution someone else finding this post in the future can learn.

---

<div class="post-metadata">

### Author: ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)
#### Post date: [4 February 2019 15:19 UTC](https://discourse.nodered.org/t/error-cannot-open-serial-port-dev-ttyamc0-error-code-2/7570/5 "2019-02-04T15:19:36Z")

</div>

I had 2 problems:

1. had a typing error in the device name - silly
2. I copied the z-wave key from usr/local/etc/openzwave/options.xml which did not have the format of node-red's node
