Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextcloud-snap/wiki/Managing-services | error in text + suggestions #2736

Closed
yannicklescure opened this issue May 3, 2024 · 14 comments
Closed
Assignees

Comments

@yannicklescure
Copy link

Hello,

I found an error in the text from the nextcloud-snap/wiki/Managing-services page. I tried to pull and push the fix but it seems the wiki pages don't allow this process.

Here are the proposed changes + others that follow the markdown rule MD040 - Fenced code blocks should have a language specified:

image

Markdown file including fixes

Managing-services.md

Suggestions

I've been using nextcloud-snap for a few months now and you guys did a very good job. I would like to suggest those 2 things:

  1. Copying a backup of my phone camera pictures from one hdd to /var/snap/nextcloud/common/nextcloud/data/$USER/files I ran into the problem of having conflict when trying to backup new pictures from my phone camera. Until one day, I figured out that all files in this folder should have a root:root ownership. It should probably be mentioned on /nextcloud-snap/nextcloud-snap/wiki/Default-path wiki page.

  2. I found that the front-end is very slow! It should probably worth it to test tunings shared on this article https://haefelfinger.ch/posts/2021/2021-03-29-nextcloud-tuning/ that was refered here https://help.nextcloud.com/t/web-interface-very-slow-bad-performance/152757/4

Thank you for your time.

@scubamuc
Copy link
Member

scubamuc commented May 4, 2024

@yannicklescure welcome and thanks for the heads up,

I tried to pull and push the fix but it seems the wiki pages don't allow this process.

yeah... kind of defeats the wiki philosophy, but we've made that decision and we're quite happy with it.

I found an error in the text from the nextcloud-snap/wiki/Managing-services page.

changes to wiki done! (thanks and keep reading)


  1. Copying a backup of my phone camera pictures from one hdd to /var/snap/nextcloud/common/nextcloud/data/$USER/files I ran into the problem of having conflict when trying to backup new pictures from my phone camera. Until one day, I figured out that all files in this folder should have a root:root ownership. It should probably be mentioned on /nextcloud-snap/nextcloud-snap/wiki/Default-path wiki page.

would you agree that this is mentioned here: https://github.com/nextcloud-snap/nextcloud-snap/wiki/FAQ's#q-what-permissions-should-external-media-have


  1. I found that the front-end is very slow! It should probably worth it to test tunings shared on this article https://haefelfinger.ch/posts/2021/2021-03-29-nextcloud-tuning/ that was refered here https://help.nextcloud.com/t/web-interface-very-slow-bad-performance/152757/4

as for your front-end issues, would it be possible to create a new issue for that? that is something the devs may want to look into... but, remember that we don't have any upstream devs in the snap team, so if its an upstream issue it should be handled upstream.

@scubamuc scubamuc self-assigned this May 4, 2024
@scubamuc
Copy link
Member

scubamuc commented May 5, 2024

@yannicklescure

I found that the front-end is very slow!

could you please describe how your instance is setup and what are you comparing "front-end speeds" to?

  • is your instance self-hosted?
  • describe hardware specs of your instance (arch, RAM, CPU, OS)
  • describe your connectivity (asynchronous DSL, synchronous DSL, uplink, downlink etc.)

please post your logs: run the debugging script

@pachulo
Copy link
Member

pachulo commented May 8, 2024

Thanks for the suggestions @yannicklescure

I found that the front-end is very slow!

Adding to what @scubamuc already asked: do you have HTTP compression enabled? It usually helps with this.

It should probably worth it to test tunings shared on this article https://haefelfinger.ch/posts/2021/2021-03-29-nextcloud-tuning/ that was refered here https://help.nextcloud.com/t/web-interface-very-slow-bad-performance/152757/4

The thing with those kind of tunings is that they should be adapted for the hardware the snap is running on, not just hardcoded, so we would need to do some tests on different hardware to see when they make sense to apply.

@yannicklescure
Copy link
Author

@yannicklescure welcome and thanks for the heads up,

I tried to pull and push the fix but it seems the wiki pages don't allow this process.

yeah... kind of defeats the wiki philosophy, but we've made that decision and we're quite happy with it.

I found an error in the text from the nextcloud-snap/wiki/Managing-services page.

changes to wiki done! (thanks and keep reading)

  1. Copying a backup of my phone camera pictures from one hdd to /var/snap/nextcloud/common/nextcloud/data/$USER/files I ran into the problem of having conflict when trying to backup new pictures from my phone camera. Until one day, I figured out that all files in this folder should have a root:root ownership. It should probably be mentioned on /nextcloud-snap/nextcloud-snap/wiki/Default-path wiki page.

would you agree that this is mentioned here: https://github.com/nextcloud-snap/nextcloud-snap/wiki/FAQ's#q-what-permissions-should-external-media-have

Yes, it is indeed mentioned in the FAQ but to find it I should have known the question and if so I would have never look in there; which I did not (if that make any sense). Mentioning it in the wiki default-path page would have been easier at least for me.

  1. I found that the front-end is very slow! It should probably worth it to test tunings shared on this article https://haefelfinger.ch/posts/2021/2021-03-29-nextcloud-tuning/ that was refered here https://help.nextcloud.com/t/web-interface-very-slow-bad-performance/152757/4

