Cyphesis Errors
  • Hello, I'm trying out Worldforge, for now I'm trying to get Cyphesis running. It took me a while to get the database working (Ubuntu uses strange socket locations...), and I had to update the cyphesis.vconf file to point to the correct ruleset directory. Now it seems to almost work, except for

    2008-05-25 10:38:22 ERROR Missing python module "world.statistics.Statistics"
    2008-05-25 10:38:22 SCRIPT_ERROR ImportError: No module named world.statistics.Statistics
    2008-05-25 10:38:22 ERROR Rule database table contains no rules.
    2008-05-25 10:38:22 NOTICE Attempting to load temporary ruleset from files.
    2008-05-25 10:38:22 INFO Restoring world from database...
    2008-05-25 10:38:22 INFO Restored world.
    2008-05-25 10:38:23 INFO Running

    The error about Statistics missing is odd, since I can see Statistics under Mason. Is perhaps "mason." needed somewhere?

    The other error, I am not sure I understand. Do I need to do something about this, or will the server run despite it? Basically my goal is to see how Cyphesis works together with Ember, so do I need to set anything else up before I work on Ember? Thanks in advance.
  • Al knows better how to answer your first question, but you need to run cyloadrules first to load the rules into the database.

    It should be enough just to have cyphesis running if you want to try it with Ember.
  • "erik" said:
    Al knows better how to answer your first question, but you need to run cyloadrules first to load the rules into the database.

    It should be enough just to have cyphesis running if you want to try it with Ember.

    Thanks for the response.

    Running cyloadrules gives me "Reading rules from [correct path]", however, running cyphesis immediately afterwards gives me the same "missing Statistics" and "Rule database table contains no rules" errors. The server does say "Running" afterwards, though.

    However, when I run Ember and connect to localhost, it doesn't work: When I need to create a character, the dropdown menu for "Type" is empty, and I can't click "create". Is this perhaps because of the lack of rules database, or a completely different problem? (I'm not even sure if its an issue with Cyphesis or Ember)
  • That does indeed sound like a problem with the rules database not being correctly loaded. I'm afraid I can't help you much here; Al is the one to talk to. There's no easy way to get notices of new entries in the forum, so if you cuold post a message to the General mailing list it would surely reach his attention.
    http://mail.worldforge.org/lists/listinfo/
  • Thanks, I'll do that. Maybe I'll try IRC first though, mailing lists always seem so formal to me somehow...
  • It looks as though it's not finding the files it expects in the right locations. Can you confirm you've done a full "make install", and that the code hasn't been reconfigured to have a different prefix without doing a full rebuild?
  • "alriddoch" said:
    It looks as though it's not finding the files it expects in the right locations. Can you confirm you've done a full "make install", and that the code hasn't been reconfigured to have a different prefix without doing a full rebuild?

    Hmm, I was running the .package of cyphesis before - so perhaps there is some problem with it?

    Ok, I spent the last hour compiling cyphesis from source, as well as all the dependent libraries. Still no luck though. The cyphesis installation finishes with

    Cyphesis is not yet ready to run.
    Unless you have configured the server to run without a database, Cyphesis
    requires access to a PostgreSQL database to store rules and account data.
    Please run 'sudo ./scripts/cyphesis-setup.sh' to create the
    PostgreSQL account and database required, or run it as root.

    - however, there is no cyphesis-setup.sh inside /scripts, nor anywhere else that I can see. Taking my best guess, I created a postgres database called 'cyphesis', and ran cyphesis, which gave me

    2008-05-27 09:14:27 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "rules_pkey" for table "rules"
    2008-05-27 09:14:27 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "accounts_pkey" for table "accounts"
    2008-05-27 09:14:27 NOTICE DATABASE: NOTICE: CREATE TABLE / UNIQUE will create implicit index "accounts_entity_ent_target_key" for table "accounts_entity_ent"
    2008-05-27 09:14:27 NOTICE DATABASE: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "entity_ent_pkey" for table "entity_ent"
    2008-05-27 09:14:27 ERROR Rule database table contains no rules.
    2008-05-27 09:14:27 NOTICE Attempting to load temporary ruleset from files.
    2008-05-27 09:14:28 INFO Restoring world from database...
    2008-05-27 09:14:28 INFO Restored world.
    2008-05-27 09:14:28 WARNING avahi watch_free handler called
    2008-05-27 09:14:28 ERROR Avahi client creation failed
    2008-05-27 09:14:28 ERROR Unable to register service with MDNS daemon.
    2008-05-27 09:14:28 INFO Running

    So, I once more have the error with "no rules", sadly. This is on a fresh install of cyphesis and all other worldforge libraries, I didn't change a single config parameter.

    EDIT: Hmm, despite this error, I can now log in to my cyphesis server instance with ember and walk around in an empty world.
  • The error about rules is not that important, as if the Database is empty, the rules are loaded from files. You can get rid of this error by running cyloadrules which will load the rules files into the Database. The important thing is that you no longer have the python import error, so cyphesis seems to be running correctly.

    How were you installing the autopackage? Were you installing it in your regular user home directory, or using the root password to install it system wide?
  • "alriddoch" said:
    The error about rules is not that important, as if the Database is empty, the rules are loaded from files. You can get rid of this error by running cyloadrules which will load the rules files into the Database. The important thing is that you no longer have the python import error, so cyphesis seems to be running correctly.

    How were you installing the autopackage? Were you installing it in your regular user home directory, or using the root password to install it system wide?

    I installed it locally, not systemwide, I think it put it in ~/.local (but I deleted all of that before I installed it from source).
  • You also have to run cyclient once the server is up and running in order to populate the world.
  • "erik" said:
    You also have to run cyclient once the server is up and running in order to populate the world.

    Thanks, yeah, I noticed that in the wiki actually. Cyphesis runs nicely now with Ember (well, except for Ember needing more RAM than I have, a paltry 512MB...).

    Minor question: I see that I need to run cyclient every time I start the server. Is there some simple way to have the world persist?
  • Yeah, Ember currently uses up quite a lot more memory than required. I'm currently working on bringing the memory footprint down though.

    Al knows more about the current state of the persisting code.
  • "erik" said:
    Yeah, Ember currently uses up quite a lot more memory than required. I'm currently working on bringing the memory footprint down though.

    Al knows more about the current state of the persisting code.

    Ok, thanks.

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