Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: newburns on January 31, 2012, 06:09:55 AM
-
I have an ejabberd server running, and I use Pidgin and Trillian as clients. Everything works as expected, however, I cannot access the admin page for ejabberd.
I'm not sure what log files I can upload to assist, but what I am trying to do is add a shared roster
:::::Taken from ejabberd website:::::
Example 1: everybody can see everybody else
Login on the web interface and go to 'Virtual Hosts' -> 'server' -> 'Shared Roster'
Create a new Shared Roster, with identifier 'everybody'. Click on 'Add new'.
Fill the formulary with this:
Name: EveryBody
Description: This group contains everybody
Members: @all@
Displayed Groups: everybody
Click on Submit.
When any user logins, he will have a new group in his roster, called EveryBody, and containing all the other users registered on the server.
Check in this screenshot how the group must look.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Furthermore, Trillian works awesome, but I was wondering if anyone had suggestions to something more professional. Something similar to MessagePal.
-
I have been trying to do some troubleshooting to no avail.
Where does ejabberd install? Where is the admin file located>
I did rpm -qf ejabberd
and it returned error: file /root/ejabberd: No such file or directory
rpm -q ejabberd
comes back as
ejabberd-2.1.10-1.el5
Am I missing Something?
Should I try something else to troubleshoot? I really need the admin page so I can make shared rosters. Again my ejabberd is up and running using trillian, pidgin, and yitzs.
Any help is appreciated
-
newburns
Everything works as expected....
........ however, I cannot access the admin page for ejabberd.
That does not sound like "everything is working as expected" !
Did you follow the wiki article here
http://wiki.contribs.org/Ejabberd
There are some pretty specific steps to enable & use the admin page.
Have you followed those steps ? ....and rechecked what you did ?
-
Yes, I did it according to wiki (SME 8) install. Everything as far as the service works, so the installation went through. I activated my admin account first. Then enabled the admin web page in the Server-manager. I get a 404 error when trying to access the web page. Then in another browser I get the following message:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
I am going to try and set up a test server and install on fresh machine to see if that helps, but I would like to figure this out beforehand..
-
newburns
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Are you using Chrome as the web browser ?
Try another browser anyway eg IE or Firefox and see if you get the same error.
Also did you open the required ports, depending on your network layout ?
-
I believe I opened the proper ports.
db configuration get ejabberd
service|Domain|mtrosemedia.tk|Notify|disabled|Register|smeusers|TCPPorts|5222,5223,5269,5280|WebAdmin|enabled|WelcomeSubject|Welcome to City of Refuge IM Service|WelcomeText|Please note that this IM service provided by Mt Rose COGIC is only available locally, and cannot be accessed by the internet. Please speak with your network administrator for internet accessibility.|XMPPAccess|notls|access|public|status|enabled
I tried in other browsers to no avail.
-
I believe I opened the proper ports.
db configuration get ejabberd
Next time please use show over get as it will print out your configuration in a more forumfriendly and readable format.
service|Domain|mtrosemedia.tk|Notify|disabled|Register|smeusers|TCPPorts|5222,5223,5269,5280|WebAdmin|enabled|WelcomeSubject|Welcome to City of Refuge IM Service|WelcomeText|Please note that this IM service provided by Mt Rose COGIC is only available locally, and cannot be accessed by the internet. Please speak with your network administrator for internet accessibility.|XMPPAccess|notls|access|public|status|enabled
Did you also update the remote access settings using:
signal-event remote-access
Reading from the database setting this service is only for internal use, if that is that is the case you should not have to worry about port settings IIRC, as nothing is being filtered or blocked by default on the LAN side.
-
Is it possible that it install some files to /root?
It shows the error for file /root/ejabberd.
Usually, if I do a wget aand localinstall, I will delete all files associated with that .rpm from root.
Is it possible?
Where does it install to, or how can I find out?
Is it possible to reinstall to install the missing files, without corrupting or altering the current database or settings?
-
newburns
Based on this
http://wiki.contribs.org/Ejabberd#Ejabberd_command_line_administration
it is installed to
/opt/ejabberd
-
I don't have /opt/ejabberd
so, I suppose something was removed, and it is possible it was me who did it. The server has been running for a year now, so I don't put it pass me being a year ago. If I reinstall according to wiki for SME 8, will that remove or replace current files and settings already in my ejabberd?
-
newburns
I'm, not sure uninstalling is the most appropriate course of action, but if you want to do that then
Backup server first and note wiki info re ejabberd backup & restore in case needed later.
You might also check if ejabberd is installed in an ibay ???
Check if you have smeserver-ejabberd installed
rpm -q smeserver-ejabberd
I would uninstall first
rpm -e ejabberd
rpm -e smeserver-ejabberd
then re-install as per wiki
You are using sme8 so did you or have you enable(d) the sme7 contribs repo to pick up smeserver-ejabberd ?
See the sme8 wiki for details
-
rpm -q ejabberd
comes back as
ejabberd-2.1.10-1.el5
rpm -q smeserver-ejabberd
smeserver-ejabberd-2.0.1-18.el4.sme
Don't know how that happens with two ejabberd running.
I can't even find 2.1.10-1.el5 in repository. I know I installed from rpm because I don't know how to install any other way.
It seems it installs with smeserver-ejabberd.
I do have a lot of repos enabled. How can I list the ones I have enabled, or do I just have to remember what I have done so far? Also, I will try to do the backup method with AFFA. I have a running backing of my complete SME, I will just need to see if I can restore that particullar file from AFFA, or if I would need to create a new job just for that file.
Thanks
-
newburns
Both ejabberd and smeserver-ejabberd appear to be installed on your system.
ejabberd rpm is the actual program or package that you would use to install on any Linux server.
smeserver-ejabberd is the program or package that integrates ejabberd into smeserver.
So there are NOT two "versions" of ejabberd running.
The packages are in the sme 7 smecontribs and smeaddons repositories.
You can run the install command again to see if any dependency rpms are picked up (ie missing on your system & in need of installing)
On my sme7.5.1 updated system I got
yum install --enablerepo=smecontribs smeserver-ejabberd
Installing:
smeserver-ejabberd noarch 2.0.1-18.el4.sme smecontribs 56 k
Installing for dependencies:
ejabberd i386 2.0.1-4.el4.sme smecontribs 740 k
erlang i386 R11B-2.6.el4 smeaddons 36 M
tcl i386 8.4.7-4.el4 smeaddons 898 k
tk i386 8.4.7-3.el4_6.1 smeaddons 839 k
unixODBC i386 2.2.11-1.RHEL4.1 smeaddons 829 k
To list the repos do
db yum_repositories show |more
press Space or Enter to scroll down the listing
To selectively list one repo do
db yum_repositories show reponame
eg
db yum_repositories show base
db yum_repositories show smecontribs
and so on
Look for the repos where
status=enabled
these are the active ones that packages will be automatically updated from
Please look at and learn about db, see the db command tutorial Howto.
It is so easy to use and reasonably simple to understand and grasp it's usage.
It will unlock SME server for you.
I do not think backing up and restoring is going to resolve your ejabberd issues.
You really need to troubleshoot ejabberd and its usage somewhat further.
I am not familiar with ejabberd as I do not use it, and therefore do not want to commit my time to sorting out your issues with that program, someone who knows ejabberd should come in here and assist.
-
newburns
If you do a search on these forums people have had admin access problems before.
As it is not working as expected, then perhaps you should submit a bug (against the contrib).
You might get the attention of the contrib author.
Also look in /etc/ejabberd/..., and look at log files eg ejabberd log file, and httpd access log files,
maybe there are clues there.