[SOLVED - misconception of "resync"] The Resync Tools gone

Discussion in 'General' started by axxies, Apr 15, 2021.

  1. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Is php7.2 the correct default for your OS version? Please do check.
     
  2. axxies

    axxies Member

    I have actually tested with 7.3 and 7.4 too. Same results.
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Same result or not, notably one should stick with the OS default php version when using ISPConfig.
     
  4. axxies

    axxies Member

    Sure, but none of the versions work. They all result in the same thing. This seems not to be the problem.
    May I ask what is the standard version for Buster 10?
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Look in the mysql error log and other log files (eg. daemon or syslog), it should say the reason why. Sometimes it's a bad config setting, sometimes corrupt db tables, etc. If you can't find any error in a log, you could try running the mysqld commandline from a shell and it might print an error there.
     
  7. axxies

    axxies Member

    Now I have reinstalled the VPS and it is like it was before. It can even handle the forced update. I am not sure but maybe (?) it's related to that I set a password during the MYSQL_SECURE_INSTALLATION and then I noticed that the "-p" switch wasn't there (check one of the screenshots). Now everything is up and works like a charm, EXCEPT that the Resync tools are with even fewer options.

    upload_2021-4-17_0-20-40.png

    upload_2021-4-17_0-8-37.png

    I will try something else now.

    Thank you everyone who has tried to help me so far. I really appreciate it!
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can also use the autoinstaller to make sure you don't do anything wrong: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
     
  9. axxies

    axxies Member

    The Resync problem, I know what is wrong now. It's actually not a two-way sync as I understand it, rather a one-way.
    It says this in the manual:

    upload_2021-4-17_16-56-52.png

    ...but this seem not to be correct. In order to be "synched" they have to be created in ISPconfig. I mean, the database and users belonging to it, must be registered in ISPconfig3 for ISPconfig3 to offer Resync for it. The above, yellow marked, from the manual seem not to be correct. I mean, this is exactly what I did so my new installation of ISPconfig3 was not aware of that there were databases and database users. I did the same with the websites, same there. They didn't show up as syncable services because ISPconfig3 didn't know of them.

    Now I tried to add one website manually and -tada!- Resync of websites was suddenly available.

    Since a database is associated with a website, all websites must be created before I can even get the resync to show up as a synchable service. Whether it will synch or not is unknown for now. I will get back on the matter.

    If I may ask for something, it would be to make ISPconfig work as it says in the manual or, if this is me not having English as my mother tongue, then perhaps I just need to read more carefully, but to me it does seem to be like I interpreted it.
     
  10. axxies

    axxies Member

    Is there a way to extract the created (in ISPconfig3) websites, databases, mailboxes etc from the source server, the settings I mean?

    Again, thank you all for your help in this! It's much appreciated!
     
    Last edited: Apr 17, 2021
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The manual tells you what it does: recreate all config files based on the database.

    For migration, take a look at https://www.ispconfig.org/add-ons/ispconfig-migration-tool/
     
  12. axxies

    axxies Member

    Yep, I know about the migration tool, I have bought it before. It messes up the structure. A client with ID 1 might get a migrated database with ID 4. It's confusing when having many sites. Unfortunately.
     
  13. axxies

    axxies Member

    Sorry to say, but I don't see that. Unless it is already created in ISPconfig3 it just doesn't read what is on disk and get that into ISPconfig3.
    That is the problem here.
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I don't see what you mean. I have used it myself recently and all was well.
     
  15. axxies

    axxies Member

    I just tested it. I placed a database I got from the source server in /var/lib/mysql/ . It was unknown to ISPconfig3 in the new server. Since I had created another database using ISPconfig3, Database synch showed up as a synchable service in ISPC3. When I ran the Resync it only resynched the database that was registered via ISPC3, not the database I placed directly in /var/lib/mysql (which was unknown to ISPC3).
     
  16. axxies

    axxies Member

    If I had not created a database at all in ISPC3, then Resync database would not be in the list of Resync Tools.
     
    Last edited: Apr 17, 2021
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I was talking about the migration tool, which works fine.
    Of course nothing was done with the database that was not added in ISPConfig.

    When you use ISPConfig, config files are generated based on the settings for the item. With a website for example, a vhost is created based on the settings in for the website. If you add a random vhost file, ISPConfig usually doesn't touch that at all - is it not known to the software because it is not in the database.

    See my explanation above.
     
  18. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    One more note, before you edited your comment, it said "Sorry to say, but I don't see that. Unless it is already created in ISPconfig3 it just doesn't read what is on disk and get that into ISPconfig3. That is the problem here."
    As I explained above, this would not work and never has worked, nor have we claimed anywhere that this would be the case.
     
    axxies likes this.
  19. axxies

    axxies Member


    Ok, but that is how I read it in the manual. I guess I have to blame that I am not native English speaking.
    :)
     
  20. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No problem. Glad it's clear now :)
     

Share This Page