as for your front-end issues, would it be possible to create a new issue for that? that is something the devs may want to look into... but, remember that we don't have any upstream devs in the snap team, so if its an upstream issue it should be handled upstream.

I'll investigate further on my side before doing so. I don't want to make people waste time. :)

@yannicklescure
Copy link
Author

@yannicklescure

I found that the front-end is very slow!

could you please describe how your instance is setup and what are you comparing "front-end speeds" to?

  • is your instance self-hosted?

I setup a virtual server hosted on Proxmox with 4 CPUs and 8 GB memory, which should be more than enough. Collabora is hosted in its own virtual server because Office CODE was slowing everything down.

  • describe hardware specs of your instance (arch, RAM, CPU, OS)
  • describe your connectivity (asynchronous DSL, synchronous DSL, uplink, downlink etc.)

I have no clue how to answer that. I'm using a wired network with 1 GB powerline ethernet plugs.

please post your logs: run the debugging script

@yannicklescure
Copy link
Author

Thanks for the suggestions @yannicklescure

I found that the front-end is very slow!

Adding to what @scubamuc already asked: do you have HTTP compression enabled? It usually helps with this.

Yes, I did enable it when reading the doc at initial setup. Thank you for the help. :)

It should probably worth it to test tunings shared on this article https://haefelfinger.ch/posts/2021/2021-03-29-nextcloud-tuning/ that was refered here https://help.nextcloud.com/t/web-interface-very-slow-bad-performance/152757/4

The thing with those kind of tunings is that they should be adapted for the hardware the snap is running on, not just hardcoded, so we would need to do some tests on different hardware to see when they make sense to apply.

@scubamuc
Copy link
Member

@yannicklescure

I have no clue how to answer that. I'm using a wired network with 1 GB powerline ethernet plugs.

no problem... 1GB powerline is enough to know.

but we will need your logs: run the debugging script if you'd like us to have a look

@scubamuc
Copy link
Member

@yannicklescure,

Yes, it is indeed mentioned in the FAQ but to find it I should have known the question and if so I would have never look in there; which I did not (if that make any sense). Mentioning it in the wiki default-path page would have been easier at least for me.

this being something which is snapd specific and only tertiary Nextcloud snap specific, although the Nextcloud snap team has embraced snapd, it is not our goal to cover both snapd and Nextcloud. Our project is Nextcloud snap and we merely take both technologies add a little snapd magic, test and release see here and here

so yes it is our goal to cover as much as we can in the wiki and FAQ's, but we will reach boundaries.

I've added that in default path too.
thanks and keep reading, suggestions are always welcome.

@scubamuc
Copy link
Member

@yannicklescure, on a personal note...

... Collabora is hosted in its own virtual server because Office CODE was slowing everything down.

did you by any chance document this procedure?

it would be great if we could add this procedure to the CODE & Nextcloud Office wiki

@yannicklescure
Copy link
Author

yannicklescure commented May 13, 2024

@yannicklescure, on a personal note...

... Collabora is hosted in its own virtual server because Office CODE was slowing everything down.

did you by any chance document this procedure?

it would be great if we could add this procedure to the CODE & Nextcloud Office wiki

It wasn't straight forward as I had to read several articles. However, I could summarize the steps as follow:

  1. I installed collabora on an ubuntu server (See article)
  2. I modified the apache server conf to listen port 8443 instead of 80 as nextcloud already used it (See article) + file conf for virtual host.
  3. I setup ufw to open ports 8080 and 8443 (See article).
  4. I had to configure my router to listen to those ports to redirect to the according server; 80 nextcloud and 8443 collabora.
  5. Finally, I had to generate an ssl certificate using DNS Validation with acme-dns-certbot (See article)

So it's a bit of everything and I think very specific to my proxmox setup which use the same internet IP with several ubuntu servers.
I could definitely write a step by step markdown document if that could be any useful. Let me know.

@yannicklescure
Copy link
Author

@yannicklescure

I have no clue how to answer that. I'm using a wired network with 1 GB powerline ethernet plugs.

no problem... 1GB powerline is enough to know.

but we will need your logs: run the debugging script if you'd like us to have a look

I ran it and discovered that I had an SSL certificate issue that I fixed today. It seems running better now.

@scubamuc
Copy link
Member

@yannicklescure

I think very specific to my proxmox setup which use the same internet IP with several ubuntu servers.
I could definitely write a step by step markdown document if that could be any useful. Let me know

that would be greatly appreciated.

I ran it and discovered that I had an SSL certificate issue that I fixed today. It seems running better now.

that sounds great, so this issue is resolved then?

@yannicklescure
Copy link
Author

@scubamuc

that would be greatly appreciated.

Ok, I'll find some time to do it. How can I submit the markdown file?

that sounds great, so this issue is resolved then?

Yes, this issue can be marked as resolved.

@scubamuc
Copy link
Member

@yannicklescure

Ok, I'll find some time to do it. How can I submit the markdown file?

simply open a new issue and attach the markdown file... just like you did in the OT

thanks a million

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants