LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-16-2022, 11:40 AM   #1
alexanderzhirov
LQ Newbie
 
Registered: May 2022
Distribution: Solus
Posts: 16

Rep: Reputation: 0
Unhappy ser2net - unable to connect to the server


Unable to connect to the ser2net server. I don't even understand why this is happening. The server is running, the ports do not conflict. I connect remotely to the server and through the localhost via telnet - the error is that there, that there is the same.

Code:
~ # ser2net -v
ser2net version 2.10.1
Starts when loading without errors:

Code:
~ # cat /var/log/messages
Feb 21 05:20:05 amg_clone syslog.info syslogd started: BusyBox v1.20.2
Feb 21 05:20:08 amg_clone auth.info sshd[110]: Server listening on 0.0.0.0 port 22.
Feb 21 05:20:09 amg_clone daemon.notice ser2net[117]: ser2net startup
Everything that is active:

Code:
~ # ss -a
Netid        State             Recv-Q         Send-Q                    Local Address:Port                       Peer Address:Port          
nl           UNCONN            0              0                                  rtnl:kernel                                 *              
nl           UNCONN            0              0                               tcpdiag:kernel                                 *              
nl           UNCONN            0              0                             fiblookup:kernel                                 *              
nl           UNCONN            0              0                                uevent:kernel                                 *              
nl           UNCONN            0              0                                  genl:kernel                                 *              
u_str        ESTAB             0              0                                     * 1704                                  * 0             
u_dgr        ESTAB             0              0                              /dev/log 1587                                  * 0             
u_dgr        ESTAB             0              0                                     * 1632                                  * 0             
tcp          LISTEN            0              128                             0.0.0.0:22                              0.0.0.0:*             
tcp          LISTEN            0              10                              0.0.0.0:8888                            0.0.0.0:*             
tcp          LISTEN            0              1                               0.0.0.0:3001                            0.0.0.0:*             
tcp          TIME-WAIT         0              0                             127.0.0.1:3001                          127.0.0.1:34902         
tcp          ESTAB             0              0                        192.168.114.85:22                       192.168.101.99:38652
The server is running:

Code:
~ # ps | grep ser2net
  122 root      2564 S    /usr/sbin/ser2net -c /etc/ser2net.conf -P /run/ser2net.pid
  167 root      1348 S    grep ser2net
Connection error:

Code:
~ # telnet 127.0.0.1 3001
Error creating port lock file
Connection closed by foreign host
The config is configured on port 3001. With the same settings on another server, everything works. Can you tell me which way to dig? Getting into the source code is already an extreme measure. I think maybe what other options are worth considering?

Last edited by alexanderzhirov; 05-16-2022 at 11:41 AM.
 
Old 05-16-2022, 04:33 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I have used ser2net in the distant past but I am not an expert. Without seeing your ser2net.conf file it is difficult to determine why its not working. Something like:

3001:telnet:600:/dev/ttySERIAL_port:9600 8DATABITS NONE 1STOPBIT
 
Old 05-17-2022, 04:29 AM   #3
alexanderzhirov
LQ Newbie
 
Registered: May 2022
Distribution: Solus
Posts: 16

Original Poster
Rep: Reputation: 0
Corny and simple - the /var/lock directory was missing. After creating this directory, the connection to the server became feasible!
 
  


Reply

Tags
server, tcp, telnet



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Working With ser2net On Linux danmartinj Linux - Software 3 03-18-2016 01:28 PM
Anyone successfully managed to install ser2net on CentOS 7 or SL7 ??? degixer Linux - Software 7 09-17-2015 06:39 PM
Anyone successfully managed to install ser2net on CentOS 7 or SL7 ??? degixer Linux - Networking 1 09-13-2015 03:36 AM
Ser2net error msg (DD-WRT router) NRV85 Linux - Networking 1 12-18-2011 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration