Nextcloud version
(eg, 20.0.5)
:
latest
Operating system and version
(eg, Ubuntu 20.04)
:
Ubuntu 22.04 LTS
The issue you are facing:
Loading any page on my nextcloud takes ages I’ve looked in the network tab and seen that
https://cloud.woodburn.au/dist/core-common.js?v=25318951-9
takes minutes to load.
My setup is the docker AIO running behind an nginx reverse proxy using the below config
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
server {
listen 80;
listen [::]:80;
server_name cloud.woodburn.au;
if ($scheme = "http") {
return 301 https://$host$request_uri;
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
location / {
proxy_pass http://127.0.0.1:11000$request_uri;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding "";
proxy_set_header Host $host;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
client_body_buffer_size 512k;
proxy_read_timeout 86400s;
client_max_body_size 0;
# Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/cloud.woodburn.au/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/cloud.woodburn.au/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
I am using OpenID with authelia. And
Is this the first time you’ve seen this error? (Y/N):
The output of your Nextcloud log in Admin > Logging:
Error: Failed opening required 'assets/login.php' (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps')
/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php - line 190:
OCA\OIDCLogin\AppInfo\Application->boot([ "OC\\AppFr ... "])
/var/www/html/lib/private/legacy/OC_App.php - line 208:
OC\AppFramework\Bootstrap\Coordinator->bootApp("oidc_login")
/var/www/html/lib/private/legacy/OC_App.php - line 141:
OC_App::loadApp("oidc_login")
/var/www/html/lib/base.php - line 1045:
OC_App::loadApps()
/var/www/html/index.php - line 36:
OC::handleRequest()
Error: require(assets/login.php): Failed to open stream: No such file or directory at /var/www/html/custom_apps/oidc_login/lib/AppInfo/Application.php#162
/var/www/html/custom_apps/oidc_login/lib/AppInfo/Application.php - line 162:
OC\Log\ErrorHandler::onError(2, "require(ass ... y", "/var/www/ht ... p", 162)
/var/www/html/custom_apps/oidc_login/lib/AppInfo/Application.php - line 162:
require()
/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php - line 190:
OCA\OIDCLogin\AppInfo\Application->boot([ "OC\\AppFr ... "])
/var/www/html/lib/private/legacy/OC_App.php - line 208:
OC\AppFramework\Bootstrap\Coordinator->bootApp("oidc_login")
/var/www/html/lib/private/legacy/OC_App.php - line 141:
OC_App::loadApp("oidc_login")
/var/www/html/lib/base.php - line 1045:
OC_App::loadApps()
/var/www/html/index.php - line 36:
OC::handleRequest()
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => '<removed password>',
'port' => 6379,
'overwritehost' => 'cloud.woodburn.au',
'overwriteprotocol' => 'https',
'passwordsalt' => '<removed password>',
'secret' => '<removed password>',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.woodburn.au',
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '25.0.5.1',
'overwrite.cli.url' => 'https://cloud.woodburn.au/',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nextcloud',
'dbpassword' => '<removed password>',
'installed' => true,
'instanceid' => '<removed id>',
'check_data_directory_permissions' => true,
'maintenance' => false,
'loglevel' => '2',
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => '10485760',
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'enabledPreviewProviders' =>
array (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
'enable_previews' => true,
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'trashbin_retention_obligation' => 'auto, 30',
'versions_retention_obligation' => 'auto, 30',
'activity_expire_days' => '30',
'simpleSignUpLink.shown' => false,
'share_folder' => '/Shared',
'tempdirectory' => '/mnt/ncdata/tmp/',
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
'htaccess.RewriteBase' => '/',
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
'allow_local_remote_servers' => true,
'allow_user_to_change_display_name' => false,
'lost_password_link' => 'disabled',
'oidc_login_provider_url' => '<authelia host>',
'oidc_login_client_id' => 'nextcloud',
'oidc_login_client_secret' => '<removed secret>',
'oidc_login_auto_redirect' => false,
'oidc_login_end_session_redirect' => false,
'oidc_login_button_text' => 'Log in with Woodburn ID',
'oidc_login_hide_password_form' => false,
'oidc_login_use_id_token' => true,
'oidc_login_attributes' =>
array (
'id' => 'preferred_username',
'name' => 'name',
'mail' => 'email',
'groups' => 'groups',
'oidc_login_default_group' => 'oidc',
'oidc_login_use_external_storage' => false,
'oidc_login_scope' => 'openid profile email groups',
'oidc_login_proxy_ldap' => false,
'oidc_login_disable_registration' => false,
'oidc_login_redir_fallback' => false,
'oidc_login_alt_login_page' => 'assets/login.php',
'oidc_login_tls_verify' => true,
'oidc_create_groups' => false,
'oidc_login_webdav_enabled' => false,
'oidc_login_password_authentication' => false,
'oidc_login_public_key_caching_time' => 86400,
'oidc_login_min_time_between_jwks_requests' => 10,
'oidc_login_well_known_caching_time' => 86400,
'oidc_login_update_avatar' => false,
<EMAIL INFO REMOVED>
The output of your Apache/nginx/system log in /var/log/____
:
No errors logged
'oidc_login_alt_login_page' => 'assets/login.php',
'oidc_login_alt_login_page' => 'assets/login',
but it hasn’t changed the super slow loading