Trouble with migrating OTRS 3.0.4

Moderator: crythias

Locked
MHz
Znuny newbie
Posts: 4
Joined: 10 Oct 2012, 12:12
Znuny Version: 3.0.4

Trouble with migrating OTRS 3.0.4

Post by MHz »

I am migrating OTRS ITSM 3.0.4 to another server. So Icopied my configs, and database and ofcourse dowloaded OTRS 3.0.4. Everything works fine, accept the package manager, it returns the following error:

ERROR: Need write permission in OTRS home
Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !!!

I did already use that with otrs user/group otrs and http user/group www-data (Im on the latest Ubuntu x64 LTS). I've read somewhere that in version 2, securemode was active by default, So I checked to see if securemode was active by default on 3.0.4, but it wasnt. Any ideas what might be wrong?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Trouble with migrating OTRS 3.0.4

Post by jojo »

check the owner of the /opt/otrs directory
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
MHz
Znuny newbie
Posts: 4
Joined: 10 Oct 2012, 12:12
Znuny Version: 3.0.4

Re: Trouble with migrating OTRS 3.0.4

Post by MHz »

The owner is root (group and user) should www-data be owner? My otrs user is 'otrs'.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Trouble with migrating OTRS 3.0.4

Post by jojo »

should be otrs as owner and www-data as group
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
MHz
Znuny newbie
Posts: 4
Joined: 10 Oct 2012, 12:12
Znuny Version: 3.0.4

Re: Trouble with migrating OTRS 3.0.4

Post by MHz »

It still gives me the same error. Permissions are as follows:
lrwxrwxrwx 1 otrs www-data 15 Oct 9 16:16 otrs -> /opt/otrs-3.0.4
drwxr-xr-x 8 otrs www-data 4096 Oct 10 10:02 otrs-3.0.4
Inside OTRS folder:
-rw-r--r-- 1 otrs www-data 183500 Dec 10 2010 ARCHIVE
drwxr-xr-x 4 otrs www-data 4096 Oct 10 12:05 bin
-rw-r--r-- 1 otrs www-data 288617 Dec 10 2010 CHANGES
-rw-r--r-- 1 otrs www-data 36386 Oct 10 10:02 Config.tar.gz
-rw-r--r-- 1 otrs www-data 34520 Feb 26 2009 COPYING
-rw-r--r-- 1 otrs www-data 5734 Jun 9 2010 COPYING-Third-Party
-rw-r--r-- 1 otrs www-data 2402 Jun 23 2009 CREDITS
drwxr-xr-x 2 otrs www-data 4096 Dec 10 2010 Custom
drwxr-xr-x 4 otrs www-data 4096 Dec 10 2010 doc
-rw-r--r-- 1 otrs www-data 5736 Nov 23 2010 INSTALL
-rw-r--r-- 1 otrs www-data 1132 Feb 16 2009 INSTALL.RedHat
-rw-r--r-- 1 otrs www-data 1312 Feb 16 2009 INSTALL.SuSE
drwxr-xr-x 8 otrs www-data 4096 Oct 10 12:05 Kernel
-rw-r--r-- 1 otrs www-data 8217 Nov 12 2010 README
-rw-r--r-- 1 otrs www-data 4426 Nov 9 2009 README.database
-rw-r--r-- 1 otrs www-data 4725 Nov 11 2009 README.webserver
-rw-r--r-- 1 otrs www-data 99 Dec 10 2010 RELEASE
drwxr-xr-x 6 otrs www-data 4096 Dec 10 2010 scripts
-rw-r--r-- 1 otrs www-data 7392 Sep 27 2009 TODO
-rw-r--r-- 1 otrs www-data 7059 Dec 7 2010 UPGRADING
drwxr-xr-x 12 otrs www-data 4096 Oct 10 12:05 var
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Trouble with migrating OTRS 3.0.4

Post by jojo »

webserver group will need write permisson on the directory also
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
MHz
Znuny newbie
Posts: 4
Joined: 10 Oct 2012, 12:12
Znuny Version: 3.0.4

Re: Trouble with migrating OTRS 3.0.4

Post by MHz »

Thank you! It works like a charm now. Any idea why the otrs.SetPermissions.pl did not set this permission?
Locked