[RESOLVED] Spigot / Craftbukkit "copy to server" erreur rsync

Hi,

Sorry for my bad English :slightly_smiling:

I try test mineOS without preconfigured OS.

OS : debian-7.9.0-amd64-netinst.iso

i run this script :

'#!/bin/sh

'# update repositories
curl -sL https://deb.nodesource.com/setup_5.x | bash -
apt-get update

'# download the necessary prerequisite components for mineos
apt-get -y install nodejs supervisor git rdiff-backup screen build-essential openjdk-7-jre-headless

'# download the most recent mineos web-ui files from github
mkdir -p /usr/games
cd /usr/games
git clone GitHub - hexparrot/mineos-node: node.js implementation of mineos minecraft management minecraft
cd minecraft
git config core.filemode false
chmod +x service.js mineos_console.js generate-sslcert.sh webui.js
ln -s /usr/games/minecraft/mineos_console.js /usr/local/bin/mineos
cp mineos.conf /etc/mineos.conf
npm install

'# distribute service related files
cp init/supervisor_conf /etc/supervisor/conf.d/mineos.conf

'# generate self-signed certificate
./generate-sslcert.sh

'# start the background service
supervisorctl reload

I add this ligns in a top :

apt-get install -y sudo curl

Finish installation and i can connect to WEB-UI.

I import a server and create a new server with archive.

With WEB-UI, i can download Buildtoos.jar for spigot (pannel section : “Spigot / CraftBukkit”)
i can build spigot 1.8.8 (and i take a coffea)

but, when clic “copy to server” and select the server, one black pop-up error message say :

BuildTools jar copy failed

Error Error: rsync exited with code 1 (1)

Have you idea for this error ?

Regard

Can you confirm rsync is installed and works from the command line?

It should be installed as a dependency already from rsync-backup, but who knows. Also, does /var/log/mineos.log show any information?

Hi,

Yes i confirm

In my platform :

dpkg-query -l
xxxxxxxxx
ii rsync 3.0.9-4 amd64 fast, versatile, remote (and local) file-copying tool
xxxxxxxxx

In preconfiguredOS :

dpkg-query -l
xxxxxxxxx
ii rsync 3.0.9-4 amd64 fast, versatile, remote (and local) file-copying tool
xxxxxxxxx

But, in installation guide (https://minecraft.codeemo.com/mineoswiki/index.php?title=MineOS-node_(apt-get)) :

rsync
MineOS requires rsync 3.1.0+…

In my plateform :slightly_smiling:

mc@debian:~$ rsync --version
rsync version 3.0.9 protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

In preconfiguredOS

root@core ~# rsync --version
rsync version 3.1.1 protocol version 31
Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, xattrs, iconv, symtimes, prealloc

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

euhhh. why preconfiguredOS it has this version while the version of the package is lower.

Mineos.log after test “copy to server” with error in WEB-GUI

{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:39.879Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:40.532Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:40.533Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:40.533Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:41.239Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:41.239Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:41.240Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:41.944Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:41.944Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:41.945Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:42.653Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:42.654Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:42.654Z”}
{“command”:“copy_to_server”,“server_name”:“TEST3_new”,“version”:“1.8.8”,“type”:“spigot”,“level”:“info”,“message”:“[WEBUI] Received emit command from 192.168.128.1:mc”,“timestamp”:“2016-01-26T18:25:42.900Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:43.482Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:43.482Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:43.482Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:44.413Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:44.414Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:44.414Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:45.210Z”}
{“level”:“error”,“message”:“[TEST2_Import] Create tail on logs/latest.log failed”,“timestamp”:“2016-01-26T18:25:45.211Z”}
{“level”:“info”,“message”:“[TEST2_Import] Watching for file generation: logs/latest.log”,“timestamp”:“2016-01-26T18:25:45.211Z”}
{“level”:“info”,“message”:“[TEST2_Import] latest.log created! Watchfile logs/latest.log closed”,“timestamp”:“2016-01-26T18:25:45.886Z”}

Thanks you for assistance :slight_smile:

dpkg-query -l reports the version that would be installed using apt-get. However, because this version is too low, rsync is not pulled from apt-get repositories.

In the preconfigured ISO, we can see it is instead downloaded directly, extracted, and built from source:

wget https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz

You, too, can follow these steps (as outlined in the above link) to install a sufficient rsync version. You will also want toapt-get remove it, first…

Depending on distribution choices, rsync 3.1.x comes standard, e.g., Ubuntu 15, Debian 8+, etc. which is why the instructions don’t deliberately tell users to download it from source or to apt-get it.

thx for your reactivity !

well :slightly_smiling:

Download rsync3.1.1

root@debian:/tmp# wget https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz
–2016-01-26 21:06:06-- https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz
Résolution de download.samba.org (download.samba.org)… 144.76.82.156, 2a01:4f8:192:486::443:2
Connexion vers download.samba.org (download.samba.org)|144.76.82.156|:443…connecté.
requête HTTP transmise, en attente de la réponse…200 OK
Longueur: 890124 (869K) [application/x-gzip]
Sauvegarde en : «rsync-3.1.1.tar.gz»

100%[===================================================================================================================================================================================================>] 890 124 499K/s ds 1,7s

2016-01-26 21:06:09 (499 KB/s) - «rsync-3.1.1.tar.gz» sauvegardé [890124/890124]

root@debian:/tmp# tar xfz rsync-3.1.1.tar.gz
root@debian:/tmp# ls
rsync-3.1.1 rsync-3.1.1.tar.gz
root@debian:/tmp# cd rsync-3.1.1/

remove rsync 3.0.9

root@debian:/tmp/rsync-3.1.1# apt-get remove rsync
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
Les paquets suivants seront ENLEVÉS :
rsync
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Après cette opération, 653 ko d’espace disque seront libérés.
Souhaitez-vous continuer [O/n] ? o
(Lecture de la base de données… 36598 fichiers et répertoires déjà installés.)
Suppression de rsync …
[ ok ] Stopping rsync daemon: rsync.
Traitement des actions différées (« triggers ») pour « man-db »…

Install rsync 3.1.1

root@debian:/tmp/rsync-3.1.1# ./configure
blablabla
root@debian:/tmp/rsync-3.1.1# make
blablabla
root@debian:/tmp/rsync-3.1.1# make install
blablabla

check version and command rsync

root@debian:/tmp/rsync-3.1.1# rsync --version
rsync version 3.1.1 protocol version 31
Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, xattrs, iconv, symtimes, prealloc

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

and i test “copy to server”…

it’s done !!!

thanks for your help and your great working :wink:

For your information, before i test with Debian 8 but when clic to “Build Spigot” i had this error

fatal: $HOME not set
Git name not set, setting it to default value.
fatal: $HOME not set
Exception in thread “main” java.lang.RuntimeException: Error running command, return status !=0: [git, config, --global, user.name, BuildTools]
at org.spigotmc.builder.Builder.runProcess(Builder.java:535)
at org.spigotmc.builder.Builder.main(Builder.java:154)

I read this post and search with google but i can leave this error. Then i try with Debian 7.