buddycloud / buddycloud.com

buddycloud static site generation and gh_pages
http://buddycloud.com
Other
18 stars 18 forks source link

Missing properties for the prosody's configuration file #37

Open Clem69B opened 10 years ago

Clem69B commented 10 years ago

During my attempts to install buddycloud server, I noticed the lack of two component definitions in the configuration file of prosody:

Component "channels.EXAMPLE.com"
        component_secret        = "tellnoone"

Component "topics.EXAMPLE.com"
        component_secret        = "tellnoone"

These definitions are described on https://buddycloud.org/wiki/Install_Java_channel_server#Prosody_configuration

Without these definitions, the server fail to start.

imaginator commented 10 years ago

Odd

Can you confirm that https://github.com/buddycloud/buddycloud-server-java/blob/master/configuration.properties.example#L6 is similar?

Clem69B commented 10 years ago

There is an extract of my configuration:

server.domain=bazin-fr.org
server.domain.channels=buddycloud.bazin-fr.org
server.domain.topics=topics.bazin-fr.org

It seems that is the same...

Clem69B commented 10 years ago

This is the prosody log entries when I try to start the buddycloud java server with the prosody.cfg.lua that you provide on the install page:

Mar 20 17:12:41 jcp974d90       info    Incoming Jabber component connection
Mar 20 17:12:41 jcp974d90       info    Disconnecting component, <stream:error> is: <stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>topics.bazin-fr.org does not match any configured external components</text></stream:error>
Mar 20 17:12:41 jcp974d90       info    component disconnected: nil (stream error)

And the buddycloud log entries:

2014-03-20 17:12:41,179 [main] INFO  org.buddycloud.channelserver.ChannelsEngine - XMPP Component started. We are 'buddycloud.bazin-fr.org' and ready to accept packages.
2014-03-20 17:12:41,209 [main] ERROR org.buddycloud.channelserver.Main - Failed during initialization.
org.xmpp.component.ComponentException: host-unknown
        at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:209)
        at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:206)
        at org.buddycloud.channelserver.TopicsComponent.run(TopicsComponent.java:29)
        at org.buddycloud.channelserver.Main.startComponents(Main.java:38)
        at org.buddycloud.channelserver.Main.main(Main.java:12)

When I add the topics component and the channels component, the server starts normally.

imaginator commented 10 years ago

Can I recommend you remove all mentions of the topics component. Both in the Prosody server and BC server. Let's get that working first then we can start with organising a topics domain.

On 20 March 2014 17:22, Clément B. notifications@github.com wrote:

This is the prosody log entries when I try to start the buddycloud java server with the prosody.cfg.lua that you provide on the install page:

Mar 20 17:12:41 jcp974d90 info Incoming Jabber component connection Mar 20 17:12:41 jcp974d90 info Disconnecting component, stream:error is: stream:errortopics.bazin-fr.org does not match any configured external components/stream:error Mar 20 17:12:41 jcp974d90 info component disconnected: nil (stream error)

And the buddycloud log entries:

2014-03-20 17:12:41,179 [main] INFO org.buddycloud.channelserver.ChannelsEngine - XMPP Component started. We are 'buddycloud.bazin-fr.org' and ready to accept packages. 2014-03-20 17:12:41,209 [main] ERROR org.buddycloud.channelserver.Main - Failed during initialization. org.xmpp.component.ComponentException: host-unknown at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:209) at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:206) at org.buddycloud.channelserver.TopicsComponent.run(TopicsComponent.java:29) at org.buddycloud.channelserver.Main.startComponents(Main.java:38) at org.buddycloud.channelserver.Main.main(Main.java:12)

When I add the topics component and the channels component, the server starts normally.

— Reply to this email directly or view it on GitHubhttps://github.com/buddycloud/buddycloud.com/issues/37#issuecomment-38188045 .

Simon Tennant | buddycloud.com | +49 17 8545 0880 | office hours: goo.gl/tQgxP

Clem69B commented 10 years ago

Without topics component, the server starts normally. But the channels component is still manually added in the Prosody configuration file.

The purpose of this issue is to highlight the difference between the declaration of components in the prosody configuration file and the BC configuration file that you propose on the install page of buddycloud.com

My knowledge about the internal workings of BC server is very limited. I just try to install it on a personal server. I follow the installation guide point by point, and I report to you the problems I encountered. In fact, I'm a beta tester for your installation guide !

So I hope that my issues are useful, and I don't expect some help with this way (but any suggestions are welcomed). Sorry per advance if this issue seems to be useless.

imaginator commented 10 years ago

These are super useful! It's really useful to get this feedback. I think it makes sense to:

  1. add topics into the Prosody config. (https://github.com/buddycloud/buddycloud.com/commit/a7a992b0bafec6c80ec138b53511f95e91ce7829#diff-9dd0d18bd23a7d69250ad8e85938ce06)
  2. actually that's all.

Does this make sense?

Clem69B commented 10 years ago

I'm really sorry, but I think I report a bad issue... In fact, I was misled by the BC log entries. I thought the server fails to start, but it is active despite the error. Thus, the old configuration files work, but they cause error messages that can be misleading. A simple note on the guide to warn users may be useful to avoid confusion.

To be forgiven, here is a better information: You can add the dbconfig-common package in the dependencies list during the BC server installation. I propose: apt-get install postgresql postgresql-client postgresql-contrib openjdk-6-jre dbconfig-common The buddycloud-server-java*.deb needs it.

imaginator commented 10 years ago

Fixed that. Thanks!