Error - Restore admin.root.admin.tar.gz at 3 machnes !!!

ger64

Verified User
Joined
Apr 18, 2017
Messages
20
Hello, Dear DirectAdmin Lovers:

I have a problem with "saving" the [selected] package at "admin" level.

This issue is the deeper investigation from: https://forum.directadmin.com/threads/restore-not-restoring-packages.61815/#post-319080

So the first issue was when Restoring <admin>, the message: Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/xxx.pkg

So I was searching if I could make a [Reseller Package] at <admin> level. Yes I can.

And at other Resellers Levels I can ssave the package (and restore).

But when I want to choose as <admin> the package at server.domein.com:2222/CMD_MODIFY_RESELLER?user=admin, I can save it, but it's not saved.

And so I can also not restore.

Even more after restore admin.root.admin.tar.gz - I can not use SSH (SFTP) at admin level etc.
So al lot of problems after a admin.root.admin.tar.gz restore.

- - -

When I look in the /usr/local/directadmin/data/users/admin/

...there's nothing inside the "packages.list"

drwx------. 2 diradmin diradmin 6 9 aug 12:37 packages
-rw-------. 1 diradmin diradmin 0 9 aug 12:37 packages.list

I have this problem on 3 DirectAdmin installations
2 Installations are 1 week old.
1 Installation is 2 years old.

Can it be a issue from quotas?

At installation with CentOS 7, I had the:
/dev/mapper/centos_net3-root on / type xfs (rw,relatime,attr2,inode64,noquota)

So I have made:
nano /etc/default/grub
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_net3/root rd.lvm.lv=centos_net3/swap rhgb quiet rootflags=uquota,pquota"
[Save]

cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot

cd /usr/local/directadmin
./directadmin c | grep use_xfs_quota

Says:
use_xfs_quota=1

Reset users quota:

echo "action=rewrite&value=quota" >> /usr/local/directadmin/data/task.queue

- - - - - -

Has somebody any issue with that or maybe al solution?

Thanks for the Help.
 
I have tried a lot of diferent settings (with packages), but is each time: (see img)Schermafbeelding 2020-08-09 om 02.18.32.jpg
 
Please read carefully what @smtalk ask
He asked to you if you are willing to install pre release setup files of DA, that is NOT 1.613, that is the latest released version
read the link he provides
 
Please read carefully what @smtalk ask
He asked to you if you are willing to install pre release setup files of DA, that is NOT 1.613, that is the latest released version
read the link he provides

Sorry for my bad englsh, ok?

Thanks @smtalk and @Active8 for your answers.
I now understand what @smtalk asking me.

Honestly, I don/t want to install pre release. My system is now stable and working fine, whithout the <admin> restore.

I don't want more (unstable) issues (tempory).

The only problem i have now are the <user level> files (to restore).

So I will move them to a new Reseller account, so that they can be Restored (if necessary).

