Author Topic: [SOLVED]No access to usercorner in Zentyal 2.2  (Read 3165 times)

robb

  • Guest
[SOLVED]No access to usercorner in Zentyal 2.2
« on: May 21, 2012, 02:46:48 pm »
I just installed usercorner module in Zentyal 2.2 to be able to change passwords by the users themselves. However, when I try to open the usercornerpage at https://<domain>:8888 I get the following message:
Quote
Forbidden

You don't have permission to access / on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

In the dashboard userscorner shows as not started:


however, I did start usercorner pressing the button. Afterwards I received configmation that the service was restarted successfully. I also (re)started the service through SSH (/etc/init.d/zentyal usercorner (re)start

When checking from commandline I see the following:
Quote
root@vps1075:~# /etc/init.d/zentyal usercorner status
EBox: status module usercorner:         [ STOPPED ]
root@vps1075:~# /etc/init.d/zentyal usercorner start
 * Restarting Zentyal module: usercorner                                 [ OK ]
root@vps1075:~# /etc/init.d/zentyal usercorner status
EBox: status module usercorner:         [ STOPPED ]

Even after starting the service is still stopped:
I added usercorner error and access logs.

Any ideas where to look further?

/edit: I did allow usercorner in firewall settings
« Last Edit: May 27, 2012, 09:06:23 pm by robb »

christian

  • Guest
Re: No access to usercorner in Zentyal 2.2
« Reply #1 on: May 21, 2012, 03:02:44 pm »
any conflict because another process locks same network port?

** edit **: sorry I didn't noticed you attached logs
« Last Edit: May 21, 2012, 03:04:46 pm by christian »

robb

  • Guest
Re: No access to usercorner in Zentyal 2.2
« Reply #2 on: May 21, 2012, 03:15:26 pm »
usercorner is running on standard port: 8888
As far as I know there is no other service that uses that port on a Zentyal server.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: No access to usercorner in Zentyal 2.2
« Reply #3 on: May 26, 2012, 09:01:59 pm »
Robb,
Check this post for a possible solution   http://forum.zentyal.org/index.php/topic,10114.msg42372.html#msg42372

robb

  • Guest
Re: No access to usercorner in Zentyal 2.2
« Reply #4 on: May 27, 2012, 12:05:08 am »
ebox-usercorner has /var/lib/ebox-usercorner as a homedir:
Quote
/var/lib# awk -F: -v v="ebox-usercorner" '{if ($1==v) print $6}' /etc/passwd

response:
/var/lib/ebox-usercorner/

rights on ebox-usercorner:
Quote
drwxr-xr-x  5 ebox-usercorner ebox-usercorner 4096 2012-05-21 15:13 zentyal-usercorner
looks ok? any other suggestions?
« Last Edit: May 27, 2012, 12:07:36 am by robb »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: No access to usercorner in Zentyal 2.2
« Reply #5 on: May 27, 2012, 05:00:20 pm »
It should be zentyal-usercorner not ebox-usercorner  look closer.   Edit /etc/passwd so that ebox-usercorner  has a home directory of /var/lib/zentyal-usercorner  and Bob's your uncle it will work.


robb

  • Guest
Re: No access to usercorner in Zentyal 2.2
« Reply #6 on: May 27, 2012, 08:49:33 pm »
That did the trick... :)
* robb slaps himself not noticing the difference between ebox-usercorner and zentyal-usercorner  :-\

for the non techies:
- open a terminal console
- type: 'sudo nano /etc/passwd' (without quotes)
find the line 'ebox-usercorner:x:xxx:xxx::/var/lib/ebox-usercorner/:/bin/false'

change that line in: 'ebox-usercorner:x:xxx:xxx::/var/lib/zentyal-usercorner/:/bin/false'
to save the file: 'ctrl o' (hit control o at the same time)
to exit nano editor: 'ctrl w' (hit control and w at the same time)

restart zentyal usercorner module:
'sudo /etc/init.d/zentyal usercorner restart' and hit return (and Bob's your uncle... :P)

after that you can enter the usercorner by going to https://<address of zentyal>:8888
port 8888 is the default port. If you have ever changed that use the changed port number.
« Last Edit: May 27, 2012, 09:04:57 pm by robb »