Fail: install command failed (17)

Re: Fail: install command failed (17)

Postby AceCuba » Fri Sep 29, 2023 8:38 pm

all o fthis happends after i update frm 18.1 with the patch to be able to get addons to 18.2 patch 5 for the addonds
AceCuba
Donator VIP
Donator VIP
 
Posts: 60
Joined: Sun Aug 06, 2023 4:26 am

Re: Fail: install command failed (17)

Postby Jocko » Sat Sep 30, 2023 11:47 am

Ok I believe to understand where is the issue. This is wrong
Code: Select all
root@SegateNas:/ # ls -l /direct-usb
total 8
lrwxrwxrwx  1 root root   11 2018-01-01 20:48 1000 -> /share/1000
drwxr-xr-x  3 root root 4096 2023-09-27 18:53 fvdw
drwxrwxrwx  3 root root 4096 2023-09-27 03:41 mini_httpd
whereas it should be
Code: Select all
 ls -l /direct-usb
lrwxrwxrwx  1 root root 11 2023-09-25 12:43 /direct-usb -> /share/1000
But I do not understand how you got that :scratch
So direct-usb is a folder and not a symlink. Then the firmware fails at every time to set rightly the symlink as we do not allow the firmware to delete direct-usb if it is a folder (safety rule to avoid to delete the user data...)
Now the folders fvdw and mini_httpd are duplicated (please to note their last modified times)
Code: Select all
drwxrwxrwx   6 root root  4096 2018-01-01 20:36 fvdw
drwxr-xr-x  3 root root 4096 2023-09-27 18:53 fvdw

drwxrwxrwx  14 root root  4096 2023-09-27 23:25 mini-httpd
drwxrwxrwx  3 root root 4096 2023-09-27 03:41 mini_httpd


So to restore the right environment, we must firt to move the content of direct-usb
Code: Select all
mv /direct-usb/fvdw /share/1000/fvdw/fvdw.err
chmod 777 /share/1000/fvdw/fvdw.err
mv /direct-usb/mini_httpd /share/1000/mini_httpd/mini_httpd.err
unlink /direct-usb/1000
Check the command: should list now nothing
Code: Select all
ls -l /direct-usb
if it is the case you have to delete it
Code: Select all
rmdir /direct-usb
Set manually the symlink
Code: Select all
ln -s /share/1000 /direct-usb
You should get now this right output
Code: Select all
ls -l /direct-usb
lrwxrwxrwx  1 root root 11 2023-09-dd hh:mm /direct-usb -> /share/1000


In the folders fvdw.err and mini_httpd.err you may find some files/folders. Then you should move them at the root of their share (fvdw or mini_hhtpd) but only if you think they are last versions

Reboot the nas and check if "ls -l /direct-usb" still returns the right command
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fail: install command failed (17)

Postby AceCuba » Sat Sep 30, 2023 12:40 pm

okp


root@SegateNas:/ # ls -l /direct-usb
lrwxrwxrwx 1 root root 11 2023-09-30 08:24 /direct-usb -> /share/1000
root@SegateNas:/ #

now what ?
AceCuba
Donator VIP
Donator VIP
 
Posts: 60
Joined: Sun Aug 06, 2023 4:26 am

Re: Fail: install command failed (17)

Postby AceCuba » Sat Sep 30, 2023 12:43 pm

abouth the internet yea im from cuba 128kbps and way inestable lol .
AceCuba
Donator VIP
Donator VIP
 
Posts: 60
Joined: Sun Aug 06, 2023 4:26 am

Re: Fail: install command failed (17)

Postby AceCuba » Sat Sep 30, 2023 12:47 pm

ooooo mini dnla got install it thanks , can i ask another thing ? can yu give my a totiral link to add this script on boot using cron boot job ,

root@(none):/ # /usr/sbin/mini_httpd -i /var/run/mini_httpd.pid -C /etc/mini_httpd/mini_httpd.conf -l /var/log/mini_httpd.log -u nobody
AceCuba
Donator VIP
Donator VIP
 
Posts: 60
Joined: Sun Aug 06, 2023 4:26 am

Re: Fail: install command failed (17)

Postby Jocko » Sat Sep 30, 2023 5:41 pm

Hi

It is quiet easy.

Create a text file in the location /direct-usb/fvdw/cron-boot (if you use a shell window) or in the share \\nas-name\fvdw\cron-boot if you use file explorer from your laptop. You can name it "mini_httpd-start.sh" for example

So paste these lines
Code: Select all
#!/bin/sh
if [ -f "/etc/mini_httpd/mini_httpd.conf" ]
then
 unlink /var/run/mini_httpd.pid
 /usr/sbin/mini_httpd -i /var/run/mini_httpd.pid -C /etc/mini_httpd/mini_httpd.conf -l /var/log/mini_httpd.log -u nobody
 sleep 5
 if [ -f "/var/run/mini_httpd.pid" ]
 then
  echo -e "\t\tStart mini_httpd :\t[ OK ]"
 else
  echo -e "\t\tStart mini_httpd :\t[ FAIL ]"
  exit 1
 fi
else
  echo -e "\t\tStart mini_httpd :\tMissing conf file"
fi
(with this code you will be able to see if the server started rightly by reading the /boot.log file)

Note: the firmware will set the right breakline character in your file. So you can create the file from your window laptop without issue

Load the boot job menu, you should see your file in the table. Check its line and click on the button "Save the boot jobs table"

Then to start or not the server, you have to enable or disable the Boot jobs feature (click on the related button)

That 's all
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fail: install command failed (17)

Postby AceCuba » Sat Sep 30, 2023 11:27 pm

Jocko wrote:Hi

It is quiet easy.

Create a text file in the location /direct-usb/fvdw/cron-boot (if you use a shell window) or in the share \\nas-name\fvdw\cron-boot if you use file explorer from your laptop. You can name it "mini_httpd-start.sh" for example

So paste these lines
Code: Select all
#!/bin/sh
if [ -f "/etc/mini_httpd/mini_httpd.conf" ]
then
 unlink /var/run/mini_httpd.pid
 /usr/sbin/mini_httpd -i /var/run/mini_httpd.pid -C /etc/mini_httpd/mini_httpd.conf -l /var/log/mini_httpd.log -u nobody
 sleep 5
 if [ -f "/var/run/mini_httpd.pid" ]
 then
  echo -e "\t\tStart mini_httpd :\t[ OK ]"
 else
  echo -e "\t\tStart mini_httpd :\t[ FAIL ]"
  exit 1
 fi
else
  echo -e "\t\tStart mini_httpd :\tMissing conf file"
fi
(with this code you will be able to see if the server started rightly by reading the /boot.log file)

Note: the firmware will set the right breakline character in your file. So you can create the file from your window laptop without issue

Load the boot job menu, you should see your file in the table. Check its line and click on the button "Save the boot jobs table"

Then to start or not the server, you have to enable or disable the Boot jobs feature (click on the related button)

That 's all

THankssssss, everything working , i made another post for a logitech old webcam uvc driver , sorry for all the post questions and issues jaaj
AceCuba
Donator VIP
Donator VIP
 
Posts: 60
Joined: Sun Aug 06, 2023 4:26 am

Previous

Return to Seagate personal cloud

Who is online

Users browsing this forum: No registered users and 4 guests