проблема с запуском

Обсуждение вопросов, связанных с системой проведения турниров ejudge.
kpik2008
Posts:17
Joined:06 February 2014, 13:53
проблема с запуском

Post by kpik2008 » 06 February 2014, 13:59

после установки выполняю .... и получаю...

Code: Select all

~/ejudge/bin$ ./ejudge-control start
Thu Feb  6 12:51:40 2014:info:ej-users 2.3.24, compiled Thu Feb  6 11:54:26 2014
Thu Feb  6 12:51:40 2014:info:using XML as the userlist database
Thu Feb  6 12:51:40 2014:info:login hashtable: size = 4099, shift = 23, thresh = 2732, current = 1
Thu Feb  6 12:51:40 2014:info:login hashtable: collisions = 0, hash collisions = 0
Thu Feb  6 12:51:40 2014:info:login hashtable: time = 0 (us)
Thu Feb  6 12:51:40 2014:info:cookie hashtable: size = 4099, step = 37, thresh = 2732, current = 0
Thu Feb  6 12:51:40 2014:info:cookie hashtable: collisions = 0
Thu Feb  6 12:51:40 2014:info:cookie hashtable: time = 7 (us)
Thu Feb  6 12:51:40 2014:info:ej-super-server 2.3.24, compiled Thu Feb  6 11:54:26 2014
Thu Feb  6 12:51:40 2014:error:bind() failed: 98, Address already in use
ej-users-control: ej-users is not running

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 06 February 2014, 14:08

Установите последнюю версию ejudge.

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 06 February 2014, 17:14

cher wrote:Установите последнюю версию ejudge.
поставил ejudge-2.3.29.tgz

теперь пишет:

Code: Select all

~/ejudge/bin/ejudge-control start
Thu Feb  6 16:12:14 2014:info:ej-users 2.3.29, compiled Thu Feb  6 15:58:13 2014
mysql: SELECT config_val FROM config WHERE config_key = 'version' ;
Thu Feb  6 16:12:14 2014:info:ej-super-server 2.3.29, compiled Thu Feb  6 15:58:13 2014
Thu Feb  6 16:12:14 2014:error:bind() failed: 98, Address already in use
ej-users-control: ej-users is not running

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 07 February 2014, 11:27

С какими опциями был запущен configure?

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 07 February 2014, 12:45

cher wrote:С какими опциями был запущен configure?

Code: Select all

#!/bin/bash
./configure --prefix=/home/artemon/ejudge/ --enable-contests-home-dir=/home/artemon/judges --with-httpd-cgi-bin-dir=/usr/www/cgi-bin --with-httpd-htdocs-dir=/var/www/ --enable-ajax --enable-hidden-server-bins --enable-local-dir=/var/lib/ejudge --enable-charset=utf-8
os ubuntu 13.10 x32

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 07 February 2014, 13:28

Проверьте, создался ли каталог /var/lib/ejudge, с какими правами, какие файлы находятся в /var/lib/ejudge/sockets.

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 07 February 2014, 13:51

/var/lib/ejudge

содержимое:
compile, sockets, super-run

права:
текущий пользователь
остальные: доступ к файлам


/var/lib/ejudge/sockets

содержимое:

super-serve
-- пусто

userlist
--пусто

права:
текущий пользователь
остальные: доступ к файлам


/var/lib/ejudge
файлов нет, только каталоги (папки)

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 07 February 2014, 14:09

Может selinux включен?

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 07 February 2014, 14:13

cher wrote:Может selinux включен?
как это определить?

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 11 February 2014, 15:13

Посмотрите настройки в файле /etc/selinux/config

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 11 February 2014, 21:24

cher wrote:Посмотрите настройки в файле /etc/selinux/config
Этот файл отсутствует в данной директории.

содержание каталога:

-selenux
--semanage.conf

содержание файла semanage.conf:

module-store = direct

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 13 February 2014, 22:07

что находится в файле /home/artemon/judges/data/ejudge.xml?

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 13 February 2014, 22:13

