thx zoki!
ok, looks good.
got space on main part, docker is running, reboot done.
THX soma and zoki again, back to business
thx zoki!
ok, looks good.
got space on main part, docker is running, reboot done.
THX soma and zoki again, back to business
hi,
sorry, no time too test, so i just test it today, but got error on point 4-5 ...
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.UTF-8; omv-salt deploy run --no-color omvextras 2>&1' with exit code '1': greeNAS.GREEN:
----------
ID: omvextrasbaserepo
Function: pkgrepo.managed
Name: deb https://openmediavault-plugin-developers.github.io/packages/debian usul main
Result: True
Comment: Package repo 'deb https://openmediavault-plugin-developers.github.io/packages/debian usul main' already configured
Started: 10:40:50.817774
Duration: 282.732 ms
Changes:
----------
ID: deb https://openmediavault-plugin-developers.github.io/packages/debian usul-testing main
Function: pkgrepo.managed
Result: True
Comment: Package repo 'deb https://openmediavault-plugin-developers.github.io/packages/debian usul-testing main' already configured
Started: 10:40:51.100987
Duration: 243.383 ms
Changes:
----------
ID: deb https://openmediavault-plugin-developers.github.io/packages/debian usul-extras main
Function: pkgrepo.managed
Result: True
Comment: Package repo 'deb https://openmediavault-plugin-developers.github.io/packages/debian usul-extras main' already configured
Started: 10:40:51.344767
Duration: 295.012 ms
Changes:
----------
ID: deb [arch=amd64] https://download.docker.com/linux/debian buster stable
Function: pkgrepo.managed
Result: True
Comment: Package repo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' already configured
Started: 10:40:51.640105
Duration: 240.476 ms
Changes:
----------
ID: deb http://linux.teamviewer.com/deb stable main
Function: pkgrepo.managed
Result: True
Comment: Package repo 'deb http://linux.teamviewer.com/deb stable main' already configured
Started: 10:40:51.880942
Duration: 242.177 ms
Changes:
----------
ID: configure_apt_pref_omvextras
Function: file.managed
Name: /etc/apt/preferences.d/omvextras.pref
Result: True
Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state
Started: 10:40:52.127037
Duration: 97.152 ms
Changes:
----------
ID: refresh_database_apt
Function: module.run
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 746, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 377, in _call_function
six.reraise(*sys.exc_info())
File "/usr/lib/python3/dist-packages/salt/ext/six.py", line 693, in reraise
raise value
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 360, in _call_function
return self._function(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/module.py", line 428, in run
_func, returner=kwargs.get("returner"), func_args=kwargs.get(func)
File "/usr/lib/python3/dist-packages/salt/states/module.py", line 473, in _call_function
mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 159, in call_function
return salt_function(*function_args, **function_kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/modules/aptpkg.py", line 406, in refresh_db
raise CommandExecutionError(comment)
salt.exceptions.CommandExecutionError: E: Failed to fetch https://ookla.bintray.com/debian/dists/generic/InRelease 403 Forbidden [IP: 34.209.123.136 443]
E: The repository 'https://ookla.bintray.com/debian generic InRelease' is no longer signed.
Started: 10:40:52.226040
Duration: 10485.493 ms
Changes:
Summary for greeNAS.GREEN
------------
Succeeded: 6
Failed: 1
------------
Total states run: 7
Total run time: 11.886 s in /usr/share/php/openmediavault/system/process.inc:195
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusDP...', '/tmp/bgoutputpc...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Display More
any idea?
looks good soma, THX, you have tested it?
hi folks,
is it posible to move runing docker installation to another location without losing anything?
if i change the path here - what will happend? will omv just move all to the other location so i can start the containers and everything will work like befor?
why will i do this? i'm running out of storage on my system disk so i would plan to move docker to the same part where the configs are saved.
(followed the good old technodad tutorials - so configs are on a other part in /appdata/ )
anyone done this bevor?
or: whats about that /var/lib/docker/overlay2 folder? that one will eat the most of my space
and, yes, if i start over with my nas next time, i will just make a bigger system partition, but, not now.
thx
draddy
hi all,
1st, system is online!
i just try to clone that HDD with HDClone - the tool called some errors on 6 Sectors and i decide to just ignore that.
after change the old to the new HDD the nas starts as normal, all data in place, all services work - i think i will see if somethink wrong with it the next few days, but all in all it looks consistent.
so again, thx all
hi,
first, THX will try later.
1 question, my damaged HDD got Lable NAS1 - so i just put in the new one, copy all data to the new one, shutdown, plug off the old on, restart and follow your instructions, right?
hi,
can you give me some more details Soma
the new device should arrive today.
may you can offer a small step by step how-to to me?
so i'm hope you will not the only one who read this
the data will not be that big problem, have backups of important things.
i discovered it when nextcloud stop working (nextcloud data are saved on that disk) - so a copy job would also ok for me.
how can i manage that lable part? i can't just build in the new disk and name it NAS1 i think
on windows i would just add the new one, copy all data, disconnet the old one and set drive letter of the new disk to that from the old one^^
hi all,
need some tipps plz.
my main Datadisk is going down (today some services dosen't work, and then the shock: sdb is going down - could reup it as sdd but, its time for a new disk ...)
what is the best practice to do?
cloning the disk by using a other system and tools like hdd clone?
build the new one in and copy everything?
whats about the lable? most of my services connect to the disk by the lable name "disk-by-lable-nas1" so the new disk need the same lable.
thx and regards
draddy
hey,
maybe that will help you DB Backup & Restore
in the last post you will find the scripts - was designed for backups so it should work.
if it dosn't automatically renew: watch this add in the how-to.
hi,
have anyone run zoneminder in omv5 as a docker?
maybe a "ready to use" composer file?
thx all
oh now, that will sometimes appear but in my case it stuck at some point and lost config file for nginx / omv ... that was just the default one and broke down with the other system config i think, but don't know, maybe the boss can just work with that infos.
what ever, maybe my nas got a sniff or something like this
the config worked all day now and for many updates - so maybe it was just monday on thursday - i don't know
WTF! ...
here we go:
after that and a lot of google i looked into:
nano /etc/nginx/sites-enabled/openmediavault-webgui
and found
listen [::]:80 default_server ipv6only=off;
listen [::]:443 default_server ipv6only=off ssl deferred;
ssl_certificate /etc/ssl/certs/openmediavault-.crt;
ssl_certificate_key /etc/ssl/private/openmediavault-.key;
include /etc/nginx/openmediavault-webgui.d/*.conf;
compare with the version macom give to me and uncommend to
listen [::]:80 default_server ipv6only=off;
# listen [::]:443 default_server ipv6only=off ssl deferred;
# ssl_certificate /etc/ssl/certs/openmediavault-.crt;
# ssl_certificate_key /etc/ssl/private/openmediavault-.key;
include /etc/nginx/openmediavault-webgui.d/*.conf;
new try with apt-get install --> error --> deeper look now tell me a bind error (sure, :80 will be used by my letsencrypt docker ... )
docker stop letsencrypt
again apt-get install
its done ... try to connect web gui --> nope --> ok, i tried with MY port 8080 ... so lets try port 80 --> welcome back OMV - change ports twice --> error occure ... ok reload site: not found (bad? NO its good) try again with port 8080 --- here we go!
docker start letsencrypt
looks like everything is back in place
should it only be happend cause i have not activate SSL and changed http port??
noone else changed the omv port away from 80?
plz check that to prevent other from getting trouble.
i'm out
thx!
will try it - if my omv is working again -.-
€dit: works
hi,
just see updates in the house - so i just do like normal in omv interface - updates - check the all box click install.
ERROR ERROR ERROR ... - close - reload - omv not reachable ...
SSH: apt-get update --> apt-get upgrade
Setting up nginx-full (1.14.2-2+deb10u3) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-08-27 10:03:48 CEST; 13ms ago
Docs: man:nginx(8)
Process: 24003 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Aug 27 10:03:48 greeNAS.GREEN systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 27 10:03:48 greeNAS.GREEN nginx[24003]: nginx: [emerg] BIO_new_file("/etc/ssl/certs/openmediavault-.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssl/certs/openmediavault-.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Aug 27 10:03:48 greeNAS.GREEN nginx[24003]: nginx: configuration file /etc/nginx/nginx.conf test failed
Aug 27 10:03:48 greeNAS.GREEN systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Aug 27 10:03:48 greeNAS.GREEN systemd[1]: nginx.service: Failed with result 'exit-code'.
Aug 27 10:03:48 greeNAS.GREEN systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-full (--configure):
installed nginx-full package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.14.2-2+deb10u3.1~) | nginx-light (<< 1.14.2-2+deb10u3.1~) | nginx-extras (<< 1.14.2-2+deb10u3.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (>= 1.14.2-2+deb10u3) | nginx-light (>= 1.14.2-2+deb10u3) | nginx-extras (>= 1.14.2-2+deb10u3); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault:
openmediavault depends on nginx; however:
Package nginx is not configured yet.
Package nginx-full which provides nginx is not configured yet.
dpkg: error processing package openmediavault (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-full
nginx
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
Display More
need help plz to get it working again.
thx all
hi folks,
just updated my Nextcloud to 18.0.8 and do a routine check in Settings to check its all right ... but what i see: Nextcloud 19.0.2 available
anyone have done it? - some little how to about it? - something critical to know?
thx
hi,
situation in short:
OMV 5 NAS is running with nginx / Letsencrypt Proxy - work well with Nextcloud and all the stuff.
2nd maschin in my Network is used for testing stuff and / or sometime dedicated gameplay servers (Minecraft, Factorio what ever)
atm this 2nd is running a Minecraftserver - to control the server (start, stop, backup and stuf like this) is use crafty controller. crafty is running its own tornado server, i can access in the local network with https://IpOfHost:8000 - now a friend would like to have the ability to restart the server if it hangs. "Yeah, sure, i will just forward the port for you" ... and - he can only access the crafty page with Microsoft edge, all other browsers say bad Certificate and don't let you access ...
ok - np - i just redirect it with my nginx proxy ...
location /crafty {
return 301 $scheme://$host/crafty/;
}
location ^~ /crafty/ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_crafty crafty;
rewrite /crafty(.*) $1 break;
proxy_pass https://192.168.177.13:8000/;
}
Display More
all right, little test, all right i get the login page of crafty control, easy.
"i see the login, but after login i only get a 405 ..." was my friend crying .. lets try, yeah, he's right, no way to login ...
nginx/1.16.1
soo, now you are on; some ideas? what is to change?
if i local access the crafty server, the url will change to https://IpOfHost:8000/admin/dashboard where "admin" is the username - if i try to login with mydomain.tld/crafty - it change zu mydomain.tld after klicking login.
hopefully someone have an idea what to change to get it working.
thx
jens