ubuntuusers.de

nextcloud 12 nach zugriff nicht mehr ereichbar!

Status: Gelöst | Ubuntu-Version: Ubuntu 16.04 (Xenial Xerus)
Antworten |

schrauberjo

Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

Sehr geehrte mit streiter hir im Forum,

Ich betreibe ein Nextcloud Server auf basis von Ubuntu. Nextcloud wurde über ein snap instaliert. Als ich gestern auf mein Server zugegriffen habe, bekam ich plötzlich eine Fehlermeldung. Nachdem ich den Server neugestartet habe, komme ich nicht mehr auf die nextcloud! Ich habe eine automatische portweiterleitung von 80 auf 443 eingerichtet. Wenn ich über die Feste IP auf den Server zugreifen möchte komme ich auf die "Its Works!" Seite von Apache.

Soweit ich das beurteilen kann kann es ja dann am Apache nicht liegen. Aber wie ist es möglich das nach einem neustart nicht mehr die nextcloud angezeigt bekomme. An den Dateien habe ich ja nichts verändert.

erbitte dringend hilfe den ich bin auf meine Private nextcloud angewiesen und mit meinem Latain am ende.

mit freundlichen grüßen schrauberjo

rafi

Avatar von rafi

Anmeldungsdatum:
7. Februar 2006

Beiträge: 1050

Wohnort: Baden-Baden

steht der Server bei dir?

Kannst du mit 127.0.0.1 lokal vom Server darauf zugreifen?

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

edit:( jetzt im nachhinein, habe ich das mit der 127.0.0.1 doch verstanden und werde das zu Hause testen.)

jetzt nicht aber bei mir zu Hause. Kann aber JETZT über ssh zugreifen.

ich habe die Feste IP 192.168.188.5 festgelegt, über diese ich auf die Its Works Seite komme.

danke für die schnelle antwort. freue mich auf weiteren INPUT.

mit freundlichen grüßen schrauberjo

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

also hab mal eben nach gesehen unter:

Lokal: 127.0.0.1 : Its Works
Lokal: 192.168.188.5: Its Works 
Lokal: schrauberjo.ddns.net : Seite wurde nicht gefunden.
im Netz von Laptop: 192.168.188.5 Its Works
und zu guter letzt die ddns: schrauberjo.ddns.net: Seite wurde nicht gefunden.

hoffe das hilft

mit freundlichen grüßen schrauberjo

rafi

Avatar von rafi

Anmeldungsdatum:
7. Februar 2006

Beiträge: 1050

Wohnort: Baden-Baden

Das Problem scheint es öfters zu geben

https://help.nextcloud.com/t/nextcloud-not-working-after-reboot-ubuntu/23201/9

Probier mal auf dem server

1
sudo service apache2 restart

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

also da ich ja schon nach auftreten des Problems den Server neu gestartet habe und ich apache jetzt auch noch mal neu gestartet habe. bleibt das Problem weiter bestehen.

werde mir heute abend mal den Beitrag näher ansehen, Danke dafür 😉

wurde das Problem dort gelöst ?

mit freundlichen grüßen

schrauberjo

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

Hab mal meine default-ssl.conf unter die Lupe genommen. doch fällt mir da nix auf.

<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                ServerAdmin webmaster@localhost

                DocumentRoot /var/www/html

                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
                # It is also possible to configure the loglevel for particular
                # modules, e.g.
                #LogLevel info ssl:warn

                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined

                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
                # include a line for only one particular virtual host. For example the
                # following line enables the CGI configuration for this host only
                # after it has been globally disabled with "a2disconf".
                #Include conf-available/serve-cgi-bin.conf

                #   SSL Engine Switch:
                #   Enable/Disable SSL for this virtual host.
                SSLEngine on

                #   A self-signed (snakeoil) certificate can be created by installing
                #   the ssl-cert package. See
                #   /usr/share/doc/apache2/README.Debian.gz for more info.
                #   If both key and certificate are stored in the same file, only the
                #   SSLCertificateFile directive is needed.
                SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
                SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

Des weiteren ist meine apache.conf so Konfiguriert, was mir nicht verändert vorkommt

  GNU nano 2.5.3                              Datei: apache2.conf

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#       /etc/apache2/
#       |-- apache2.conf
#       |       `--  ports.conf
#       |-- mods-enabled
#       |       |-- *.load
#       |       `-- *.conf
#       |-- conf-enabled
#       |       `-- *.conf
#       `-- sites-enabled
#               `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.

mit freundlichen grüßen schrauberjo

sebix Team-Icon

Ehemalige

Anmeldungsdatum:
14. April 2009

Beiträge: 5582

schrauberjo schrieb:

Als ich gestern auf mein Server zugegriffen habe, bekam ich plötzlich eine Fehlermeldung.

Die da waere? schrauberjo schrieb:

Hab mal meine default-ssl.conf unter die Lupe genommen. doch fällt mir da nix auf.

<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                ServerAdmin webmaster@localhost

                DocumentRoot /var/www/html

                # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
                # error, crit, alert, emerg.
                # It is also possible to configure the loglevel for particular
                # modules, e.g.
                #LogLevel info ssl:warn

                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined

                # For most configuration files from conf-available/, which are
                # enabled or disabled at a global level, it is possible to
                # include a line for only one particular virtual host. For example the
                # following line enables the CGI configuration for this host only
                # after it has been globally disabled with "a2disconf".
                #Include conf-available/serve-cgi-bin.conf

                #   SSL Engine Switch:
                #   Enable/Disable SSL for this virtual host.
                SSLEngine on

                #   A self-signed (snakeoil) certificate can be created by installing
                #   the ssl-cert package. See
                #   /usr/share/doc/apache2/README.Debian.gz for more info.
                #   If both key and certificate are stored in the same file, only the
                #   SSLCertificateFile directive is needed.
                SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
                SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

Die Datei ist syntaktisch inkorrekt, da fehlt am Ende was.

In welchem Pfad ist denn nextcloud installiert? Der DocumentRoot ist /var/www/html, wo wohl die Standardseite mit "It works!" liegt. Oder bringt eventl das Snap einen Webserver mit? Gibt es in /etc/apache2/sites-enabled/ noch andere Dateien?

rafi

Avatar von rafi

Anmeldungsdatum:
7. Februar 2006

Beiträge: 1050

Wohnort: Baden-Baden

Bist du weitergekommen? Da ich selber kein snap nutze ists bisschen schwer dir da zu helfen.

Hast du viel in der cloud ausser Dateien? Ggf könntest du sie ja ansonsten nochmal installieren. Das kann natürlich kein Dauerlösung sein bei einem reboot, aber vll gehts ja dann und sogar nach dem reboot

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

Danke, für die Antworten ich glaube wir sind auf einem guten weg, und kurz vor Problem Lösung.

sebix"Die da waere?"

Diese Website ist nicht erreichbar
schrauberjo.ddns.net hat die Verbindung abgelehnt.
Versuchen Sie Folgendes:

Verbindung prüfen
Proxy und Firewall prüfen
ERR_CONNECTION_REFUSED

sebix"Die Datei ist syntaktisch inkorrekt, da fehlt am Ende was."

rafi"Bist du weitergekommen? Da ich selber kein snap nutze ists bisschen schwer dir da zu helfen. Hast du viel in der cloud ausser Dateien? Ggf könntest du sie ja ansonsten nochmal installieren. Das kann natürlich kein Dauerlösung sein bei einem reboot, aber vll gehts ja dann und sogar nach dem reboot"

Es ist jetzt schon ca 6 Monate her als ich das ganze konfiguriert habe und bis her lief allles super selbst nach reboot. da scheint sich das Problem etwas von dem im Nextcloud forum ab zu heben.

und mit der neu Installation ist das so eine Sache. Auf dem Server, dessen OS auf einer 120 Gb SSD Läuft und auf dem nextcloud, Installiert ist und die Daten auf eine andere 1 TB NAS Festplatte ablegt. Und dann wäre da noch die smb freigabe der im Raid 1 Laufenden 2 weiteren 1 TB Festplatten. Des weiteren habe ich Java sowie ein skript implementiert das den Server alle 24h um 04:00 updaten lässt. Was mir kurz vor Fertigstellung dieses Posts noch eingefallen ist was relevant sein könnte ist, ich hab damals mit meinem Kumpel die apache.conf war es glaube ich so eingestellt das reinkommende anfragen über Port 80 auf den Port 443 umgeleitet werden

sebix"In welchem Pfad ist denn nextcloud installiert? Der DocumentRoot ist /var/www/html, wo wohl die Standardseite mit "It works!" liegt. Oder bringt "

Read-only folder
Location: /snap/nextcloud/current/

Snap variable: $SNAP

Contains:

Nextcloud application
Configuration files
Location: /var/snap/nextcloud/current/

Snap variable: $SNAP_DATA

Contains:

Apache, PHP, MySQL, and Redis logs
Keys and certificates
MySQL database
Redis database
Nextcloud config
Any Nextcloud apps installed by the user
Your data
Location: /var/snap/nextcloud/common/

Snap variable: $SNAP_COMMON

Contains:

Nextcloud data
Nextcloud logs

sebix"Gibt es in /etc/apache2/sites-enabled/ noch andere Dateien?" nur noch eine "000-default.conf" mit filgendem inhalt:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

mit freundlichen grüßen

schrauberjo

sebix Team-Icon

Ehemalige

Anmeldungsdatum:
14. April 2009

Beiträge: 5582

Ich sehe da mehrere Probleme.

Erstens ist dein Webserver nicht von aussen erreichbar. Entweder dein DynDNS funktioniert nicht, womit der A-Record fuer schrauberjo.ddns.net nicht aktualisiert wird, oder die Weiterleitung durch den Router klappt nicht.

Zweitens liefert der Webserver nicht Nextcloud aus, und hat auch gar keine Konfiguration dazu.

