TurnKey Linux Virtual Appliance Library

TKLBAM issue

First of all my congratulations for the excellent work.

I tried to do a backup and restore.

The backup ends without errors, while the recovery crashes and isn't complete.

could you help me?

I attach the logs.

Tnx

Jeremy's picture

Looks like you've got some package issues

 

The following packages have unmet dependencies:
  proftpd: Conflicts: ftp-server
  proftpd-basic: Conflicts: ftp-server
                 Conflicts: proftpd (<= 1.3.1-11) but 1.3.1-6ubuntu1 is to be installed
E: Broken packages
 
I'm not sure what the issue is caused by. Did you uncomment or add any repos from standard prior to the backup?

no, I have not changed

no, I have not changed it.

the contents of the file /etc/apt/sources.list.d/source.list is:

deb http://archive.turnkeylinux.org/ubuntu hardy main
deb http://archive.turnkeylinux.org/ubuntu hardy universe

deb http://archive.ubuntu.com/ubuntu hardy main
deb http://archive.ubuntu.com/ubuntu hardy universe
# deb http://archive.ubuntu.com/ubuntu hardy restricted
# deb http://archive.ubuntu.com/ubuntu hardy multiverse

deb http://archive.ubuntu.com/ubuntu hardy-updates main
deb http://archive.ubuntu.com/ubuntu hardy-updates universe
# deb http://archive.ubuntu.com/ubuntu hardy-updates restricted
# deb http://archive.ubuntu.com/ubuntu hardy-updates multiverse

# deb http://archive.ubuntu.com/ubuntu hardy-backports main
# deb http://archive.ubuntu.com/ubuntu hardy-backports universe
# deb http://archive.ubuntu.com/ubuntu hardy-backports restricted
# deb http://archive.ubuntu.com/ubuntu hardy-backports multiverse


Liraz Siri's picture

How does it crash?

TKLBAM is developed in Python, and Python programs usually give an exception when they crash. Did you run TKLBAM via the shell or the webmin module? Unfortunately, I can't see from the restore log how it crashed. I'll have to look into capturing exceptions in the logs but in the meantime it would be helpful if you could try running the tklbam-restore command in a shell and cut and pasting the exception...

Just a guess, but could you try increasing the mysql packet size?

Initially I used the webmin

Initially I used the webmin interface.

After receiving the advice, I used the console and the error received was:

ERROR 1153 (08S01) at line 100002: Got a packet bigger than 'max_allowed_packet' bytes

Following the advice I changed the parameter max_allowed_packet to webmin but the error remained.

I then manually changed the parameter max_allowed_packet (150M) in the my.cnf file but the problem persists and the procedure returns the error written above.


sql solved, unmet dipendencies no!

I tried to terminate the instance amazon and generate a new instance.

After changing the parameter sql and have taken a new restore, the procedure was completed without error 1153. It remains, however, this error

The following packages Have unmet dependencies:
   proftpd: Conflicts: ftp-server
   proftpd-basic: Conflicts: ftp-server
                  Conflicts: proftpd (<= 1.3.1-11) But 1.3.1-6ubuntu1 is to be in
stalled

After the restore I can only access the console, while webmin does not start!


I removed and reinstalled

I removed and reinstalled proftpd and now the procedure does not generate errors.

But when I restart webmin still not available ...


From the console I ran the

From the console I ran the command:

apt-get install webmin

and now webmin starts.

But I still doubt that something will not work in the future ...

I attach the new log to restore in file tklbam-restore_001.zip


Jeremy's picture

All looks ok to me

But I'm a novice when it comes to this stuff so I'd wait for a second opinion :)

My doubts was about my work

My doubts was about my work (I hope I have done everything correctly) and not about the system :-)

Liraz Siri's picture

Package conflicts, restarting services, rebooting after restore

Regarding the package conflict I think the appliance you tried to restore to had ftp-server installed and that was in conflict with proftpd on the backed up system (or the other way around...). You didn't tell us which appliance version exactly you were backing up and which you were restoring to but I suspect you may be using TKLBAM to upgrade between Hardy (locally installed) and Lucid (in the cloud).

Could you share the appliance versions you were backing up/restoring to?

Regarding the issue with MySQL not accepting the maximum packet size, it sounds like you just needed to restart the service so that the configuration change would apply.

I'm not sure why Webmin was giving you trouble after the restore but it's recommended to reboot after a restore to restart all the services. Did you try that?

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)