Can't remove file permission denied

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Can't remove file permission denied

Post by aph »

Hello,

I'm getting the following error Can't remove file D:/otrs/OTRS/var/tmp/CacheFileStorable/DynamicField/5/3/538867e23daf5723d184469a0e16613b. Is it possible to run the setPermissions.pl on windows? How can I determine the values of the following variables.

Code: Select all

Usage: otrs.SetPermissions.pl
    [--otrs-user=<OTRS_USER>]
    [--web-user=<WEBSERVER_USER>]
    [--otrs-group=<OTRS_GROUP>]
    [--web-group=<WEB_GROUP>]
    [--admin-user=<ADMIN_USER>]
    [--admin-group=<ADMIN_GROUP>]
    [--admin-group-writable]
    [--secure]  (paranoid mode: all files readonly, does not work with PackageManager)
    [--not-root]
    <OTRS_HOME>
Thanks a lot
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Can't remove file permission denied

Post by Rooobaaat »

Set Permissions to FULL for Everyone. It should solve your issue :)
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Can't remove file permission denied

Post by aph »

Unfortunately, it doesn't solve my problem. A new ticket is not created.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can't remove file permission denied

Post by crythias »

aph wrote:A new ticket is not created.
This is not related to cache.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Can't remove file permission denied

Post by aph »

I'm not sure if the problem is due to a script in the code. The script shows/hides dynamic fields based on the value of other dynamic fields.
Below is the content of my script

Code: Select all

function queueFields() {
            $("[id^=DynamicField]").parent().addClass( 'Hidden' );
            $("[id^=LabelDynamicField]").parent().addClass('Hidden');
        }
            $('#Dest').bind('change', function (Event) {
                Core.AJAX.FormUpdate($('#NewEmailTicket'), 'AJAXUpdate', 'Dest', ['TypeID', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' $Data{"DynamicFieldNamesStrg"}]);
            switch ( $('#Dest').val() ) {
                    case "6\|\|CRM": // need to slash escape the pipes. Also, need to be in numerical order
                        queueFields();
                        $('#DynamicField_Product').parent().removeClass( 'Hidden' );
                        $('#LabelDynamicField_Product').parent().removeClass( 'Hidden' );
						$('#DynamicField_MasterSlave').parent().removeClass( 'Hidden' );
                        $('#LabelDynamicField_MasterSlave').parent().removeClass( 'Hidden' );
						$('#DynamicField_Kategorie1').parent().removeClass( 'Hidden' );
                        $('#LabelDynamicField_Kategorie1').parent().removeClass( 'Hidden' );
                    break;
                    default:
                        queueFields();

                }
            })
			
			$('#DynamicField_Kategorie1').bind('change', function (Event) {
                Core.AJAX.FormUpdate($('#NewEmailTicket'), 'AJAXUpdate', 'DynamicField_Kategorie1', ['TypeID', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' $Data{"DynamicFieldNamesStrg"}]);
            switch ( $('#DynamicField_Kategorie1').val() ) {
                    case "Benutzerverwaltung":		
#                        queueFields();

                        $('#DynamicField_Kategorie2').parent().removeClass( 'Hidden' );
                        $('#LabelDynamicField_Kategorie2').parent().removeClass( 'Hidden' );
						
                    break;
					case "Sonstiges":
						$('#DynamicField_Kategorie2').parent().addClass( 'Hidden' );
                        $('#LabelDynamicField_Kategorie2').parent().addClass( 'Hidden' );
						
					break;
                    default:
                        queueFields();

                }
			
            });
What could be wrong with the script? When I click on 'send email' button, 'nothing happens'. The form is not submitted and no new ticket is created
Last edited by aph on 16 Sep 2014, 09:55, edited 2 times in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can't remove file permission denied

Post by crythias »

Please start over with the real problem, what you're trying to fix, how it's evidencing itself, how to reproduce, etc.

You started this thread with a completely different issue that is unrelated to what you're actually trying to fix.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Can't remove file permission denied

Post by aph »

Opening a new thread for a new problem. viewtopic.php?f=62&t=26496
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked