lamor
June 17, 2024, 1:36pm
1
Bonjour,
J’ai une instance nextcloud sur mon serveur perso dans une VM sous proxmox, celui ci est derrier un reverse proxy nginx.
Tout fonctionnait bien jusqu’a la MAJ en 29, depuis, si je partage un dossier, la liste des fichiers n’apparaît pas, mais si on clique sur le bouton “Télécharger les fichiers” ils sont bien tous présent.
Si je passe en direct, depuis mon réseau local avec l’ip, cela fonctionne, il y a donc un soucis avec le reverse proxy mais je ne comprend pas pourquoi.
A chaque tentative j’ai cette ligne qui s’affiche dans les log nextcloud :
Undefined array key 0 at /var/www/html/nextcloud/apps/dav/appinfo/v2/publicremote.php#96
J’ai trouvé ce sujet ou le probleme est similaire :
opened 12:41PM - 20 Oct 17 UTC
closed 09:43AM - 08 Nov 17 UTC
bug
needs info
feature: sharing
feature: authentication
### Steps to reproduce
1. Choose a folder with some files in it
2. Share the… folder via link
3. Open the shared link with Firefox/Chrome/Edge
### Expected behaviour
The files inside the shared folder should be listed
### Actual behaviour
In Firefox you simply dont see any files listed. If you open the Shared Link with Chrome or Edge an authentication-Popup appears.
A login ist not possible. After canceling the popup you see an empty folder.
If you click the Download button in the top right edge
the zip file will be generated and downloaded. The zip file contains all files.
### Server configuration
**Operating system**: Debian 9.2
**Web server:** Apache 2.4
**Database:** MySQL
**PHP version:** php7.0-fpm
**Nextcloud version:** 12.0.3
**Updated from an older Nextcloud/ownCloud or fresh install:** Updated from Version 12.0.2
**Where did you install Nextcloud from:** Website Download-Link
**Signing status:**
<details>
<summary>Signing status</summary>
```
No errors have been foun
```
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
```
If you have access to your command line run e.g.:
- activity: 2.5.2
- comments: 1.2.0
- dav: 1.3.0
- deck: 0.2.4
- federatedfilesharing: 1.2.0
- federation: 1.2.0
- files: 1.7.2
- files_accesscontrol: 1.2.5
- files_automatedtagging: 1.2.2
- files_markdown: 2.0.1
- files_pdfviewer: 1.1.1
- files_retention: 1.1.2
- files_sharing: 1.4.0
- files_texteditor: 2.4.1
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- files_videoplayer: 1.1.0
- gallery: 17.0.0
- groupfolders: 1.1.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- nextcloud_announcements: 1.1
- notes: 2.3.1
- notifications: 2.0.0
- oauth2: 1.0.5
- password_policy: 1.2.2
- previewgenerator: 1.0.7
- provisioning_api: 1.2.0
- serverinfo: 1.2.0
- sharebymail: 1.2.0
- survey_client: 1.0.0
- systemtags: 1.2.0
- theming: 1.3.0
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- user_ldap: 1.2.1
- user_saml: 1.4.0
- workflowengine: 1.2.0
Disabled:
- admin_audit
- encryption
- files_external
- firstrunwizard
- user_external
from within your Nextcloud installation folder
```
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
```
{
"system": {
"instanceid": "ocgxapsk7gd1",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.lklg.net"
],
"datadirectory": "\/opt\/cloud-data",
"overwrite.cli.url": "https:\/\/cloud.lklg.net",
"dbtype": "mysql",
"version": "12.0.3.3",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"forcessl": true,
"forceSSLforSubdomains": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"loglevel": 2,
"log_query": true,
"theme": ""
}
}
```
</details>
**Are you using external storage, if yes which one:** local/smb/sftp/...
**Are you using encryption:** yes/no
**Are you using an external user-backend, if yes which one:** LDAP/SAML_saml
### Client configuration
**Browser:** Firefox/Chrome/Edge
**Operating system:** Windows 10, Windows Server 2016, Kubuntu 16.04
### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>
```
Insert your webserver log here
```
</details>
#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>
```
Insert your Nextcloud log here
```
</details>
#### Browser log
<details>
<summary>Browser log</summary>
```
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
```
</details>
J’ai bien le AllowOverride All dans la conf de mon apache nextcloud et il y a bien les lignes trusted proxy dans la config de nexctloud :
‘trusted_proxies’ => array(‘IPv6duReverse’, ‘IPv4du Reverse’),
‘forwarded_for_headers’ => array(‘HTTP_X_FORWARDED’, ‘HTTP_FORWARDED_FOR’),
Est ce que quelqu’un peut m’aider ? je ne sais plus ou chercher…
Merci
Bonjour @lamor ,
utilisez la mise en cache sur votre serveur ? ( opcache, php-fpm, …)
si oui veuillez redémarrer php-fpm et / ou apache/nginx
De plus, pensez à supprimer le cache de votre navigateur
lamor
June 18, 2024, 11:55am
3
Bonjour,
Merci pour la réponse.
J’utilise effectivement la mise en cache comme la documentation l’indique, j’ai déja redémarré plusieurs fois apache et meme le serveur nextcloud (la VM) complet.
Quand au cache du navigateur, j’utilise des fenêtre de navigation privé pour me mettre dans le cas d’un utilisateur n’ayant pas de comptes sur mon nextcloud (partage publique avec lien), ces fenêtre privées suppriment l’historique et le cache à chaque fermeture.
J’ai également testé d’autre navigateur en ayant bien supprimé le cache avant et le probleme reste identique.