Yunohost debian 12 nextcloud problems

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.6
What app is this about: Nextcloud

Describe your issue

Freshly installed vds debian 12.

Since I saw that yunohost works on debian 12 now, I wanted to upgrade my vds to debian 12 so I freshly installed debian 12.
I installed yunohost (which also has couple bugs). And I freshly installed nextcloud and I’m having following errors. I tried to look up in the google, I couldn’t find anything else rather then trusted domain and proxies which I check seemed fine to me.

I’m having following 3 errors. Note: I tried another fresh install of a vps (my other selfhost server) I had the same problem.

Share relevant logs or error messages

Your site server is not set up correctly for file synchronization. The WebDAV interface seems buggy. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url.
Your data folder and files may be accessible over the Internet. .htaccess file does not work. It is highly recommended that you configure your site server to prevent access to the data folder or move the data folder outside of the site server root folder.
Your site server does not serve .mjs files that use the JavaScript MIME type. This prevents browsers from executing JavaScript files, causing some applications to break. You need to configure your site server to serve ‘.mjs’ files with the MIME type ‘text/javascript’ or ‘application/javascript’

Its a bug in the upstream nextcloud apps. Not new, it was already there in YH 11. See

Yes, this .htaccess issue was also happened before. But before when I was editing the config file and adding trusted proxies, the issue was solved. Now this doesn’t solve.

There are also 2 more issues other than .htaccess issue.

Additionally for a while this was not an issue for fresh installs (Even last week) There were no error messages with fresh installs. After debian 12 support, I got these 3 issues on fresh installs.

I would like to hijack also this topic as I also have some problems with Nextcloud namely this:

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Exception thrown: Doctrine\DBAL\Exception

"3 Nov 2024, 23:29:11"	

Error	index	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory

"3 Nov 2024, 23:29:11"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Exception thrown: Doctrine\DBAL\Exception

"3 Nov 2024, 23:29:11"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Exception thrown: Doctrine\DBAL\Exception

"3 Nov 2024, 23:29:11"	

Error	index	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory

"3 Nov 2024, 23:29:11"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Exception thrown: Doctrine\DBAL\Exception

"3 Nov 2024, 23:28:09"	

Error	core	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Exception thrown: Doctrine\DBAL\Exception

"3 Nov 2024, 23:28:09"	

Error	index	
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory

"3 Nov 2024, 23:28:09"	

Error	PHP	
Error: Class "OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin" not found at /var/www/nextcloud/remote.php#62

Any idea where is this coming from?

Try this please:

-Connect with ssh to your server
-sudo yunohost app shell nextcloud
to enter the nextcloud shell
-php occ db:add-missing-indices

This should fix missing databases.

1 Like

I did this so I have to wait if there is any other error message for this.

Also I have this in nextcloud’s overview:

Your webserver is not set up to serve `.js.map` files. Without these files, JavaScript Source Maps won't function properly, making it more challenging to troubleshoot and debug any issues that may arise.
Could not check for JavaScript support via any of your `trusted_domains` nor `overwrite.cli.url`. This may be the result of a server-side DNS mismatch or outbound firewall rule. Please check manually if your webserver serves `.mjs` files using the JavaScript MIME type. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its `trusted_domains` or the `overwrite.cli.url`.

but what is the correct commanfe to run occ?

I have the same issue :))

What do you mean by correct command to run occ?
If you enter nextcloud shell by “sudo yunohost app shell nextcloud” you can then apply an occ command by “php occ …yourcommand here…”

1 Like

I mean that the occ maintenance:repair --include-expensive does not run do anyting.

Yeah you can try as I said to run any occ command :slight_smile:

1 Like

We have Nextcloud 30.0.1 in the pipelines, which might solve some of your issues. It’s worth a try if this is a first install.
sudo yunohost app install https://github.com/YunoHost-Apps/nextcloud_ynh/tree/30.0.0

2 Likes

Oh ok. I might wait then since it is not a first install.

Many thanks.

First of all the new nextcloud interface looks just sick. Loved it! Amazing job from developpers.

Back to the issue, here how I installed. This is the second attempt because in the first attempt I wanted URL path to be empty and access to all_users. I wanted to keep things default now:

/home/adminuser# sudo yunohost app install https://github.com/YunoHost-Apps/nextcloud_ynh/tree/30.0.0
DANGER! This app is not part of YunoHost's app catalog. Installing third-party apps may compromise the integrity and s
ecurity of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be prov
ided if this app doesn't work or breaks your system… If you are willing to take that risk anyway, type 'Yes, I underst
and': Yes, I understand
Choose the domain where this app should be installed [domain1 | domain2 | domain3]: domain1
Choose the URL path (after the domain) where this app should be installed: /nextcloud
Choose an administrator user for this app [adminuser | normaluser]: adminuser
Who should have access to this app? (This can later be changed) [admins | all_users | visitors]: visitors
Access the users home folder from Nextcloud [yes | no]: no
Enable address book [yes | no]: yes
Enable Notify Push [yes | no]: yes

I had NO RED ISSUES. So I can confirm that problem is solved by either giving access to visitors or most probably URL Path being /nextcloud. Because my first installiation I had EVEN MORE red issues when I make the path empty

I had following 2 yellow issues:

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command occ maintenance:repair --include-expensive to perform the migrations.

There is an inactive LDAP scheme: s01

Any easy php occ maintenance:repair --include-expensive fixed the first yellow issue. I do not know about “There is an inactive LDAP scheme: s01” part. I think ignoring it is okay?

https://scan.nextcloud.com/ says Rating A. Only The __Host prefix mitigates cookie injection vulnerabilities within potential third-party software sharing the same second level domain. It is an additional hardening on top of ‘normal’ same-site cookies.

Should be fine since this is only domain for nextcloud. I’m using subdomains for any other app.

One more question. Will yunohost update nextcloud automatically as its normal? Or now this is a different app from yunohosts nextcloud? Is it upgradable at all?

Thanks for everything, really :slight_smile:

One more question. Will yunohost update nextcloud automatically as its normal? Or now this is a different app from yunohosts nextcloud? Is it upgradable at all?

Nextcloud will be updated when a new version comes.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.