Giter VIP home page Giter VIP logo

Comments (17)

kyrofa avatar kyrofa commented on May 27, 2024 1

@twosky2000 @zyga verified: it's a bug, apparmor profiles aren't generated on neon. Making a PR now. Thanks again @twosky2000!

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

Hey @twosky2000, thanks for giving the snap a test!

Can you please provide the output of the following commands?

$ sudo systemctl status snap.nextcloud.apache
$ sudo systemctl status snap.nextcloud.mysql

from nextcloud-snap.

twosky2000 avatar twosky2000 commented on May 27, 2024

services aren't runninging
Apache:

● snap.nextcloud.apache.service - Service for snap application nextcloud.apache
Loaded: loaded (/etc/systemd/system/snap.nextcloud.apache.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Don 2016-06-16 12:11:24 CEST; 2h 36min ago
Process: 1112 ExecStop=/usr/bin/ubuntu-core-launcher snap.nextcloud.apache snap.nextcloud.apache /snap/nextcloud/1/stop-command-apache.wrapper (code=exited, status=1/FAILURE)
Process: 1109 ExecStart=/usr/bin/ubuntu-core-launcher snap.nextcloud.apache snap.nextcloud.apache /snap/nextcloud/1/command-apache.wrapper (code=exited, status=1/FAILURE)
Main PID: 1109 (code=exited, status=1/FAILURE)

Jun 16 12:11:24 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 12:11:24 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 12:11:24 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 12:11:24 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 12:11:24 RocketOne systemd[1]: snap.nextcloud.apache.service: Start request repeated too quickly.
Jun 16 12:11:24 RocketOne systemd[1]: Failed to start Service for snap application nextcloud.apache.

mysql:

● snap.nextcloud.mysql.service - Service for snap application nextcloud.mysql
Loaded: loaded (/etc/systemd/system/snap.nextcloud.mysql.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Don 2016-06-16 14:45:13 CEST; 2min 38s ago
Process: 9256 ExecStop=/usr/bin/ubuntu-core-launcher snap.nextcloud.mysql snap.nextcloud.mysql /snap/nextcloud/1/stop-command-mysql.wrapper (code=exited, status=1/FAILURE)
Process: 9253 ExecStart=/usr/bin/ubuntu-core-launcher snap.nextcloud.mysql snap.nextcloud.mysql /snap/nextcloud/1/command-mysql.wrapper (code=exited, status=1/FAILURE)
Main PID: 9253 (code=exited, status=1/FAILURE)

Jun 16 14:45:13 RocketOne systemd[1]: snap.nextcloud.mysql.service: Unit entered failed state.
Jun 16 14:45:13 RocketOne systemd[1]: snap.nextcloud.mysql.service: Failed with result 'exit-code'.
Jun 16 14:45:13 RocketOne systemd[1]: snap.nextcloud.mysql.service: Service hold-off time over, scheduling restart.
Jun 16 14:45:13 RocketOne systemd[1]: Stopped Service for snap application nextcloud.mysql.
Jun 16 14:45:13 RocketOne systemd[1]: snap.nextcloud.mysql.service: Start request repeated too quickly.
Jun 16 14:45:13 RocketOne systemd[1]: Failed to start Service for snap application nextcloud.mysql.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

Huh, odd that they're both down. Okay, let's focus on Apache first. As a sanity check: you don't already have something running on port 80, do you? Assuming not, let's continue.

Start Apache back up again:

$ sudo systemctl start snap.nextcloud.apache

Now take a look at the syslog. You'll see Apache try to restart a number of times before finally giving up. Do you see a reason for the failure? Please paste the resulting log in here.

from nextcloud-snap.

twosky2000 avatar twosky2000 commented on May 27, 2024

I have nothing at port 80. System was just set up.
i tried to restart

Here's what i get from journalctl:

-- Logs begin at Don 2016-06-16 14:55:05 CEST, end at Don 2016-06-16 15:04:55 CEST. --
Jun 16 14:55:06 RocketOne systemd[1]: Started Service for snap application nextcloud.apache.
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[827]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[967]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Control process exited, code=exited status=1
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 14:55:06 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 14:55:06 RocketOne systemd[1]: Started Service for snap application nextcloud.apache.
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[994]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[998]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Control process exited, code=exited status=1
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 14:55:06 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 14:55:06 RocketOne systemd[1]: Started Service for snap application nextcloud.apache.
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[1035]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
Jun 16 14:55:06 RocketOne ubuntu-core-launcher[1043]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Control process exited, code=exited status=1
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 14:55:06 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 14:55:07 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 14:55:07 RocketOne systemd[1]: Started Service for snap application nextcloud.apache.
Jun 16 14:55:07 RocketOne ubuntu-core-launcher[1052]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
Jun 16 14:55:07 RocketOne ubuntu-core-launcher[1063]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Control process exited, code=exited status=1
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 14:55:07 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 14:55:07 RocketOne systemd[1]: Started Service for snap application nextcloud.apache.
Jun 16 14:55:07 RocketOne ubuntu-core-launcher[1069]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Main process exited, code=exited, status=1/FAILURE
Jun 16 14:55:07 RocketOne ubuntu-core-launcher[1078]: aa_change_onexec failed with -1. errmsg: No such file or directory
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Control process exited, code=exited status=1
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Unit entered failed state.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Failed with result 'exit-code'.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Service hold-off time over, scheduling restart.
Jun 16 14:55:07 RocketOne systemd[1]: Stopped Service for snap application nextcloud.apache.
Jun 16 14:55:07 RocketOne systemd[1]: snap.nextcloud.apache.service: Start request repeated too quickly.
Jun 16 14:55:07 RocketOne systemd[1]: Failed to start Service for snap application nextcloud.apache.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

apparmor issues! That looks like a snapd (or launcher) bug-- investigating now, thank you very much for reporting!

from nextcloud-snap.

zyga avatar zyga commented on May 27, 2024

What is the distribution that was hosting snapd when that error occurred?

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

From the description, sounds like Ubuntu Neon.

from nextcloud-snap.

zyga avatar zyga commented on May 27, 2024

Can we please see the /etc/os-release file from that system?

from nextcloud-snap.

twosky2000 avatar twosky2000 commented on May 27, 2024

Here's /etc/os-release:

NAME="KDE neon"
VERSION="5.6"
ID=neon
ID_LIKE=ubuntu debian
PRETTY_NAME="KDE neon User Edition 5.6"
VERSION_ID="16.04"
HOME_URL="http://neon.kde.org/"
SUPPORT_URL="http://neon.kde.org/"
BUG_REPORT_URL="http://bugs.kde.org/"
UBUNTU_CODENAME=xenial

from nextcloud-snap.

zyga avatar zyga commented on May 27, 2024

I think this is the problem

What is the packaging of snap-confine (aka ubuntu-core-launcher) for this distribution?
Is this distribution using an Ubuntu kernel?

from nextcloud-snap.

zyga avatar zyga commented on May 27, 2024

Please patch this file and send the pull request along with a trivial test:

https://github.com/snapcore/snapd/blob/master/release/release.go#L54

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

Alright, I'll take a look at that. Thanks @zyga!

from nextcloud-snap.

twosky2000 avatar twosky2000 commented on May 27, 2024

Not sure how to do that.
I tried sudo snap refresh ubuntu-core

error: cannot perform the following tasks:
- Download snap "ubuntu-core" from channel "stable" (revision 122 of snap "ubuntu-core" already installed)

Will research more to get the patch on my system.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

@twosky2000 if you want to hack on snapd please feel free, but I'm getting setup with a Neon VM now to play with this issue.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

Fixed in snapcore/snapd#1346.

from nextcloud-snap.

kyrofa avatar kyrofa commented on May 27, 2024

Note that the fix won't make it into the archives until next week, but if you want to continue playing with the snap you can install snapd from this PPA: https://launchpad.net/~snappy-dev/+archive/ubuntu/edge

from nextcloud-snap.

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.