Drittens kennst du dein Setup anscheinend selbst nicht.

Also wenn du nicht beschreibst, was auf deinem Server wo und wie laueft, wird das hier schwierig.

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

sebix"Erstens ist dein Webserver nicht von aussen erreichbar. Entweder dein DynDNS funktioniert nicht, womit der A-Record fuer schrauberjo.ddns.net nicht aktualisiert wird, oder die Weiterleitung durch den Router klappt nicht."

Das machte ab und an Probleme, ja aber jetzt haben aktuell beide die gleiche ip noip und meine fritz box (77.190.16.11)

sebix"Zweitens liefert der Webserver nicht Nextcloud aus, und hat auch gar keine Konfiguration dazu."

Wie kann es sein das nach der Nutzung der nextcloud plötzlich die Konfigurations Dateien nicht mehr stimmen ?

sebix"Drittens kennst du dein Setup anscheinend selbst nicht. Also wenn du nicht beschreibst, was auf deinem Server wo und wie laueft, wird das hier schwierig."

Was wollen sie wissen ? Wie kann ich weiterhelfen? 😉

ich habe ja alles selber installiert nur halt vor 6 Monaten

und da ich nicht regelmäßig mich mit dem Linux beschäftige bin ich etwas eingerostet. Ich bitte dies vielmals zu endschuldigen.

mit freundlichen grüßen schauberjo

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

Ich hab da mal eine Idee: Ist es nicht einfacher die Snap Installation von nextcloud zu deinstallieren?

nach: root@nextcloud-server:~# snap stop nextcloud bekomme ich

error: cannot perform the following tasks:
- stop of [nextcloud.apache nextcloud.mdns-publisher nextcloud.mysql nextcloud.n                                                                                                             extcloud-cron nextcloud.php-fpm nextcloud.redis-server nextcloud.renew-certs] (#                                                                                                              systemctl stop snap.nextcloud.apache.service snap.nextcloud.mdns-publisher.serv                                                                                                             ice snap.nextcloud.mysql.service snap.nextcloud.nextcloud-cron.service snap.next                                                                                                             cloud.php-fpm.service snap.nextcloud.redis-server.service snap.nextcloud.renew-c                                                                                                             erts.service
Failed to stop snap.nextcloud.apache.service: Unit snap.nextcloud.apache.service                                                                                                              not loaded.
Failed to stop snap.nextcloud.mdns-publisher.service: Unit snap.nextcloud.mdns-p                                                                                                             ublisher.service not loaded.
Failed to stop snap.nextcloud.mysql.service: Unit snap.nextcloud.mysql.service n                                                                                                             ot loaded.
Failed to stop snap.nextcloud.nextcloud-cron.service: Unit snap.nextcloud.nextcl                                                                                                             oud-cron.service not loaded.
Failed to stop snap.nextcloud.php-fpm.service: Unit snap.nextcloud.php-fpm.servi                                                                                                             ce not loaded.
Failed to stop snap.nextcloud.redis-server.service: Unit snap.nextcloud.redis-se                                                                                                             rver.service not loaded.
Failed to stop snap.nextcloud.renew-certs.service: Unit snap.nextcloud.renew-cer                                                                                                             ts.service not loaded.
)
- stop of [nextcloud.apache nextcloud.mdns-publisher nextcloud.mysql nextcloud.n                                                                                                             extcloud-cron nextcloud.php-fpm nextcloud.redis-server nextcloud.renew-certs] (e                                                                                                             xit status 5)

wenn ich das richtig interpretiere wird der SNAP nextcloud nicht ausgeführt?

nach root@nextcloud-server:~# snap remove nextcloud folgt ein

error: cannot perform the following tasks:
- Remove data for snap "nextcloud" (5627) (remove /var/snap/nextcloud/common: device or resource busy)

also was ist da jetzt Sache ? Wird der snap ausgeführt oder nicht ?

bin am verzweifeln

mit freundlichen grüßen schrauberjo

Into_the_Pit Team-Icon

Ehemalige
Avatar von Into_the_Pit

Anmeldungsdatum:
25. Juni 2008

Beiträge: 9490

Wohnort: Bochum

schrauberjo schrieb:

Ich hab da mal eine Idee: Ist es nicht einfacher die Snap Installation von nextcloud zu deinstallieren?

Gab es einen bestimmten Grund, warum Du es mit snap installiert hattest? Wenn Nein, dann kannst Du auch die normale Installtion durchführen.

schrauberjo

(Themenstarter)
Avatar von schrauberjo

Anmeldungsdatum:
13. Oktober 2017

Beiträge: 59

Wohnort: München

Into_the_Pit Ja, als ich die ersten male nextcloud ohne snap instaliert hatte traten allerlei Fehler auf.

Aber habe jetzt auf einer virtuellen Maschine eine weitere snap Installation durchgeführt Mein Plan ist jetzt, die Daten im Ordner common auf dem Server mit den Daten vom Virtuellen common Verzeichnis zu ersetzen.

mit freundlichen grüßen schrauberjo

Antworten |