What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Entware packages instant dead

digimon04

Occasional Visitor
For some reason, I had to push the power button of my RT-AC68U to reboot it. I have done this several times in the past without any issues. However, with the recent one, after the router starts, all Entware packages (i.e. Pyload, Transmission, Aria2) installed are dead. I try to start them manually but only result in instant dead.

admin@RT-AC68U-6258:/tmp/home/root# /opt/etc/init.d/S88transmission start
Starting transmission-daemon... done.
admin@RT-AC68U-6258:/tmp/home/root# /opt/etc/init.d/S88transmission check
Checking transmission-daemon... dead.
admin@RT-AC68U-6258:/tmp/home/root#

admin@RT-AC68U-6258:/tmp/home/root# /opt/etc/init.d/S51pyload start
starting pyLoad
Traceback (most recent call last):
File "/opt/bin/pyload", line 27, in <module>
from getopt import getopt, GetoptError
ValueError: bad marshal data (string size out of range)
admin@RT-AC68U-6258:/tmp/home/root#

admin@RT-AC68U-6258:/tmp/home/root# /opt/etc/init.d/S81aria2 start
Starting aria2c... done.
admin@RT-AC68U-6258:/tmp/home/root# /opt/etc/init.d/S81aria2 check
Checking aria2c... dead.
admin@RT-AC68U-6258:/tmp/home/root#

Swap and Diversion run as usual. Could any one help me to troubleshoot it or tell me how to restore them? Thanks
 
So, this is an RT-AC68U, okay... what firmware is running?

Is the Entware installation via Diversion, or was it installed directly?

Did you recently do a firmware update? Your post is not clear. If you did, from which version to which?

Are you rebooting on a schedule? What USB drive file format are you using? How big is your USB drive?

Any further information, including answers to the above, would help you get more responses to your issues. ;)
 
So, this is an RT-AC68U, okay... what firmware is running?

Is the Entware installation via Diversion, or was it installed directly?

Did you recently do a firmware update? Your post is not clear. If you did, from which version to which?

Are you rebooting on a schedule? What USB drive file format are you using? How big is your USB drive?

Any further information, including answers to the above, would help you get more responses to your issues. ;)

The router is running Merlin 384.8_2. I haven't upgrade the firmware recently. The last time that I upgrade is from 380.70 to 384.8_2 last year. And the router is reset to factory default after the upgrade. I install the entware packages from scratch.

I didn't set reboot schedule. The USB pen drive is 16GB and the file formt is ext3.

Any help is highly appreciated.
 
The router is running Merlin 384.8_2. I haven't upgrade the firmware recently. The last time that I upgrade is from 380.70 to 384.8_2 last year. And the router is reset to factory default after the upgrade. I install the entware packages from scratch.

I didn't set reboot schedule. The USB pen drive is 16GB and the file formt is ext3.

Any help is highly appreciated.

I'll let the scripting guru's address the proper backup of your files, but I would suggest you recreate your USB drive environment based on the latest best practices. ;)

First, I would recommend that you upgrade your firmware to RMerlin 384.10_2, and if needed, do a full M&M Config afterward (see my signature for links and further details). Then you can continue with the steps below.

Use a new/different USB drive if you want to have a chance to retrieve any information from your current one. Also, backup the jffs partition and put it in a safe place too.

Now, remove all USB drives and follow the steps below to have a properly entwined Entware + Diversion + additional scripts set up.

Note that the order below is critical.
  1. Use the GUI to 'format the jffs partition on next reboot' and then reboot the router 3 times in the next 15 minutes or so, waiting at least 5 to 10 minutes between reboots.
  2. Install amtm to the jffs partition. https://diversion.ch/amtm.html
  3. Insert the new/blank USB drive and use amtm to label the USB drive (important!) and format to Ext4 and enable journaling.
  4. Create a swap file with amtm on the USB drive (I use 2GB on all routers).
  5. Using amtm, enable the drive checker utility on bootup.
  6. Using amtm, install Diversion, and let it install Entware and pixelserv-tls too.
  7. Update any needed Entware packages by going into the Diversion menu and then selecting 'ep', '6', '6'.
  8. Install any remaining scripts.

