It moves these directories to tmpfs (ram) - https://github.com/OpenMediaVa…ashmemory/default.sls#L40
Ah, thanks!
It moves these directories to tmpfs (ram) - https://github.com/OpenMediaVa…ashmemory/default.sls#L40
Ah, thanks!
I would leave it on to save the writes to the USB (that is what you are trying to save with the flash memory plugin anyway)...using a HDD as swap is still a good thing
Thanks. I don't really understand what the plugin actually does anyway. Which data does it prevent from being written to the USB?
I have OMV installed on a USB stick, and had previously used the flash memory plugin to help increase the life of the drive. I now have access to a HDD (that for some reason wouldn't hold linux on it, got erased on every reboot) which I am now using as a dedicated swap drive. Do I still need to use the flash memory plugin? I have updated fstab to use the new drive, but left the OS drive as instructed on the plugin settings page.
Thanks.
I am trying to set up the OpenVPN plugin so that I can bulk modify the client configurations before I download them, and not have to change them every time I create a new one. Is there a way to do this? In other words, I would like to have one set non-default client configuration that that is included with all certificates that are created using the plugin. Thanks.
When I try to install the docker image for seafile using their instructions, it fails giving this error:
I copy and paste their instructions word for word.
I also followed these instructions with the same problems:
Have you read this doc ? What do you want to know ?
You will find my working configuration in attachments. Just replace Host IP and Host Path.
The docker creates the mysql directory and files, the logs directory and files, and the seafile directory which remains empty. The shared directory I created has read/write/execute permissions for everyone. Am I doing something wrong? Do I need to install another docker before the seafile docker?
This is the log output:
*** Running /etc/my_init.d/01_create_data_links.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Apr 19 13:06:28 a74bca9ed5ea syslog-ng[19]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/99_mysql_setup.sh...
*** Booting runit daemon...
*** Runit started as PID 26
*** Running /scripts/start.py...
Apr 19 13:06:28 a74bca9ed5ea cron[36]: (CRON) INFO (pidfile fd = 3)
Apr 19 13:06:28 a74bca9ed5ea cron[36]: (CRON) INFO (Running @reboot jobs)
[2019-04-19 13:06:30] Now running setup-seafile-mysql.py in auto mode.
Traceback (most recent call last):
File "/scripts/start.py", line 86, in <module>
main()
File "/scripts/start.py", line 56, in main
init_seafile_server()
File "/scripts/bootstrap.py", line 130, in init_seafile_server
with open(join(topdir, 'conf', 'seahub_settings.py'), 'a+') as fp:
IOError: [Errno 2] No such file or directory: '/opt/seafile/conf/seahub_settings.py'
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 26)...
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
Apr 19 13:06:32 a74bca9ed5ea syslog-ng[19]: syslog-ng shutting down; version='3.13.2'
*** Killing all processes...
*** Running /etc/my_init.d/01_create_data_links.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Apr 19 13:08:42 a74bca9ed5ea syslog-ng[18]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/99_mysql_setup.sh...
*** Booting runit daemon...
*** Runit started as PID 25
*** Running /scripts/start.py...
Apr 19 13:08:42 a74bca9ed5ea cron[32]: (CRON) INFO (pidfile fd = 3)
Apr 19 13:08:42 a74bca9ed5ea cron[32]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
[2019-04-19 13:08:45] Now running setup-seafile-mysql.py in auto mode.
Traceback (most recent call last):
File "/scripts/start.py", line 86, in <module>
main()
File "/scripts/start.py", line 56, in main
init_seafile_server()
File "/scripts/bootstrap.py", line 130, in init_seafile_server
with open(join(topdir, 'conf', 'seahub_settings.py'), 'a+') as fp:
IOError: [Errno 2] No such file or directory: '/opt/seafile/conf/seahub_settings.py'
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 25)...
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
Apr 19 13:08:48 a74bca9ed5ea syslog-ng[18]: syslog-ng shutting down; version='3.13.2'
*** Killing all processes...
*** Running /etc/my_init.d/01_create_data_links.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
/bin/chown: cannot dereference '/var/log': Too many levels of symbolic links
*** /etc/my_init.d/10_syslog-ng.init failed with status 1
*** Killing all processes...
Alles anzeigen
Thanks.
I am trying to set up the OpenVPN plugin so that I can bulk modify the client configurations before I download them, and not have to change them every time I create a new one. Is there a way to do this? In other words, I would like to have one set non-default client configuration that that is included with all certificates that are created using the plugin. Thanks.
Thanks, I'll give the docker setup a try.
I am trying to setup MySQL, but I can not change the data directory. I was able to do so on OMV 3 by adding datadir = *********** into the extra options, but this crashes MySQL in OMV 4. Any way to change the data directory? Thanks.
I just updated to OMV 4 from 3, where I hade MySQL working. When I try to enable MySQL now, I get the following error:
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl start 'mysql.service' 2>&1' with exit code '1': Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(104): OMV\System\SystemCtl->exec('start', NULL, false)
#2 /usr/share/openmediavault/engined/module/mysql.inc(107): OMV\System\SystemCtl->enable(true)
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMV\Engined\Module\MySql->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusXX...', '/tmp/bgoutputVp...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
Nothing else has changed in the files, folders, or drive. I did not have the same problem in OMV 3. Any ideas?
Got it.
Thanks
If a plugin - Nginx, in this specific example - has components that have been updated, but are not being used in the current version, is it possible to update those components directly without breaking the plugin? The Nginx plugin for OMV uses Nginx 1.6.2, but Nginx is now up to version 1.14.0. Can I update Nginx, or will that break the plugin?
Does the answer to this specific example extend to other plugins and their respective components, or will it depend on the plugin and the components?
I just recently moved all my data to encrypted drives. So basically i have 2x3TB disks encrypted, to unlock them i use another small virtual disk (could be a usb in case of bare metal i guess) that contains the keyfiles. That small virtual drive is encrypted also, so basically I unlock this drive at boot which has the keys to unlock the other drives, at the end of the boot sequence the key disk gets unmounted and closed.
This was done in a combination of crypttab and a custom script embedded in the initramfs.
You can do this by using just crypttab and fstab, and let systemd take care......but since systemd auto creates the dependencies at boot whenever you attempt to close the key disk, systemd will close and unmount all the related devices.
How did you write your script in initramfs so that you could remove the usb key and keep the other encrypted drives mounted?