Hi Matt,
I just reviewed the code for 1.2 and have to admit that my memories were
incorrect. 1.2 *does* know different organizations, but it doesn't define a
configuration way of specifying them. A default organization gets created that
uses the org.opencastproject.server.url property for matching, so as long as
that url doesn't match the requests (due to load balancers / proxying), things
won't work.
To fix the issue, you may add these lines to
OrganizationDirectoryServiceImpl, line 85 ff:
public Organization getOrganization(URL url) throws NotFoundException {
// If there is only one organization defined, it's the default one
// that we want to be using regarless
if (organizations.size() == 1)
return defaultOrganization;
…
Tobias
On 11.01.2012, at 16:33, Matt Mencel wrote:
> Hi Tobias,
>
> I need to create that file? It doesn't exist in my install yet...
>
> matterhorn:/opt/matterhorn/felix/load$ ls
> org.apache.felix.fileinstall-dictionary.cfg
> org.apache.felix.fileinstall-encoding.cfg
> org.apache.felix.fileinstall-feeds.cfg
> org.apache.felix.fileinstall-inbox.cfg
> org.apache.felix.fileinstall-matterhorn.cfg
> org.apache.felix.fileinstall-security.cfg
> org.apache.felix.fileinstall-workflows.cfg
>
> If I need to create it, what fields do I enter in there? The entries in one
> of the existing files looks like this....which doesn't match the explanation
> you gave.
>
> $ cat org.apache.felix.fileinstall-dictionary.cfg
> felix.fileinstall.dir=./conf/dictionaries
> felix.fileinstall.poll=5000
>
> Thanks,
> Matt
>
>
>
> ----- Original Message -----
> From: "Tobias Wunden" <[email protected]>
> To: "Matterhorn Users" <[email protected]>
> Sent: Wednesday, January 11, 2012 4:13:40 AM
> Subject: Re: [Matterhorn-users] Matterhorn Behind a Load Balancer
>
> Hi Matt,
>
> there is an organization definition that you'll find in the /load directory
> of Matterhorn. Mapping a request to an organization is done by looking at the
> request's ip and port, so you'll find those two settings in the
> org.opencastproject.organization-xyz.cfg file. Make sure they match what gets
> send to your matterhorn instance (be aware that some forwarding mechanisms
> remove the original port, so you'll have to specify a -1 for the port).
>
> Also note that this ip and port are not influenced by the
> org.opencastproject.server.url setting in config.properties, which are only
> used to create links pointing to matterhorn deliverables (e. g. downloads,
> streams etc.). Therefore that setting should ineed reflect your load
> balancer's ip, while the one in the organization mapping needs to map
> whatever is passed on by the load balancer to your mh installation.
>
> Tobias
>
> On 10.01.2012, at 22:50, Matt Mencel wrote:
>
>> I have an F5 load balancer. It is listening on https://10.10.221.168 and
>> forwarding those requests on to my matterhorn server which is running at
>> http://10.15.129.168:8080.
>>
>> The problem I think is with the public address I've defined in the
>> config.properties file. I've set it to the public address out on the load
>> balancer...
>>
>> org.opencastproject.server.url=https://10.10.221.168
>>
>>
>> But when I connect I'm getting errors in the opencast log like this...
>>
>> 2012-01-10 15:47:48 WARN (OrganizationFilter:96) - No organization is
>> mapped to handle http://10.15.129.168:8080/login.html
>>
>>
>> Which I think means that matterhorn doesn't like that the public address
>> defined in config.properties does not match the IP configured on the
>> matterhorn server.
>>
>> Am I right? If so is there a fix or workaround for this?
>>
>> Thanks,
>> Matt
>>
>> _______________________________________________
>> Matterhorn-users mailing list
>> [email protected]
>> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
>
> _______________________________________________
> Matterhorn-users mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
> _______________________________________________
> Matterhorn-users mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users