Just checking here, but after upgrading from 380.70 to 384.8_2, did you use a backup config file? Or did you do a proper minimum and manual configuration of the router to secure it and connect to your ISP?
 
I'll let the scripting guru's address the proper backup of your files, but I would suggest you recreate your USB drive environment based on the latest best practices. ;)

First, I would recommend that you upgrade your firmware to RMerlin 384.10_2, and if needed, do a full M&M Config afterward (see my signature for links and further details). Then you can continue with the steps below.

Use a new/different USB drive if you want to have a chance to retrieve any information from your current one. Also, backup the jffs partition and put it in a safe place too.

Now, remove all USB drives and follow the steps below to have a properly entwined Entware + Diversion + additional scripts set up.

Note that the order below is critical.
  1. Use the GUI to 'format the jffs partition on next reboot' and then reboot the router 3 times in the next 15 minutes or so, waiting at least 5 to 10 minutes between reboots.
  2. Install amtm to the jffs partition. https://diversion.ch/amtm.html
  3. Insert the new/blank USB drive and use amtm to label the USB drive (important!) and format to Ext4 and enable journaling.
  4. Create a swap file with amtm on the USB drive (I use 2GB on all routers).
  5. Using amtm, enable the drive checker utility on bootup.
  6. Using amtm, install Diversion, and let it install Entware and pixelserv-tls too.
  7. Update any needed Entware packages by going into the Diversion menu and then selecting 'ep', '6', '6'.
  8. Install any remaining scripts.

Just checking here, but after upgrading from 380.70 to 384.8_2, did you use a backup config file? Or did you do a proper minimum and manual configuration of the router to secure it and connect to your ISP?

some moderator should sticky this post. it would no doubt help newcomers set their networks up correctly from the outset and help prevent a whole lot of "catch up" miscommunication
 
some moderator should sticky this post. it would no doubt help newcomers set their networks up correctly from the outset and help prevent a whole lot of "catch up" miscommunication

The more sticky a forum has, the less likely people are to read them (and already a lot of people are failing to even read the sticky TITLES...)
 
I'll let the scripting guru's address the proper backup of your files, but I would suggest you recreate your USB drive environment based on the latest best practices. ;)

First, I would recommend that you upgrade your firmware to RMerlin 384.10_2, and if needed, do a full M&M Config afterward (see my signature for links and further details). Then you can continue with the steps below.

Use a new/different USB drive if you want to have a chance to retrieve any information from your current one. Also, backup the jffs partition and put it in a safe place too.

Now, remove all USB drives and follow the steps below to have a properly entwined Entware + Diversion + additional scripts set up.

Note that the order below is critical.
  1. Use the GUI to 'format the jffs partition on next reboot' and then reboot the router 3 times in the next 15 minutes or so, waiting at least 5 to 10 minutes between reboots.
  2. Install amtm to the jffs partition. https://diversion.ch/amtm.html
  3. Insert the new/blank USB drive and use amtm to label the USB drive (important!) and format to Ext4 and enable journaling.
  4. Create a swap file with amtm on the USB drive (I use 2GB on all routers).
  5. Using amtm, enable the drive checker utility on bootup.
  6. Using amtm, install Diversion, and let it install Entware and pixelserv-tls too.
  7. Update any needed Entware packages by going into the Diversion menu and then selecting 'ep', '6', '6'.
  8. Install any remaining scripts.

Just checking here, but after upgrading from 380.70 to 384.8_2, did you use a backup config file? Or did you do a proper minimum and manual configuration of the router to secure it and connect to your ISP?

Resetting should be the last resort. What I am asking is could anyone help me to troubleshoot it or tell me what cause that situation or direct me to restore the entware packages to the working condition. Thanks.
 
Resetting should be the last resort. What I am asking is could anyone help me to troubleshoot it or tell me what cause that situation or direct me to restore the entware packages to the working condition. Thanks.

Agreed, it should be the last resort. But after 24 hours, nobody seems to have a possible solution. :(

I believe that it is the original Entware install that you did that was separate from the Diversion install. You may not have changed your installation yourself, but the updates to the scripts probably did.

I hope someone comes with some info for you.
 
Have you tried reinstalling the packages via opkg?

Does syslog show any errors when you try to start them?

May also be worth installing amtm for the disk check - its possible the hard power off corrupted the file system on your USB.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top