To get my DA system (from the start (empty server) costs me 2 days work (with DMARC, SPF, DKIM) etc.

- - -
Maybe I can ask it another way (first) ...

Is it possible to save an excisting reseller package at ...

server.domein.com:2222/CMD_MODIFY_RESELLER?user=admin ?

Because I'am on the <Admin Level>.

When I save the single ...

Bandwidth (MB) [v] Unlimited
Disk Space (MB) [v] Unlimited
Inodes [v] Unlimited
Domains [v] Unlimited
Sub-Domains [v] Unlimited

etc ... it stays saved.
 
Last edited:
@smtalk Error is occuring again on a new install Directadmin 1.61.5
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/pakket1.pkg
When looking in the backup, the package is present, but is not restored.

I found this in the Directadmin errortasq.log file.
Code:
2020:11:02-15:45:05: ConfigFile::writeFile(./data/users/admin/user.usage) : Timestamp from when it was read is different, overwriting anyway
2020:11:02-15:45:05: ConfigFile::writeFile(./data/users/admin/user.conf) : Timestamp from when it was read is different, overwriting anyway
2020:11:02-15:45:05: ConfigFile::writeFile(./data/users/admin/reseller.conf) : Timestamp from when it was read is different, overwriting anyway
2020:11:02-16:15:01: User admin has back with creator=root.  Changing it to creator=root
2020:11:02-16:15:01: ConfigFile::writeFile(/etc/virtual/admindomain.nl/quota) : Timestamp from when it was read is different, overwriting anyway
2020:11:02-16:15:04: Error restoring admin: Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/pakket1.pkg<br>
<br>
 
Last edited:
Then it's a different issue. I did get the admin account restored, only the packages couldn't be restored.
 
@smtalk
Centos 7
I have problem too, I can confirm :(
look like some variable went wrong

I just create new admin and create backup and restore, away error about path

Even I create backup from new admin and do same thing, Not work ===


Pre-release still has problem
Code:
Compiled on 'CentOS 7.0 64-Bit'
Compile time: Nov 11 2020 at 14:16:41
Timestamp: '1605129363'
Compiled with IPv6
Static binary: yes
commit sha: 67c8961
gettext support: yes
gettext path: /usr/local/directadmin/data/lang


Unable to read %s's package file %s for restoring: %sadmin12345/home/admin12345/backups/backup/packages/ResellerPackageAuto.pkg
 
Last edited:
Thanks all.
Sorry for my bad English ...

I Still have the same problem after 6 months ... (See the begin post above)

  • Can not restore - admin.root.admin.tar.gz
  • Subject: An error occurred during the restore.

Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_1.pkg
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_2.pkg
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_3.pkg
Etc.


After Restore:
  1. DA Login 'admin' is whithout password, so I must with SSH Access each time make/set again "passwd admin".
  2. At DA > Modify "admin" > 'SSH Access' has a [v] but SSH is not working in FileZilla. After make it [ ] and Save it and again make it [v] it works again at FileZilla. So after restore 'admin' dissapears from the sshd_config.

Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.15.2.el7.x86_64
Architecture: x86-64

Apache 2.4.46Running
DirectAdmin 1.61.5Running
Exim 4.94Running
MySQL 8.0.21Running
Named 9.11.4Running
sshdRunning
dovecot 2.3.13 (89f716dc2)Running
pure-ftpd 1.0.49Running
Php 7.4.15Installed

Code:
2021:02:14-01:42:01: User admin has back with creator=root.  Changing it to creator=root
2021:02:14-01:42:05: Error restoring admin: Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_1_100000.pkg<br>
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_2_200000.pkg<br>
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_3_300000.pkg<br>
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/resel_4_400000.pkg<br>
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/reseller_general.pkg<br>
<br>

2021:02:14-01:42:06: ConfigFile::writeFile(./data/users/admin/user.conf) : Timestamp from when it was read is different, overwriting anyway
2021:02:14-01:42:06: ConfigFile::writeFile(./data/users/admin/reseller.conf) : Timestamp from when it was read is different, overwriting anyway

In: /admin.root.admin/backup/packages.list:

resel_1_100000
resel_2_200000
resel_3_300000
resel_4_400000
reseller_general

In: /admin.root.admin/backup/reseller_packages

resel_1_100000.pkg
resel_2_200000.pkg
resel_3_300000.pkg
resel_4_400000.pkg
reseller_general.pkg

Somebdy has some ideas, what's the clue?
 
Last edited:
It's a bug, that much is clear, since more of us have this issue with packages when restoring any admin account (not only root admin).

As for the other 2 issues on restoring, I don't know.
I just wonder when the packages bug will be fixed because this is already known for 7 months.

Maybe when fixing this, they can have a look at the ssh issue too. Might be related somehow.
Otherwise you might have to send in a ticket.
 
Upping this thread again. This needs to be fixed. Having the same issue now and it's known already since august last year.
Code:
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/pakket1.pkg
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/pakket2.pkg
Unable to read %s's package file %s for restoring: %sadmin/home/admin/backups/backup/packages/pakket3.pkg
Also happening with other admin accounts on restore, not only root admins.:(

Is this being investigated yet?
Or is there a file we can manually adjust to fix this for the time being?
 
Problem: since 1 year:

Today, I had to restore an admin account, en got also the problem that I could not login anymore.

So problem, with, problem and more, so I had to restore quickly the whole server (without damage to other customers fortunally) ... Ik have 48 hours backups and also Snapshots, so ...

Anyway ...

It's always the problem with the admin account (restore).

So for the test, I made today a administrator "testadmin" account with a package.

Afther creating I saw (see image 1)

At the FileZilla Server: (see image 2)

So I could not restore this testadmin.

- - - -

So is there a workout to get of this one year long problem?

Thanks for the help ...
 

Attachments

  • sa 2021-08-25 om 19.09.23.jpg
    sa 2021-08-25 om 19.09.23.jpg
    45.7 KB · Views: 8
  • sa 2021-08-25 om 19.20.43.jpg
    sa 2021-08-25 om 19.20.43.jpg
    68.2 KB · Views: 8
The story goes on ...

Just did the restore again, with the admin (see image 3).

... and had to reset the password (with Terminal - no problem, because we use key) ...

And indead again the "Problems occured" with restore package (see image 4)

... So also the "Restore Problem" after 1 year.

Server Version1.62.7
 

Attachments

  • sa 2021-08-25 om 19.24.13.jpg
    sa 2021-08-25 om 19.24.13.jpg
    47.6 KB · Views: 5
  • sa 2021-08-25 om 19.26.52.jpg
    sa 2021-08-25 om 19.26.52.jpg
    100.4 KB · Views: 6
Last edited:
Well ... to continue ...

It seems this problem is out of issue ???

- - -
Today I have installed a new server with Centos 8.

So everything new out of the box. Total clean.

New and Fresh, server, Centos 8, DirectAdmin (installed with the auto install script).

Everything without changing something in the configuration at DA.

And the first and only thing I made was. Add Reseller + Package + User.

- - -

Made backup (see image 1)

And Restored: (see image2)

And again the Error.

I have made a seperate "restore" and only with the "admin.root.admin.tar.zst" there's the error.

Not with the:
- reseller.admin.deelnemers.tar.zst
- user.deelnemers.abcdefghij.tar.zst

So the error must be in the clean package installation.

I will stop searching this problem ...

Please DirectAdmin - make it workable.

Thanks
 

Attachments

  • sa 2021-08-27 om 15.54.05.jpg
    sa 2021-08-27 om 15.54.05.jpg
    47.6 KB · Views: 5
  • sa 2021-08-27 om 15.45.45.jpg
    sa 2021-08-27 om 15.45.45.jpg
    120.3 KB · Views: 5
Last edited:
It seems this problem is out of issue ???
You could have spared you the effort. In post #8 I already stated this happened also on a freshly installed system.

There were no updates or fixes for this since that time. So I'm not wondering this is still happening.
 
Back
Top