NC Docker share issue

Hello and sorry for this rushed post, I am at work now but wanted to get a post up. I am noob so go easy on me.

So over the Xmas holiday I setup Nextcloud docker and created a share. I then created 4 users, 1 admin and 3 general users. I then created the external storage. I then logged in as each user and verified that I can see the external files in the files section.

Next I setup, cloud flare and am able to access the Nextcloud web page externally. This is were things go badly…

I now login with all users and the files are never seen.

As far as I can tell there are no errors but I may not be looking at all logs.
So how do I troubleshoot this?
I’d really love to access files remotely……

Brad

hi @brad_patterson welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

Please use the search - lot of issues have been discussed already

If there are specific issues or error please describe what you tried so far and which problems you hit!

|Nextcloud version (eg, 26.0.1):|Docker latest 28.0.1|
|Operating system and version (eg, Ubuntu 22.04):|Docker running on Linux Mint |
|Apache or nginx version (eg, Apache 2.4.25):|nginix i think whatever is in Docker image|
|PHP version (eg, 8.1):|Unknown|
|Database (sqlite or MariaDB or Postgres)|sqllite|
|Docker (compose)|Yes|
|Snap|No|
|Is this the first time you’ve seen this error?|yes|

  • Steps to replicate it:
  1. Setup docker image, setup external storage
  2. Log in locally and EVERYTHING works - ie. files in external storage are seen
  3. Login remotely - no files in external storage are seen. Dashboard has spinning wheel while looking for files. Files never show up.

Admin > Logging : cannot upload the log … there are errors in the log.
{“reqId”:“VthUZ8PCMGVzgPzoXeiN”,“level”:3,“time”:“2023-12-31T20:53:49+00:00”,“remoteAddr”:“2600:1015:b118:528:2d39:103:5018:a173”,“user”:“–”,“app”:“no app in context”,“method”:“REPORT”,“url”:“/remote.php/dav/files/brad”,“message”:“Could not decrypt or decode encrypted session data”,“userAgent”:“Mozilla/5.0 (iOS) Nextcloud-iOS/4.9.6”,“version”:“28.0.1.1”,“exception”:{“Exception”:“Exception”,“Message”:“HMAC does not match.”,“Code”:0,“Trace”:[{“file”:“/app/www/public/lib/private/Security/Crypto.php”,“line”:119,“function”:“decryptWithoutSecret”,“class”:“OC\Security\Crypto”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/app/www/public/lib/private/Session/CryptoSessionData.php",“line”:90,“function”:“decrypt”,“class”:“OC\Security\Crypto”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/app/www/public/lib/private/Session/CryptoSessionData.php”,“line”:67,“function”:“initializeSession”,“class”:“OC\Session\CryptoSessionData”,“type”:“->”},{“file”:“/app/www/public/lib/private/Session/CryptoWrapper.php”,“line”:112,“function”:“__construct”,“class”:“OC\Session\CryptoSessionData”,“type”:“->”},{“file”:“/app/www/public/lib/base.php”,“line”:449,“function”:“wrapSession”,“class”:“OC\Session\CryptoWrapper”,“type”:“->”},{“file”:“/app/www/public/lib/base.php”,“line”:705,“function”:“initSession”,“class”:“OC”,“type”:“::”},{“file”:“/app/www/public/lib/base.php”,“line”:1200,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/app/www/public/remote.php”,“line”:119,“args”:[“/app/www/public/lib/base.php”],“function”:“require_once”}],“File”:“/app/www/public/lib/private/Security/Crypto.php”,“Line”:158,“message”:“Could not decrypt or decode encrypted session data”,“exception”:,“CustomMessage”:“Could not decrypt or decode encrypted session data”},“id”:“65949abdd3b95”}

There are other errors

Log reader

Log reader settings: log attached …

Nextcloud version: 28.0.1 - 28.0.1.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

List of activated apps
Enabled:
 - activity: 2.20.0
 - circles: 28.0.0-dev
 - cloud_federation_api: 1.11.0
 - comments: 1.18.0
 - contactsinteraction: 1.9.0
 - dashboard: 7.8.0
 - dav: 1.29.1
 - federatedfilesharing: 1.18.0
 - federation: 1.18.0
 - files: 2.0.0
 - files_3dmodelviewer: 0.0.12
 - files_external: 1.20.0
 - files_pdfviewer: 2.9.0
 - files_reminders: 1.1.0
 - files_sharing: 1.20.0
 - files_trashbin: 1.18.0
 - files_versions: 1.21.0
 - firstrunwizard: 2.17.0
 - logreader: 2.13.0
 - lookup_server_connector: 1.16.0
 - nextcloud_announcements: 1.17.0
 - notifications: 2.16.0
 - oauth2: 1.16.3
 - password_policy: 1.18.0
 - photos: 2.4.0
 - privacy: 1.12.0
 - provisioning_api: 1.18.0
 - recommendations: 2.0.0
 - related_resources: 1.3.0
 - serverinfo: 1.18.0
 - settings: 1.10.1
 - sharebymail: 1.18.0
 - support: 1.11.0
 - survey_client: 1.16.0
 - systemtags: 1.18.0
 - text: 3.9.1
 - theming: 2.3.0
 - twofactor_backupcodes: 1.17.0
 - updatenotification: 1.18.0
 - user_status: 1.8.1
 - viewer: 2.2.0
 - workflowengine: 2.10.0
Disabled:
 - admin_audit
 - bruteforcesettings
 - encryption
 - suspicious_login
 - twofactor_totp
 - user_ldap
 - weather_status: 1.8.0
Configuration (config/config.php)
{
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "192.168.0.5:8080",
        "nextcloud.bradapatterson.com"
    ],
    "dbtype": "sqlite3",
    "version": "28.0.1.1",
    "overwrite.cli.url": "https:\/\/192.168.0.5:450",
    "installed": true,
    "overwriteprotocol": "https",
    "default_phone_region": "US",
    "enable_previews:": true,
    "skeletondirectory": "",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\APCu",
    "upgrade.disable-web": true,
    "mail_smtpmode": "smtp",
    "mail_smtpauth": 1,
    "mail_sendmailmode": "smtp",
    "mail_smtpport": "993",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
}

Cron Configuration: Array ( [backgroundjobs_mode] => cron [lastcron] => 1704236401 )

External storages: yes

External storage configuration
+----------+-------------+---------+---------------------+-------------------+---------+------------------+-------------------+-------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration     | Options | Applicable Users | Applicable Groups | Type  |
+----------+-------------+---------+---------------------+-------------------+---------+------------------+-------------------+-------+
| 4        | /STLs       | Local   | None                | datadir: "\/stls" |         | All              |                   | Admin |
+----------+-------------+---------+---------------------+-------------------+---------+------------------+-------------------+-------+

Encryption: no

User-backends:

  • OC\User\Database
    Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

No apparent errors in /var/www/htdocs

So to clarify this…

When I am on my internal network and go to https://nextcloud.bradapatterson.com I am able to login and see and interact with my files in the external storage via Files → STLs.

Now, I use my phone and disabled wifi. Do the exact url above and i log in but I do not see any files at the dashboard. There is a spinning circle. Clicking on Files says ‘No files …’.