Jump to content

Unable to open ttyS0: No such file or directory


Guest juxx
 Share

Recommended Posts

Hi all,

trying to start UPS service with:

service upsd start

 

I allways get this output:

 

NUT Starting UPS model drivers: Network UPS Tools - Generic SafeNet UPS driver 0.03 (2.0.0)

Unable to open ttyS0: No such file or directory

Things to try:

- Check 'port=' in ups.conf

- Check owner/permissions of all parts of path

 

Network UPS Tools (version 2.0.0) - APC Smart protocol driver

Driver version 1.99.6, command table version 2.0

 

Unable to open ttyS1: No such file or directory

Things to try:

- Check 'port=' in ups.conf

- Check owner/permissions of all parts of path

 

Network UPS Tools - UPS driver controller 2.0.0

Fatal error: unusable configuration

Driver failed to start (exit status=1)

Fatal error: unusable configuration

Driver failed to start (exit status=1)

[FAILED]

NUT Starting UPS daemon: [ OK ]

 

Waht can I do to solve?

Thanks in advance.

 

juxx

Link to comment
Share on other sites

Check file /etc/ups/ups.conf

 

You probably have a line that says:

 

port = ttyS0

 

Change that to:

 

port = /dev/ttyS0

 

You will probably need to edit the file as the root user.

 

I remember having this very same error message when I set up my ups, until I changed the line to: port = /dev/ttyS0

Link to comment
Share on other sites

well...

changing ttys0 in ups.conf to /dev/tty0

i get:

NUT Starting UPS model drivers: Network UPS Tools (version 2.0.0) - APC Smart protocol driver

Driver version 1.99.6, command table version 2.0

Unable to detect an APC Smart protocol UPS on port /dev/tty0

Check the cabling, port name or model name and try again

Network UPS Tools - UPS driver controller 2.0.0

Driver failed to start (exit status=1)

[FAILED]

NUT Starting UPS daemon: [ OK ]

 

but: first (only by me) serial is ttyS0 or tty0?

 

juxx

Edited by juxx
Link to comment
Share on other sites

Don't know why you wouldn't have /dev/ttyS0, which is serial port 1.

 

Issue the following command: dmesg | grep tty

 

When I do that, I get:

 

ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

 

Gotta go. Heading out for the weekend. Post what you get from the dmesg command, and somebody should be able to help you.

 

Good luck with it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...