Repository navigation
Add RabbitMQ and dedicated Erlang package - #4437
Conversation
|
@DigitalBox98 I would recommend to keep framework generic installer script https://github.com/SynoCommunity/spksrc/wiki/Service-Support |
|
Thank you, I will have a look at the "demoservice" spk and check if the results are better : ) |
|
@hgy59 thank you very much for the advices, all is working fine now ! (compiled fine for DSM 6 & DSM 7, tested fine on DSM 7) I will try to improve the service part as suggested by ymartin59. |
Actually, you should use proper |
|
Ok after investigating all the issues and thanks to all the advices, I have now a package compiling and working fine on DSM7. The service is also working fine with start/stop fully recognized. I have updated the DSM6 version in this PR but I can't test it, especially the SPK_LINKS part added for Erlang. For those who would like to access to the admin GUI, they are still some improvements required, but you can test it by typing : sudo su - sc-rabbitmq -s /bin/sh |
| service_preinst () | ||
| { | ||
| echo "service_preinst ${SYNOPKG_PKG_STATUS}" >> $INST_LOG | ||
| } |
There was a problem hiding this comment.
you must not implement empty functions here (and below)
There was a problem hiding this comment.
Ok it has been removed
|
|
||
| service_postinst () | ||
| { | ||
| echo "service_postinst ${SYNOPKG_PKG_STATUS}" >> $INST_LOG |
There was a problem hiding this comment.
such a log entry is done by the framework and is obsolete here.
|
@DigitalBox98 thanks for bringing us RabbitMQ! I rather would name this package RabbitMQ (instead of RabbitMQ-Server) as it is obvious that this is the server part (the web gui and the CLI login display |
- add native/rsync and native/zip to fix 'make install'
|
@DigitalBox98 as |
|
unfortunatley the github build action still fails due to ejabberd - but rabbitmq now builds successfully. |
|
Ok I've completed the renaming of the package to RabbitMQ with the other minor fixes. I will try to improve the installation of RabbitMQ : request to indicate the admin name/password and process the plugins installation in the post install. It would allow to have access to the admin part by default |
…patches needed for script
- fix patch of rabbitmq-defaults in service_postinst() - add default config files to package - move config files to target/var to use generic backup/restore on package update - install enabled_plugins with active management plugin - fix rabbitmq-env.conf (remove RABBITMQ_ prefixes) - fix cross/rabbitmq/PLIST file types (use rsc for files that are neither bin nor lib type)
|
RabbitMQ installs now with management plugin: This is running on DS-115j (armada370) with DSM 6.2.3. The package is compiled for armv7-6.1. |
This comment has been minimized.
This comment has been minimized.
| @@ -0,0 +1 @@ | |||
| loopback_users.guest = false | |||
There was a problem hiding this comment.
@DigitalBox98 I have removed log.dir definition here, as LOG_BASE in rabbitmq-env.conf seems to be enough.
- use github repo to download more current releases - adjust license information (as seen in github repo) - adjust PLIST file - use github user name as maintainer - reset SPK_REV to 1 - use current erlang icon
- add port configurations grouped by plugin - remove service port (keep admin port only)
|
@DigitalBox98 I have included the port configuration. The ports used by any plugin is included, so it is possible to configure the DSM firewall for any of the RabbitMQ provided plugins. Can you please verify the current version with DSM 7? @publicarray what is your experience with Port Configuration for packages on DSM7?. On DSM 6 everything works as expected. |
|
@hgy59 many thanks for the various improvements. Here are my findings for the DSM7 version :
After that, all seems to work fine ! (plugins installed & GUI admin available) |
You reverted my update to Erlang 23.2.5 (and github repository). |
|
My bad. I've checked again and indeed the 23.2.5 links are fine. |
* Add Erlang v23.2.5 * Add RabbitMQ Server of latest version - add native/rsync and native/zip to fix 'make install' * installation improvements - add default config files to package - install enabled_plugins with active management plugin * RabbitMQ: add port configurations - add port configurations grouped by plugin - remove service port (keep admin port only) Co-authored-by: sadmin <[email protected]> Co-authored-by: hgy59 <[email protected]>

Motivation: have RabbitMQ Server working on NAS Synology
Linked Issues: closes #4436
Checklist
all-supportedcompleted successfullyRemarks:
This PR includes an updated version of the standalone Erlang package of #4436.
Most of the following description is outdated:
Some part of this PR are working and others don't.
Comments are welcome for any hint on how to improve the packaging part which is failing.
Note : the pure cross compilation part is working fine and RabbitMQ Server can be launched manually on the NAS.
Notes :
Below is one of the error raised :
===> Stripping binaries and libraries of rabbitmq-server
Stripping lib/erlang/lib/rabbitmq_server-3.7.15/ebin/rabbit.app... chmod: impossible d'accéder à 'XXX/spksrc/spk/rabbitmq-server/work-braswell-6.1/staging/lib/erlang/lib/rabbitmq_server-3.7.15/ebin/rabbit.app': Aucun fichier ou dossier de ce type
Investigation for the spk/rabbitmq-server part :
Looking for the important part, ie the script which is launching the server "rabbitmq-server ", I can see that :
Verifying the pure cross compiled part is OK :
Note : pre-requisite is that Erlang is installed on the NAS
Checking on DSM 7.0 below :
