Error message on the xivo web interface

Solved
Andy13b Posted messages 33 Status Member -  
Andy13b Posted messages 33 Status Member -
Hello

I'm currently working on a xivo server.
When I try to connect to the web interface using the IP address of the server, I get an error message.

xivo-confd must be running: Unexpected error: (psycopg2.OperationalError) could not translate host name "localhost" to address: Name or service not known (Background on this error at: https://docs.sqlalchemy.org/en/14/errors.html)

When I do /etc/hosts I get a permission denied message. Yet I am logged in as root because the user I entered at the beginning was root and then the password.

Could you provide some very valuable help?

5 answers

  1. brupala Posted messages 111140 Registration date   Status Member Last intervention   14 441
     
    (Re) hello,
    which OS is it installed on?
    when you are root, do you have the # at the end of the prompt?
    if you just do a cat /etc/hosts?

    --
    and... Here you go!
    0
  2. Andy13b Posted messages 33 Status Member
     
    I installed xixo on the official site, which I installed on a desktop PC.
    So I think it's on a Debian.

    In the end, I do have the # that is present.

    The command cat/etc/hosts gives me the response
    No such file or directory.
    0
    1. brupala Posted messages 111140 Registration date   Status Member Last intervention   14 441
       
      oh?
      they've really tinkered with the system....
      there's /etc after all?
      apparently, yes see page 5
      0
      1. Andy13b Posted messages 33 Status Member > brupala Posted messages 111140 Registration date   Status Member Last intervention  
         
        Thank you, I'll take a look at that as soon as I get to work.
        0
  3. Andy13b Posted messages 33 Status Member
     
    Hello again.
    So I looked in nano /etc/hosts

    In the folder, it was only written PC.
    I therefore specified the loopback address and the IP address of the xivo server.

    I'm restarting now and I will check the result.
    0
  4. Andy13b Posted messages 33 Status Member
     
    Everything is back to normal, I am super happy.
    Thanks again for your help, brupala.
    You are the best. :)
    0
    1. brupala Posted messages 111140 Registration date   Status Member Last intervention   14 441
       
      :-)
      but that's not quite a loopback, if your IP address changes, it won't work anymore.
      You need ::1 and 127.0.0.1
      0
  5. Andy13b Posted messages 33 Status Member
     
    I set my IP address to be static so that it wouldn't change.

    In nano /etc/network/interfaces, I changed it like this:

    iface eth0 inet static
    0