Can't remove shm for log: Invalid argument

Moderator: DenisBY

Locked
matagou
Znuny newbie
Posts: 4
Joined: 04 Nov 2011, 23:51
Znuny Version: 3.0.10
Real Name: Andrei M.

Can't remove shm for log: Invalid argument

Post by matagou »

Добрый день,

после установки OTRS из портов FreeBSD 8.2, при открытие http://localhost/otrs/installer.pl выводит ошибка:

Code: Select all

Software error:
Invalid argument at /usr/local/otrs//Kernel/System/Log.pm line 225.
For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
В /var/log/messages следующие записи:

Code: Select all

OTRS-CGI-10[1605]: [Error][Kernel::System::Log::CleanUp][Line:250]: Can't remove shm for log: Invalid argument
Система:

Code: Select all

www# uname -a
FreeBSD www.otrs 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Nov  4 21:43:37 EET 2011     root@www.otrs:/usr/obj/usr/src/sys/otrsCONF  i386
Пожалуйста советуйте в какую сторону копать.

Спасибо
alexus
Znuny wizard
Posts: 380
Joined: 20 Sep 2010, 16:54
Znuny Version: OTRS 6 CE
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: Can't remove shm for log: Invalid argument

Post by alexus »

А какой там аргумент в этом файле? Еще я бы проверил права доступа на все папки и файлы.
Alexey Yusov

Production: OTRS CE ITSM 6.0.28 on CentOS 7 + Apache 2.4 + MariaDB 10.4.13 + Radiant Customer Portal

Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
((OTRS)) Community Edition - what next?
matagou
Znuny newbie
Posts: 4
Joined: 04 Nov 2011, 23:51
Znuny Version: 3.0.10
Real Name: Andrei M.

Re: Can't remove shm for log: Invalid argument

Post by matagou »

Права доступа:

Code: Select all

otrs.local# ls -l /usr/local/otrs/
total 18
-rw-rw-r--   1 otrs  www  1235 Nov  3 01:49 .fetchmailrc.dist
-rw-rw-r--   1 otrs  www  1708 Nov  3 01:49 .mailfilter.dist
-rw-rw-r--   1 otrs  www  1943 Nov  3 01:49 .procmailrc.dist
drwxrwxr-x   7 otrs  www   512 Nov  3 01:49 Kernel
-rw-rw-r--   1 otrs  www   101 Nov  3 01:49 RELEASE
drwxrwxr-x   4 otrs  www  2048 Nov  3 01:49 bin
drwxrwxr-x   5 otrs  www  3072 Nov  3 01:49 scripts
drwxrwxr-x  12 otrs  www   512 Nov  3 01:21 var
Пользователь otrs:

Code: Select all

otrs.local# id otrs
uid=121(otrs) gid=121(otrs) groups=121(otrs),80(www)
Apache22 запущен под пользователем www.

Это кусок кода который выдаёт ошибку
sub CleanUp {
my ( $Self, %Param ) = @_;

return 1 if !$Self->{IPC};

# remove the shm
if ( !shmctl( $Self->{Key}, 0, 0 ) ) {
$Self->Log(
Priority => 'error',
Message => "Can't remove shm for log: $!",
);
return;
}

return 1;
}
alexus
Znuny wizard
Posts: 380
Joined: 20 Sep 2010, 16:54
Znuny Version: OTRS 6 CE
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: Can't remove shm for log: Invalid argument

Post by alexus »

Alexey Yusov

Production: OTRS CE ITSM 6.0.28 on CentOS 7 + Apache 2.4 + MariaDB 10.4.13 + Radiant Customer Portal

Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
((OTRS)) Community Edition - what next?
matagou
Znuny newbie
Posts: 4
Joined: 04 Nov 2011, 23:51
Znuny Version: 3.0.10
Real Name: Andrei M.

Re: Can't remove shm for log: Invalid argument

Post by matagou »

Я поднял систему на VMware, с теми же параметрами: FreeBSD 8.2 + Apache22 + Perl 5.10 + OTRS 3. Bcё собранно из портов. Bcё работает на VMware - при открытье в браузере http://otrs.localdomain/otrs/installer.pl

На тестовой машине на VMware я заметил что shared memory владеет пользователь www (под которым запускается и Apache22 ), а на реальной машине, то что с проблемой - shared memory владеет пользователь root.

Как можно поменять пользователя shared memory?
alexus
Znuny wizard
Posts: 380
Joined: 20 Sep 2010, 16:54
Znuny Version: OTRS 6 CE
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: Can't remove shm for log: Invalid argument

Post by alexus »

Этот вопрос явно не сюда :-).
Alexey Yusov

Production: OTRS CE ITSM 6.0.28 on CentOS 7 + Apache 2.4 + MariaDB 10.4.13 + Radiant Customer Portal

Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
((OTRS)) Community Edition - what next?
Locked