Giter Site home page Giter Site logo

Comments (11)

Joulinar avatar Joulinar commented on August 27, 2024

It would be really nice if you could write a few more words about your problem. What did you do before or were there any changes? A little more information would be appreciated.

for testing

sudo -u mysql -g mysql touch /var/lib/mysql/demo.file
ls -la /var/lib/mysql/

from dietpi.

fagron avatar fagron commented on August 27, 2024

Sorry.

I would like to move dietpi_userdata to HDD later.
My first step was to copy dietpi_userdata to HDD.
My second step was to rename dietpi_userdata to dietpi_userdata_old. (Test if the nextcloud still works)
Then I restarted all services.

"[ OK ] DietPi-Services | restart : redis-server
[FAILED] DietPi-Services | restart : mariadb
[ OK ] DietPi-Services | restart : php8.2-fpm
[ OK ] DietPi-Services | restart : nginx"

Then I have "systemctl restart mariadb.service"

"Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xeu mariadb.service" for details."

from dietpi.

fagron avatar fagron commented on August 27, 2024
root@DietPi:~# sudo -u mysql -g mysql touch /var/lib/mysql/demo.file
ls -la /var/lib/mysql/
touch: '/var/lib/mysql/demo.file' kann nicht berührt werden: Datei oder Verzeichnis nicht gefunden
ls: Zugriff auf '/var/lib/mysql/' nicht möglich: Datei oder Verzeichnis nicht gefunden

from dietpi.

Joulinar avatar Joulinar commented on August 27, 2024

My second step was to rename dietpi_userdata to dietpi_userdata_old. (Test if the nextcloud still works)

This is causing your issue.

Pls revert all changes you have done. To move dietpi_userdata use drive manager. There is a build-in function to handle this scenario.

from dietpi.

fagron avatar fagron commented on August 27, 2024

Ok, I have undone all the changes.

How can I now move the dietpi_userdata directory to HHD without mariadb.service and the nextcloud causing problems?

from dietpi.

fagron avatar fagron commented on August 27, 2024
root@DietPi:~# sudo -u mysql -g mysql touch /var/lib/mysql/demo.file
ls -la /var/lib/mysql/
insgesamt 188920
drwxr-xr-x 6 mysql  mysql       4096 21. Jun 12:51 .
drwxrwxr-x 9 dietpi dietpi      4096  3. Aug 2023  ..
-rw-rw---- 1 mysql  mysql     425984 21. Jun 12:37 aria_log.00000001
-rw-rw---- 1 mysql  mysql         52 21. Jun 12:37 aria_log_control
-rw-rw---- 1 mysql  mysql          9 21. Jun 12:28 ddl_recovery-backup.log
-rw-rw---- 1 mysql  mysql          9 21. Jun 12:51 ddl_recovery.log
-rw-r--r-- 1 root   root           0 12. Feb 17:25 debian-10.11.flag
-rw-r--r-- 1 mysql  mysql          0 21. Jun 12:51 demo.file
-rw-rw---- 1 mysql  mysql      16649 21. Jun 12:37 ib_buffer_pool
-rw-rw---- 1 mysql  mysql   79691776 21. Jun 12:36 ibdata1
-rw-rw---- 1 mysql  mysql  100663296 21. Jun 12:36 ib_logfile0
-rw-rw---- 1 mysql  mysql   12582912 21. Jun 12:51 ibtmp1
-rw-rw---- 1 mysql  mysql          0 13. Jul 2023  multi-master.info
drwx------ 2 mysql  mysql       4096 13. Jul 2023  mysql
-rw-r--r-- 1 root   mysql         15 13. Jul 2023  mysql_upgrade_info
drwx------ 2 mysql  mysql      16384 20. Jun 22:23 nextcloud
drwx------ 2 mysql  mysql       4096 13. Jul 2023  performance_schema
drwx------ 2 mysql  mysql      12288 13. Jul 2023  sys

from dietpi.

Joulinar avatar Joulinar commented on August 27, 2024

How can I now move the dietpi_userdata directory to HHD without mariadb.service and the nextcloud causing problems?

As stated more than once, use drive manager

from dietpi.

fagron avatar fagron commented on August 27, 2024

Only use the drive manager?
What about the parameter "SOFTWARE_NEXTCLOUD_DATADIR" in the dietpi.txt?
When do I have to change it?
Before the reboot?

from dietpi.

Joulinar avatar Joulinar commented on August 27, 2024

Simply go into drive manger, select your HDD and select the User data option. Nothing else to change.

from dietpi.

fagron avatar fagron commented on August 27, 2024

Thank you, it works.

from dietpi.

Joulinar avatar Joulinar commented on August 27, 2024

ok I will close the topic for now, feel free to reopen if needed.

from dietpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.