cher wrote:что находится в файле /home/artemon/judges/data/ejudge.xml?

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<!-- Generated by ejudge-setup, version 2.3.29 -->
<!-- Generation date: 2014/02/06 17:08:10 -->
<config l10n="yes">

  <userdb_file>/home/artemon/judges/data/db/userlist.xml</userdb_file>
  <full_cgi_data_dir>/usr/www/cgi-bin/../cgi-data</full_cgi_data_dir>
  <compile_home_dir>/home/artemon/judges/compile</compile_home_dir>
  <serialization_key>22723</serialization_key>
  <var_dir>/home/artemon/judges/var</var_dir>
  <userlist_log>ej-users.log</userlist_log>
  <super_serve_log>ej-super-server.log</super_serve_log>

  <email_program>/usr/sbin/sendmail</email_program>
  <register_url>http://192.168.88.2/ejudge/cgi-bin/register</register_url>
  <register_email>artemon@server</register_email>
  <server_name>Ejudge contest server at server</server_name>
  <server_name_en>Ejudge contest server at server</server_name_en>
  <server_main_url>http://192.168.88.2/ejudge</server_main_url>
  <caps_file>capabilities.xml</caps_file>
  <user_map>
    <map system_user="artemon" ejudge_user="ejudge"/>
  </user_map>
  <caps>
    <cap login="ejudge">
      MASTER_LOGIN,
      JUDGE_LOGIN,
      LIST_USERS,
      CREATE_USER,
      GET_USER,
      EDIT_USER,
      DELETE_USER,
      PRIV_EDIT_USER,
      PRIV_DELETE_USER,
      DUMP_USERS,
      EDIT_CONTEST,
      CONTROL_CONTEST,
      EDIT_PASSWD,
      PRIV_EDIT_PASSWD,
      RESTART,
    </cap>
  </caps>

  <default_clardb_plugin>mysql</default_clardb_plugin>
  <default_rundb_plugin>mysql</default_rundb_plugin>
  <plugins>
    <plugin type="nsdb" name="files">
       <config>
         <data_dir>/home/artemon/judges/data/new-serve-db</data_dir>
       </config>
    </plugin>
    <plugin type="common" name="mysql" load="yes">
      <config>
        <password_file>mysql_password</password_file>
        <database>ejudge</database>
      </config>
    </plugin>
    <plugin type="uldb" name="mysql" load="yes" default="yes">
      <config/>
    </plugin>
    <plugin type="cldb" name="mysql" load="yes">
      <config/>
    </plugin>
    <plugin type="rldb" name="mysql" load="yes">
      <config/>
    </plugin>
  </plugins>

  <!-- The default value is built-in -->
  <!--<socket_path>/var/lib/ejudge/sockets/userlist</socket_path>-->
  <!-- The default value is built-in -->
  <!--<super_serve_socket>/var/lib/ejudge/sockets/super-serve</super_serve_socket>-->
  <!-- The default value is built-in -->
  <!--<contests_dir>/home/artemon/judges/data/contests</contests_dir>-->
  <!-- The default value is built-in -->
  <!--<l10n_dir>/home/artemon/ejudge/share/locale</l10n_dir>-->
  <!-- The default value is built-in -->
  <!--<script_dir>/home/artemon/ejudge/libexec/ejudge</script_dir>-->
  <!-- The default value is built-in -->
  <!--<run_path>/home/artemon/ejudge/libexec/ejudge/bin/ej-run</run_path>-->
  <!-- The default value is built-in -->
  <!--<charset>utf-8</charset>-->
  <!-- The default value is built-in -->
  <!--<config_dir>/home/artemon/judges/data</config_dir>-->
  <!-- The default value is built-in -->
  <!--<contests_home_dir>/home/artemon/judges</contests_home_dir>-->
</config>

cher
Posts:1153
Joined:13 March 2004, 17:00
Contact:

Re: проблема с запуском

Post by cher » 13 February 2014, 22:26

Попробуйте вручную запустить

Code: Select all

/home/artemon/ejudge/libexec/ejudge/bin/ej-users -C /home/artemon/judges /home/artemon/judges/data/ejudge.xml
затем из другой консоли

Code: Select all

/home/artemon/ejudge/libexec/ejudge/bin/ej-super-server -C /home/artemon/judges /home/artemon/judges/data/ejudge.xml

kpik2008
Posts:17
Joined:06 February 2014, 13:53

Re: проблема с запуском

Post by kpik2008 » 13 February 2014, 22:34

Code: Select all

/home/artemon/ejudge/libexec/ejudge/bin/ej-super-server -C /home/artemon/judges /home/artemon/judges/data/ejudge.xml
Thu Feb 13 21:33:40 2014:info:ej-super-server 2.3.29, compiled Thu Feb  6 17:03:04 2014
Thu Feb 13 21:33:40 2014:error:bind() failed: 98, Address already in use
походу порт чем-то занят...

Post Reply