Filecloud community edition seems to be running but not accessible

We have filecloud community edition running on an ubuntu vm and recently, it has become inaccessible through the normal ports (80, 443). I have taken a look at the server and it seems to be running the software (creating logs and sending daily emails) but I cannot access the ui by any means it seems. Could you offer some guidance or troubleshooting steps?

Hi @covenantpella

Thank you for contatcing FileCloud support.

May we know the error you are receiving when accessing your FileCloud site can you share us the full error screenshot ?

I just get a 500 error. No errors in the logs.

Hi @covenantpella

Thank you for the update.

Please share us the below command results.

systemctl status apache2

systemctl status mongod.service

netstat -tulpn


starting to think it may be something with apache


Here is mongo


and netstat

Hi @covenantpella

Could you please restart both apache and mongodb service and try accessing the site again see if it works and if not please share the log files from the below path.

/var/log/apache2/
/var/log/mongodb/
/var/www/html/scratch/logs

This error keeps repeating in apache
[Wed Sep 20 19:11:34.873432 2023] [php7:error] [pid 31958] [client 10.2.80.3:52388] PHP Fatal error: Uncaught DI\Definition\Exception\InvalidDefinition: Entry “CodeLathe\Application\Service\LoggerService” cannot be resolved: The parameter “path” of __construct() has no type defined or guessable. It has a default value, but the default value can’t be read through Reflection because it is a PHP internal class.\nFull definition:\nObject (\n class = CodeLathe\Application\Service\LoggerService\n lazy = false\n __construct(\n $path = #UNDEFINED#\n $logFileSizeLimitKB = #UNDEFINED#\n )\n) in /var/www/html/thirdparty/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php:18\nStack trace:\n#0 /var/www/html/thirdparty/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php(155): DI\Definition\Exception\InvalidDefinition::create()\n#1 /var/www/html/thirdparty/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php(71): DI\Definition\Resolver\ObjectCreator->createInstance()\n#2 /var/www/html/thirdparty/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(64): DI\Def in /var/www/html/thirdparty/vendor/php-di/php-di/src/Definition/Exception/InvalidDefinition.php on line 18
No errors in mongo or filecloud

Hi @covenantpella

Please share the server logs in debug mode to further analysis.

To enable debug mode open the file /var/www/html/config/cloudconfig.php and locate the following line

// … Advanced Settings
define(“TONIDOCLOUD_OP_MODE”, “PROD” ); // < VALID values are DEV | PROD
change the value PROD to DEV and save the changes.

Now reproduce the error again by trying to access your FileCloud site and then share the logs from the below path.

/var/www/html/scratch/logs

I changed that setting and the it started working for some reason. Just to check, I changed it back to prod, and it stopped working. Something strange with that.

Hi @covenantpella

Thank you for the update.

Please share us the cloudconfig file and logs from the below path.

/var/www/html/scratch/logs

023-09-21 19:30:01.318834 DEBUG: CRON: – Using key record cronrunninglock_covenantweb
2023-09-21 19:30:01.320803 DEBUG: CRON: – Starting –
2023-09-21 19:30:01.328471 DEBUG: CRON: – Running CRON for site: ** default **
2023-09-21 19:30:01.369297 DEBUG: processDeferredEvents
2023-09-21 19:30:01.404310 DEBUG: CRON: Admin Summary: Processed 2 hours ago, skipping
2023-09-21 19:30:01.405815 DEBUG: CRON: SPLA: Not a SPLA license, skipping
2023-09-21 19:30:01.408038 DEBUG: CRON: Auto Sync AD Groups Skipped, Only 2.665 passed since last sync. Check interval 24
2023-09-21 19:30:01.408149 DEBUG: CRON: Disabling Expired Users
2023-09-21 19:30:01.410408 DEBUG: CRON: No Expired Users. Skipping Disable Expired Users
2023-09-21 19:30:01.425326 DEBUG: CRON: ShareManager - Expiring/Expired shares actions, only 2 hours passed since the last update, skipping
2023-09-21 19:30:01.431281 DEBUG: CRON: Attempted sending FileChange Notification but 15 minutes has not elapsed!
2023-09-21 19:30:01.438350 DEBUG: /var/www/html/src/Core/Subsystem/Analytics/Report/ReportManager.php:runReport
2023-09-21 19:30:01.438462 DEBUG: /var/www/html/src/Core/Subsystem/Analytics/Report/ReportManager.php : populateFactory Loading query handler from /var/www/html/app/report
2023-09-21 19:30:01.446019 DEBUG: /var/www/html/app/report/userqueryhandler.class.php:validateParametersFC_USER_QUERY_HANDLER_#QUERY_GET_EMAILS_SENT
2023-09-21 19:30:01.454461 DEBUG: getQueuedResponse : Generating report for FC_USER_QUERY_HANDLER
#_QUERY_GET_EMAILS_SENT
2023-09-21 19:30:01.461027 DEBUG: CRON: GEO IP Disabled. Skipping geo-location retrieval
2023-09-21 19:30:01.462548 DEBUG: CRON: Checking for a new FileCloud version. Processing…
2023-09-21 19:30:01.462632 DEBUG: CRON: new FileCloud version notification was disabled by Admin, skipping
2023-09-21 19:30:01.472380 INFO: [MetadataManager] Fixing Exif Exposure Time description…
2023-09-21 19:30:01.473467 INFO: [MetadataManager] Fixing Exif Exposure Time description: SKIPPED
2023-09-21 19:30:01.483985 DEBUG: CRON: No jobs found to execute
2023-09-21 19:30:01.699340 DEBUG: Array
(
[REPORT_TIME] => 09/21/2023 07:30:01 pm
[NODEIP] => 127.0.1.1
[NODENAME] => covenantweb
[PHP_OS] => Linux
[PHP_VERSION] => 7.4.22
[FILECLOUD_VERSION] => 21.1.2.15173
[MESSAGE_QUEUE] => ACTIVE
[SCRATCH_FOLDER_SIZE] => 137.12 MB
[SCRATCH_DISK_TOTAL_USED] => 195.8 GB
[SCRATCH_DISK_FREE] => 157.47 GB
)

2023-09-21 19:30:01.706420 DEBUG: CodeLathe\Core\Common\Utility\KeyRecord\KeyRecord Object
(
[m_keyrecord:CodeLathe\Core\Common\Utility\KeyRecord\KeyRecord:private] => Array
(
[_id] => MongoDB\BSON\ObjectId Object
(
[oid] => 6105abc9be338768c276572a
)

        [key] => NODE_INFO_KEY
        [value] => Array
            (
                [covenantweb_127_0_1_1] => Array
                    (
                        [REPORT_TIME] => 09/21/2023 07:30:01 pm
                        [NODEIP] => 127.0.1.1
                        [NODENAME] => covenantweb
                        [PHP_OS] => Linux
                        [PHP_VERSION] => 7.4.22
                        [FILECLOUD_VERSION] => 21.1.2.15173
                        [MESSAGE_QUEUE] => ACTIVE
                        [SCRATCH_FOLDER_SIZE] => 137.12 MB
                        [SCRATCH_DISK_TOTAL_USED] => 195.8 GB
                        [SCRATCH_DISK_FREE] => 157.47 GB
                    )

            )

    )

)

2023-09-21 19:30:01.711345 INFO: MQ Service… OK
2023-09-21 19:30:01.713045 DEBUG: CRON: Daily Cron Skipped. Already Executed.
2023-09-21 19:30:01.763732 DEBUG: CRON: Updating Cached Values. storage: 1872033091 users: 5 license expires: 2024-07-05
2023-09-21 19:30:01.776400 DEBUG: CRON: – doGlobalCron Using key record scratchtmpclean_covenantweb
2023-09-21 19:30:01.779456 DEBUG: CRON: – End –
2023-09-21 19:30:01.779981 DEBUG: END timing op: – [composerReady=39][registerReady=49][containerReady=62][siteReady=92][loggerReady=94][runtimeReady=96][cleanupReady=558]
2023-09-21 19:30:01.898243 DEBUG: BACKGROUND : [PARALLEL] Calling : CodeLathe\Core\Subsystem\Analytics\Report\ReportManager:executeQuery
2023-09-21 19:30:01.899026 DEBUG: /var/www/html/src/Core/Subsystem/Analytics/Report/ReportManager.php:executeQuery
2023-09-21 19:30:01.899240 DEBUG: /var/www/html/src/Core/Subsystem/Analytics/Report/ReportManager.php : populateFactory Loading query handler from /var/www/html/app/report
2023-09-21 19:30:01.902459 DEBUG: /var/www/html/app/report/userqueryhandler.class.php:executeQueryBg : FC_USER_QUERY_HANDLER_#_QUERY_GET_EMAILS_SENT
2023-09-21 19:30:01.902770 DEBUG: /var/www/html/app/report/userqueryhandler.class.php:getEmailsSentReport: Generating Emails Sent in the last 24 h Report
2023-09-21 19:30:01.903499 DEBUG: Generate Emails Sent Report - date from: 1695256201000
2023-09-21 19:30:14.516537 DEBUG: END timing op: – [composerReady=39][registerReady=49][containerReady=67][siteReady=107][loggerReady=110][runtimeReady=112][cleanupReady=197]
2023-09-21 19:30:44.231401 DEBUG: END timing op: – [composerReady=37][registerReady=41][containerReady=50][siteReady=80][loggerReady=83][runtimeReady=85][cleanupReady=107]
2023-09-21 19:30:44.455416 DEBUG: END timing op: – [composerReady=39][registerReady=48][containerReady=67][siteReady=114][loggerReady=107][runtimeReady=109][cleanupReady=128]
2023-09-21 19:30:44.571524 DEBUG: END timing op: – [composerReady=39][registerReady=48][containerReady=66][siteReady=127][loggerReady=131][runtimeReady=136][cleanupReady=273]
2023-09-21 19:31:14.538979 DEBUG: END timing op: – [composerReady=40][registerReady=49][containerReady=68][siteReady=100][loggerReady=103][runtimeReady=105][cleanupReady=194]
2023-09-21 19:31:44.340755 DEBUG: END timing op: – [composerReady=41][registerReady=51][containerReady=69][siteReady=133][loggerReady=138][runtimeReady=143][cleanupReady=191]
2023-09-21 19:31:44.558175 DEBUG: END timing op: – [composerReady=40][registerReady=49][containerReady=68][siteReady=99][loggerReady=101][runtimeReady=104][cleanupReady=210]
2023-09-21 19:31:44.591087 DEBUG: END timing op: – [composerReady=49][registerReady=58][containerReady=78][siteReady=133][loggerReady=125][runtimeReady=128][cleanupReady=148]
2023-09-21 19:32:14.564382 DEBUG: END timing op: – [composerReady=40][registerReady=44][containerReady=53][siteReady=83][loggerReady=85][runtimeReady=88][cleanupReady=176]
2023-09-21 19:32:44.331222 DEBUG: END timing op: – [composerReady=42][registerReady=51][containerReady=71][siteReady=133][loggerReady=138][runtimeReady=142][cleanupReady=164]
2023-09-21 19:32:44.568895 DEBUG: END timing op: – [composerReady=39][registerReady=48][containerReady=58][siteReady=89][loggerReady=91][runtimeReady=93][cleanupReady=185]
2023-09-21 19:32:44.584265 DEBUG: END timing op: – [composerReady=41][registerReady=50][containerReady=70][siteReady=142][loggerReady=134][runtimeReady=137][cleanupReady=156]
2023-09-21 19:33:14.649141 DEBUG: END timing op: – [composerReady=40][registerReady=50][containerReady=69][siteReady=131][loggerReady=136][runtimeReady=141][cleanupReady=231]

Hi @covenantpella

Please upload the log file and config file on the below link along with error screenshot you are receiving while accessing the site.

I no longer get the error when accessing the site.

1 Like