k2hyun

트랜스미션 데몬에 접속이 안될때 본문

네트워크

트랜스미션 데몬에 접속이 안될때

hyunhwan 2019. 3. 31. 12:20
반응형

토랜스미션으로 다운로드중 갑자기 먹통

잘못된 토렌트 파일 때문에 데몬이 다운되는 증상

 

데몬 재실행해서 접속될때 재빠르게 받을려고 했던 파일 삭제....;;

 

확인해볼 사항들 다시 적어 봅니다.

 

0. 마운트 상태 확인 df -h

root@kzone:/tmp/home/root# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 8.0M      8.0M         0 100% /
devtmpfs                124.8M         0    124.8M   0% /dev
tmpfs                   124.8M    572.0K    124.3M   0% /tmp
devfs                   124.8M         0    124.8M   0% /dev
/dev/sda1               916.9G    502.5G    367.8G  58% /tmp/mnt/sda1
/dev/sda1               916.9G    502.5G    367.8G  58% /opt

1. opt 폴더 권한을 수정해 봅니다.

chmod 777 /opt

 

2. entware를 재설치 합니다.

wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh


Connecting to pkg.entware.net (104.27.177.50:80)
#!/bin/sh

echo "Info: Checking for prerequisites and creating folders..."

if [ -d /opt ]
then
    echo "Warning: Folder /opt exists!"
else
    mkdir /opt
fi
for folder in bin etc/init.d lib/opkg sbin share tmp usr var/log var/lock var/run
do
  if [ -d "/opt/$folder" ]
  then
    echo "Warning: Folder /opt/$folder exists!"
    echo "Warning: If something goes wrong please clean /opt folder and try again."
  else
    mkdir -p /opt/$folder
  fi
done

echo "Info: Opkg package manager deployment..."
CURARCH="armv7"
DLOADER="ld-linux.so.3"
URL=http://pkg.entware.net/binaries/$CURARCH/installer
wget $URL/opkg -O /opt/bin/opkg
chmod +x /opt/bin/opkg
wget $URL/opkg.conf -O /opt/etc/opkg.conf
wget $URL/ld-2.23.so -O /opt/lib/ld-2.23.so
wget $URL/libc-2.23.so -O/opt/lib/libc-2.23.so
wget $URL/libgcc_s.so.1.2.23 -O /opt/lib/libgcc_s.so.1
cd /opt/lib
chmod +x ld-2.23.so
ln -s ld-2.23.so $DLOADER
ln -s libc-2.23.so libc.so.6

echo "Info: Basic packages installation..."
/opt/bin/opkg update
/opt/bin/opkg install entware-opt
if [ ! -f /opt/usr/lib/locale/locale-archive ]
then
        wget http://pkg.entware.net/binaries/other/locale-archive.2.23 -O /opt/usr/lib/locale/locale-archive
fi

# from Entware (2018)
# now try create symlinks - it is a std installation
if [ -f /etc/passwd ]
then
    ln -sf /etc/passwd /opt/etc/passwd
fi

if [ -f /etc/group ]
then
    ln -sf /etc/group /opt/etc/group
fi

if [ -f /etc/shells ]
then
    ln -sf /etc/shells /opt/etc/shells
fi

if [ -f /etc/shadow ]
then
    ln -sf /etc/shadow /opt/etc/shadow
fi

if [ -f /etc/gshadow ]
then
    ln -sf /etc/gshadow /opt/etc/gshadow
fi

if [ -f /etc/localtime ]
then
    ln -sf /etc/localtime /opt/etc/localtime
fi
# Upgrading to Entware
opkg update
opkg upgrade


echo "Info: Congratulations!"
echo "Info: If there are no errors above then Entware-ng was successfully initialized."
echo "Info: Add /opt/bin & /opt/sbin to your PATH variable"
echo "Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-ng services to start"
echo "Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues"
-                    100% |*******************************|  2117   0:00:00 ETA
root@kzone:/tmp/home/root#

 

3. optware를 재설치 합니다.

root@kzone:/usr/sbin# sh optware-install.sh
Checking system config ...
Using 118.218.16.1 as default gateway.
Using the following nameserver(s):
nameserver 127.0.0.1
Warning: /opt partition not empty!
Installing package uclibc-opt_0.9.28-1_arm.ipk ...
Connecting to ipkg.nslu2-linux.org (23.141.224.193:80)
uclibc-opt_0.9.28-1_ 100% |*******************************|   241k  0:00:00 ETA
Installing package ipkg-opt_0.99.163-10_arm.ipk ...
Connecting to ipkg.nslu2-linux.org (23.141.224.193:80)
ipkg-opt_0.99.163-10 100% |*******************************| 72910   0:00:00 ETA
Successfully terminated.
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package uclibc-opt.
Check the spelling or perhaps run 'ipkg update'
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package ipkg-opt.
Check the spelling or perhaps run 'ipkg update'
Downloading http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/nslu2
Downloading http://tomato.groov.pl/repo-arm/Packages
Updated list of available packages in /opt/lib/ipkg/lists/shibby
Successfully terminated.
root@kzone:/usr/sbin# 

 

3. ipkg를 업데이트 합니다.

root@kzone:/usr/sbin# sleep 5
root@kzone:/usr/sbin# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/nslu2
Downloading http://tomato.groov.pl/repo-arm/Packages
Updated list of available packages in /opt/lib/ipkg/lists/shibby
Successfully terminated.
root@kzone:/usr/sbin#

4.transmission-daemon 재설치

root@kzone:/usr/sbin# sleep 5
root@kzone:/usr/sbin# cd /
root@kzone:/# ipkg install transmission
Package transmission (2.84-1) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.

5. transmission-daemon 재실행

root@kzone:/# /opt/bin/transmission-daemon -g /opt/.config/transmission-daemon/
/opt/bin/transmission-daemon: '/opt/lib/libdl.so.0' is not an ELF executable for ARM
/opt/bin/transmission-daemon: '/opt/lib/libdl.so.0' is not an ELF executable for ARM
/opt/bin/transmission-daemon: '/opt/lib/libdl.so.0' is not an ELF executable for ARM
root@kzone:/#

6. transmission-daemon 프로세스 확인

 1041 root       888 S    vsftpd
 1044 nobody    1352 S    dnsmasq -c 1500 --log-async
 1056 root      4944 S    minidlna -f /etc/minidlna.conf
 1086 root      4944 S    minidlna -f /etc/minidlna.conf
 1087 root      4944 S N  minidlna -f /etc/minidlna.conf
 1425 root      2676 S    httpd
 1427 root      1528 S    udhcpc -i vlan2 -b -s dhcpc-event -H kzone -m
 1429 root      1536 S    -sh
 1865 root         0 SW   [flush-8:0]
 1886 root      5060 S    /opt/bin/transmission-daemon -g /opt/.config/transmi
 1887 root      5060 S    /opt/bin/transmission-daemon -g /opt/.config/transmi
 1888 root      5060 S    /opt/bin/transmission-daemon -g /opt/.config/transmi
 1889 root      5060 S    /opt/bin/transmission-daemon -g /opt/.config/transmi
 1890 root      1520 R    ps
root@kzone:/#

 

반응형
Comments