Bug 233175 - net/rabbitmq: rabbitmq-server can't find devel/erlang-cuttlefish
Summary: net/rabbitmq: rabbitmq-server can't find devel/erlang-cuttlefish
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-12 18:03 UTC by teh_fink
Modified: 2019-11-19 21:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teh_fink 2018-11-12 18:03:32 UTC
When trying to use the new, recommended ini-style config:

```
pkg install rabbitmq
pkg install erlang-cuttlefish
cd /usr/local/etc/rabbitmq
rm rabbitmq.config
fetch https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/v3.7.x/docs/rabbitmq.conf.example
mv rabbitmq.conf.example rabbitmq.conf

whereis cuttlefish
cuttlefish: /usr/local/sbin/cuttlefish

rabbitmq-server

BOOT FAILED
===========

Config file generation failed escript: Failed to open file: /usr/local/sbin/cuttlefish


BOOT FAILED
===========

Error description:
    rabbit:start_it/1 line 465
    rabbit:boot_error/2 line 872
    rabbit_lager:log_locations/0 line 61
    rabbit_lager:ensure_lager_configured/0 line 162
    rabbit_lager:lager_configured/0 line 170
    lager:list_all_sinks/0 line 317
    lager_config:get/2 line 71
    ets:lookup(lager_config, {'_global',handlers})
exit:generate_config_file
Log file(s) (may contain more information):

{"init terminating in do_boot",generate_config_file}
init terminating in do_boot (generate_config_file)

Crash dump is being written to: /var/log/rabbitmq/erl_crash.dump...
```

However, symlinking to /usr/local/sbin/cuttlefish allows the server to start, but surely there's a better way?

```
ln -s /usr/local/bin/cuttlefish /usr/local/sbin/cuttlefish

rabbitmq-server
done


  ##  ##
  ##  ##      RabbitMQ 3.7.8. Copyright (C) 2007-2018 Pivotal Software, Inc.
  ##########  Licensed under the MPL.  See http://www.rabbitmq.com/
  ######  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@krotky.log
                    /var/log/rabbitmq/rabbit@krotky_upgrade.log

              Starting broker...
 completed with 0 plugins.
```
Comment 1 Bugzilla Automation freebsd_committer 2018-11-12 18:03:32 UTC
Maintainer informed via mail
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-11-12 20:38:39 UTC
Please, fix maintainer email.
Comment 3 Jimmy Olgeni freebsd_committer 2019-11-19 21:25:01 UTC
Cuttlefish fixed as of r517556.