New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rexify for module installation doesn't work #1201

eliSodeglo opened this Issue Jul 25, 2018 · 2 comments


None yet
2 participants

eliSodeglo commented Jul 25, 2018

(debian 9.5 / perl 5.24 / rex 1.6.0)
Running the command rexify --use="Rex::Ext::Backup" would result in:

malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/local/bin/rexify line 384.

Online I just found this workaround (manually copying the repo):!topic/rex-users/794tvV45OxY

I did a little bit of poking in the rexify script, but (with my low level perl knowledge) didn't succeed. I don't see anything wrong with the JSON at

#~line 368
  print "Getting dependencies for $name...\n";             
 my $myOrigServerString= sprintf ($DEPEND_SERVER,$name); 
 #my $myServerString= to_json($myOrigServerString);      
 my $myServerString= $myOrigServerString;                
 print $myServerString ."\n";                              
 #my $myServerString= encode_json($$myLegacyServerString); 
my $myJson = get( $myServerString);                        
print $myJson ."\n";                                       
my @testJson;                                              
$testJson[0] = qq\{"ok":"0"}\;                             
my $myRevJson = \@testJson;                                
use HTML::Entities;                                        
  my $deps = decode_entities( $myRevJson );                
my $deps = decode_json( $myJson );                         


This comment has been minimized.

KDr2 commented Aug 14, 2018

What I found is:

  • the https facility seems broken
  • and some API's do not work well too, see #1185

This comment has been minimized.

KDr2 commented Aug 25, 2018

I install the recipes in this way:

$mkdir lib -p
$git clone  # ensure it's on branch 1.4
$ln -sf $PWD/rex-recipes/Rex/ lib/
lib  Rexfile  rex-recipes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment