URL messed up and can't access

Moderator: crythias

Post Reply
solidblueliquid
Znuny newbie
Posts: 9
Joined: 19 Aug 2019, 10:26
Znuny Version: 6.0
Real Name: Nathan
Company: Solidblueliquid

URL messed up and can't access

Post by solidblueliquid »

HI Everyone,

I deployed a change to the system and the FQDN has changed to http://host.example.com, how would i ammed this in the database to get the address working again?
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: URL messed up and can't access

Post by zzz »

Hello Nathan,

What changes have you made? Just messing with the OTRS config FQDN shouldn't be the cause.

You can change config values with a shell command, for example:

Code: Select all

su -c "/opt/otrs/bin/otrs.Console.pl Admin::Config::Update --setting-name FQDN --value 'newhost.example.com'" -s /bin/bash otrs
Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
solidblueliquid
Znuny newbie
Posts: 9
Joined: 19 Aug 2019, 10:26
Znuny Version: 6.0
Real Name: Nathan
Company: Solidblueliquid

Re: URL messed up and can't access

Post by solidblueliquid »

That hasn't worked, i tried;

Code: Select all

[root@otrs Files]# su -c "/opt/otrs/bin/otrs.Console.pl Admin::Config::Update --setting-name FQDN --value 'support.solidblueit.co.uk'" -s /bin/bash otrs
Updating setting value...

Done.
[root@otrs Files]#
when you try and go to support.solidblueit.co.uk it just redirects to host.example.com, i tried the customer url as well and it does the same help.solidblueit.co.uk

I can't remember exactly what was changed but the FQDN was the only thing i can think off... is there a way i I can search for the host.example.com and update it to support.solidblueit.co.uk ?
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: URL messed up and can't access

Post by zzz »

Looks like you've enabled 'LoginURL', which will redirect your agent login screen (default: /otrs/index.pl) :lol:

I am not sure if you can reset a config with a command, but you can fool perl by setting the value to '0', like this:

Code: Select all

su -c "/opt/otrs/bin/otrs.Console.pl Admin::Config::Update --setting-name LoginURL --value 0" -s /bin/bash otrs
After your login, search for the config 'LoginURL' and reset that & 'CustomerPanelLoginURL' by pressing 'Reset setting', and deploy the changes.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
solidblueliquid
Znuny newbie
Posts: 9
Joined: 19 Aug 2019, 10:26
Znuny Version: 6.0
Real Name: Nathan
Company: Solidblueliquid

Re: URL messed up and can't access

Post by solidblueliquid »

That worked but the setting you told me to search for where normal... so i think i'm okay!
solidblueliquid
Znuny newbie
Posts: 9
Joined: 19 Aug 2019, 10:26
Znuny Version: 6.0
Real Name: Nathan
Company: Solidblueliquid

Re: URL messed up and can't access

Post by solidblueliquid »

Okay so not working quite as I would like, the support address works but the help.solidblueit.co.uk doesn't just gives me redirect errors... I can't see anything in the log files so not sure whats causing this.

Any help would be appreciated
solidblueliquid
Znuny newbie
Posts: 9
Joined: 19 Aug 2019, 10:26
Znuny Version: 6.0
Real Name: Nathan
Company: Solidblueliquid

Re: URL messed up and can't access

Post by solidblueliquid »

I'm getting this loop;

RequestedURL=RequestedURL%3D
Post Reply