coburnw / python-vxi11-server

A VXI-11 Instrument Server written in Python
27 stars 13 forks source link

Connection refused #19

Open ChevalierLouis opened 3 years ago

ChevalierLouis commented 3 years ago

Hello, the program works fine on raspberry pi 3 b v1.2 but now I use the comput module modele 4 and there is lots of error IMG_20210518_162343

I don't know how to fix those issues

Have a good day

Louis.

coburnw commented 3 years ago

it looks like rpcbind is not running on the server. Im not familiar with the compute modules. Look into the following commands that work on a debian system.

if sudo systemctl status rpcbind reports rpcbind is inactive, then you need to start it. If it reports 'service not found', then you need to install it.

sudo apt-get install rpcbind sudo systemctl enable rpcbind sudo systemctl start rpcbind

ChevalierLouis commented 3 years ago

Ok so now the server start but it automatically eject the raspberry of the network

ChevalierLouis commented 3 years ago

I have the same problem on the pi 4

coburnw commented 3 years ago

Hi Louis, This sounds a little like a network problem or an os config problem. Im happy to try to help you through it but you will need to give me a bit more to work with. Assuming a network/os problem, lets start here:

  1. do you have two servers, one that works and one that doesnt? If not, what happened to the one that was working?
  2. do both servers boot the same distribution?
  3. what is different between the working and the non working server?
  4. are both servers on the same subnet?
  5. what does eject mean and is it the client or the server that is being ejected?
  6. does ping still work?
  7. did you have to start rpcbind on both servers?
  8. did you have to start rpcbind on the client? (I wouldnt think that you should.)
  9. are there any differences in what systemctl status rpcbind reports between servers?

c.

ChevalierLouis commented 3 years ago

I have found the issue: the wiring of the raspberry pi 4 and the comput module 4 aren't the same as the pi 3, to resolve this I have to erase the stock wiring pi and change it with a other versions (I think on the pi 4 some"gpios" are the ethernet one's ). I found this by running the timeclient.py (the only thing I add is the gpio).

Thanks a the help L.