droboports / crashplan

CrashPlan DroboApp build scripts
GNU General Public License v2.0
17 stars 1 forks source link

sed: unsupported command ^ #2

Closed chrisbraddock closed 9 years ago

chrisbraddock commented 9 years ago

I'm having an issue with the CrashPlan app on my Drobo 5N. Essentially the app has never stayed running for me. I tried to dig in to the issue a bit and found this when running /mnt/DroboFS/Shares/DroboApps/crashplan/upgrade.sh:

# ./upgrade.sh
Upgrade jar is: ./1388556100363.jar
Upgrade folder is: ./1388556100363.1417367908268
Unzipping ./1388556100363.jar into ./1388556100363.1417367908268
Archive:  ./1388556100363.jar
  inflating: META-INF/MANIFEST.MF
  inflating: c42_protolib.jar
  inflating: com.backup42.desktop.jar
  inflating: lang/txt.properties
  inflating: lang/txt_ca.properties
  inflating: lang/txt_da.properties
  inflating: lang/txt_de.properties
  inflating: lang/txt_en.properties
  inflating: lang/txt_es.properties
  inflating: lang/txt_es_ES.properties
  inflating: lang/txt_fi.properties
  inflating: lang/txt_fr.properties
  inflating: lang/txt_hu.properties
  inflating: lang/txt_it.properties
  inflating: lang/txt_ja.properties
  inflating: lang/txt_nl.properties
  inflating: lang/txt_no.properties
  inflating: lang/txt_pl.properties
  inflating: lang/txt_pt.properties
  inflating: lang/txt_sv.properties
  inflating: lang/txt_th.properties
  inflating: lang/txt_tr.properties
  inflating: lang/txt_zh.properties
  inflating: lang/txt_zh_TW.properties
  inflating: run.conf
  inflating: upgrade.properties
  inflating: upgrade.sh
Fixing upgrade.sh to work with busybox.
Running the upgrade script, please wait...
Sun Nov 30 09:29:57 PST 2014 : Stopping using ../../bin/CrashPlanEngine...
crashplan is not running.
Sun Nov 30 09:29:57 PST 2014 : Sleeping 10 seconds...
Sun Nov 30 09:30:07 PST 2014 : Starting using ../../bin/CrashPlanEngine...
Starting dependancy: locale
Sun Nov 30 09:30:07 PST 2014 : New CrashPlan Backup Engine:
 5037 root     1156m S N  /mnt/DroboFS/Shares/DroboApps/java7/bin/java -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=C
 7691 root     1136m S N  /mnt/DroboFS/Shares/DroboApps/java7/bin/java -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=C
Sun Nov 30 09:30:07 PST 2014 : Exiting upgrade script
======================================================
Sun Nov 30 09:50:47 PST 2014 : /mnt/DroboFS/Shares/DroboApps/crashplan/app/upgrade/1388556100363.1417367908268/upgrade2.sh
Sun Nov 30 09:50:47 PST 2014 : Current CrashPlan Backup Engine:
 5037 root     1156m S N  /mnt/DroboFS/Shares/DroboApps/java7/bin/java -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=C
Sun Nov 30 09:50:47 PST 2014 : Removing old jar files...
Sun Nov 30 09:50:47 PST 2014 : Moving existing native libs from lib to app dir...
mv: can't rename '../../lib/*.so': No such file or directory
Sun Nov 30 09:50:47 PST 2014 : Moving existing license files from lib to app dir...
mv: can't rename '../../lib/*.lic': No such file or directory
Sun Nov 30 09:50:47 PST 2014 : Moving jar files...
Sun Nov 30 09:50:47 PST 2014 : Moving txt files to the lang dir...
mkdir: can't create directory '../../lang': File exists
mkdir: can't create directory '../../bin': File exists
Sun Nov 30 09:50:47 PST 2014 : Moving run.conf to the bin dir...
Sun Nov 30 09:50:47 PST 2014 : Restarting CrashPlan Backup Engine
Sun Nov 30 09:50:47 PST 2014 : Sourcing ../../install.vars...
Sun Nov 30 09:50:47 PST 2014 : Stopping using ../../bin/CrashPlanEngine...
crashplan is not running.
Sun Nov 30 09:50:47 PST 2014 : Sleeping 10 seconds...
Sun Nov 30 09:50:57 PST 2014 : Starting using ../../bin/CrashPlanEngine...
Starting dependancy: locale
Sun Nov 30 09:50:57 PST 2014 : New CrashPlan Backup Engine:
 5037 root     1156m S N  /mnt/DroboFS/Shares/DroboApps/java7/bin/java -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=C
 8571 root     1136m S N  /mnt/DroboFS/Shares/DroboApps/java7/bin/java -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=C
Sun Nov 30 09:50:57 PST 2014 : Exiting upgrade script
...done
crashplan is enabled and running
Updating version number in service.sh
sed: unsupported command ^
#

busybox version:

# busybox
BusyBox v1.20.2 (2013-01-21 14:02:59 PST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

  BusyBox is a multi-call binary that combines many common Unix
  utilities into a single executable.  Most people will create a
  link to busybox for each function they wish to use and BusyBox
  will act like whatever it was invoked as.

Currently defined functions:
  [, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat,
  catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, cp, crond, crontab, cryptpw,
  cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, diff, dirname, dmesg, dnsd, dnsdomainname,
  dos2unix, du, dumpkmap, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset,
  fbsplash, fdflush, fdformat, fdisk, fgrep, find, findfs, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget, ftpput,
  fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hwclock, id,
  ifconfig, ifdown, ifenslave, ifup, inetd, init, insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute,
  iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
  logger, login, logname, logread, losetup, ls, lsattr, lsmod, lsof, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir,
  mkdosfs, mkfifo, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint, mt, mv,
  nameif, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
  pivot_root, pkill, poweroff, printenv, printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, readprofile,
  realpath, reboot, renice, reset, resize, rm, rmdir, rmmod, route, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script, sed,
  seq, setarch, setconsole, setfont, setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey,
  slattach, sleep, softlimit, sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon,
  switch_root, sync, sysctl, syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch,
  tr, traceroute, true, tty, ttysize, tunctl, tune2fs, udhcpc, udpsvd, umount, uname, unexpand, uniq, unix2dos, unxz, unzip,
  uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, watch, watchdog, wc, wget, which, who, whoami, xargs, xz,
  xzcat, yes, zcat, zcip

#

I'm not sure this has anything to do with the issue I'm having starting the service. /mnt/DroboFS/Shares/DroboApps/crashplan/service.sh shows that its attempting to start locale each time I run it and Drobo Dashboard is reporting locale as 'status unknown'.

ricardopadilha commented 9 years ago

Did you install the latest version? If so, could you please remove the upgrade folder and try again? It is a well-known fact that the auto-upgrade method used by CrashPlan nukes the installation on the Drobos. CrashPlan has been contacted about it, but they ignored all requests stating that the Drobos are not a "supported platform".