problem with postgres
  • Hello:

    When I try to ran "cyloadrules" I get this error:
    $ cyloadrules
    ERROR Connection to database failed: "could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?


    thanks
  • There is a question in the error message. What is the answer to this question? Is postgresql running?
  • yes, is running, and I have pgsql installed. Possibly another version of pgsql ?

    Thanks
  • Does the filename mentioned in the error message exist?
  • no, the only one message is the one that I put to the beginning. syslog and messages do not report anything. Only a message that he say: "-- MARK --" ????
  • Have you created the database that cyphesis needs as described in the README file?
  • yes, the user, the database. As postgres, I can go to db cyphesis and view it. Is blank.
  • Hmm, I am pretty puzzled why cyloadrules can't connect. In any case, it probably does not matter that much, as if there are no rules in the database, the server will load them from disk.
  • yes, it can run with the message:
    ERROR Connection to database failed:
    could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

    ERROR Error opening database. Database disabled.
    INFO Unable to connect to the RDBMS.
    Please ensure that the RDBMS is running, the cyphesis database exists and is accessible to the user running cyphesis.
    INFO To disable this message please run:

    cyconfig --cyphesis:usedatabase=false

    to permanently disable database usage.
    NOTICE Avahi callback reported group uncommited
    INFO Running
  • Seemingly the problem was in the version of postgres. I installed 8.3 and it seems that he needs 8.2.
    I'm going to recompile cyphesis. I hope that I am not problems

    Thanks
  • Seemingly there were no problems compiling.

    Only, when I executed "cyloadrules", there went out the message of which he was not finding mason.xml and basic.xml in /etc/cyphesis/.
    I had to copy them from /opt/worldforge/etc/cyphesis/mason.d
    On having started cyphesis one of the messages is:
    NOTICE Avahi callback reported group uncommited

    And when I execute cyclient

    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "<string>", line 1, in <module>
    2008:03:18 20:57:51 SCRIPT_ERROR ImportError: No module named hooks
    2008:03:18 20:57:51 SCRIPT_ERROR Error in sys.excepthook:
    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    2008:03:18 20:57:51 SCRIPT_ERROR binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
    2008:03:18 20:57:51 SCRIPT_ERROR AttributeError: 'module' object has no attribute 'argv'
    2008:03:18 20:57:51 SCRIPT_ERROR
    2008:03:18 20:57:51 SCRIPT_ERROR Original exception was:
    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "<string>", line 1, in <module>
    2008:03:18 20:57:51 SCRIPT_ERROR ImportError: No module named hooks
    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "<string>", line 1, in <module>
    2008:03:18 20:57:51 SCRIPT_ERROR NameError: name 'ruleset_import_hooks' is not defined
    2008:03:18 20:57:51 SCRIPT_ERROR Error in sys.excepthook:
    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    2008:03:18 20:57:51 SCRIPT_ERROR binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
    2008:03:18 20:57:51 SCRIPT_ERROR AttributeError: 'module' object has no attribute 'argv'
    2008:03:18 20:57:51 SCRIPT_ERROR
    2008:03:18 20:57:51 SCRIPT_ERROR Original exception was:
    2008:03:18 20:57:51 SCRIPT_ERROR Traceback (most recent call last):
    2008:03:18 20:57:51 SCRIPT_ERROR File "<string>", line 1, in <module>
    2008:03:18 20:57:51 SCRIPT_ERROR NameError: name 'ruleset_import_hooks' is not defined
    WARNING: Made non secure connection to the server.
    WARNING: Attempting to login with no password.
    ERROR: Failed to log into server


    :(

    thanks
  • It looks like you have binreloc enabled in your build, in which case you can only run the copy of the binaries in /opt/worldforge/bin. Another possibility is that you have re-run configure with a partially complete build, and some parts of the code are configured to use a different prefix. All I can suggest is re running configure giving what you are sure is the correct prefix, and then completely rebuild all the code by doing a:

    make clean all
  • ok, all clean
    ./configure --prefix=/opt/worldforge
    grep -i error config.log

    conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
    conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
    conftest.c:6:5: error: #error -fno-strict-aliasing needed
    | # error -fno-strict-aliasing needed
    | # error -fno-strict-aliasing needed
    | /* Override any GCC internal prototype to avoid an error.
    conftest.cpp:31:47: error: CoreFoundation/CFBundle.h: No such file or directory
    conftest.cpp:37: error: 'CFBundleRef' was not declared in this scope
    conftest.cpp:37: error: expected `;' before 'appBundle'
    conftest.cpp:29:28: error: ac_nonexistent.h: No such file or directory
    conftest.cpp:29:28: error: ac_nonexistent.h: No such file or directory
    conftest.cpp:77:21: error: winsock.h: No such file or directory
    conftest.cpp:44:21: error: winsock.h: No such file or directory
    | /* Override any GCC internal prototype to avoid an error.
    configure:7634: $PKG_CONFIG --exists --print-errors "atlascpp-0.6 varconf-1.0 >= 0.6.4"
    configure:7652: $PKG_CONFIG --exists --print-errors "atlascpp-0.6 varconf-1.0 >= 0.6.4"
    configure:7743: $PKG_CONFIG --exists --print-errors "wfmath-0.3"
    configure:7761: $PKG_CONFIG --exists --print-errors "wfmath-0.3"
    configure:7851: $PKG_CONFIG --exists --print-errors "mercator-0.2"
    configure:7869: $PKG_CONFIG --exists --print-errors "mercator-0.2"
    configure:7960: $PKG_CONFIG --exists --print-errors "skstream-0.3 >= 0.3.3"
    configure:7978: $PKG_CONFIG --exists --print-errors "skstream-0.3 >= 0.3.3"
    configure:8069: $PKG_CONFIG --exists --print-errors "avahi-client"
    configure:8087: $PKG_CONFIG --exists --print-errors "avahi-client"


    # make 2>error.log
    # less error.log

    LocatedEntity.cpp: In member function ‘void LocatedEntity::changeContainer(LocatedEntity*)’:
    LocatedEntity.cpp:148: warning: unused variable ‘was_empty’
    EntityFactory.cpp: In member function ‘int EntityFactory::modifyTaskClass(const std::string&, const Atlas::Objects::Root&)’:
    EntityFactory.cpp:749: warning: unused variable ‘factory’

    # make install 2>errorinst.log
    error.inst.log is blank

    After finishing the install:
    Please run 'sudo ./scripts/cyphesis-setup.sh' to create the PostgreSQL account ...

    But it does not exist

    No problems creating database, user and charging rules.
    Only, when I run cyphesis
    INFO Restoring world from database...
    INFO Restored world.
    NOTICE Avahi callback reported group uncommited
    INFO Running


    Thanks
  • "scanray" said:
    ok, all clean
    ./configure --prefix=/opt/worldforge
    grep -i error config.log



    It is normal for this file to contain errors, as some of the tests correctly fail on some systems.


    [quote]# make install 2>errorinst.log
    error.inst.log is blank

    After finishing the install:
    Please run 'sudo ./scripts/cyphesis-setup.sh' to create the PostgreSQL account ...

    But it does not exist
    [/quote]

    Oops, yeah it is not included in the distribution. I am also not sure how well it works. Will look into that.

    No problems creating database, user and charging rules.
    Only, when I run cyphesis
    [quote]INFO Restoring world from database...
    INFO Restored world.
    NOTICE Avahi callback reported group uncommited
    INFO Running


    Thanks[/quote]

    The Avahi error does happen, though I am not sure why. I don't think it is anything to worry about.
  • For the present time it works and has not given me problems.
    Only, in the window that runs cyphesis, the mistake goes out:
    NOTICE ERROR generated by 3720 with message [Unknown type definition for "butcher" requested]

    Is it a problem of the compilation?

    Another thing: the window of "Entity Creator" I can open it only one time.

    thanks
  • That error is not a compilation problem. It looks like an inconsistency in the current rules data.

    I assume the "Entity Creator" is in Ember? Try posting in the Ember forums and see if the authors can help.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID