SCORM

Scorm not uploading

 
Picture of Salvatore DeMaio
Scorm not uploading
 

I set up a brand new Server with a clean install of Moodle.

When I try to drag and drop in a Scorm Package I get the following error: Error connecting to server.

Moodle 3.1.10+ (Build: 20180201)

CLEAN THEME came with Moodle 3.1.1

OS: Centos 7 server w/gui

Web server: apache

DB: MYSQL ver 14.14 Distrib 5.6.39

PHP: 5.6.33.

I have turned on debugging



 
Average of ratings: -
Picture of Matteo Scaramuccia
Re: Scorm not uploading
Core developersParticularly helpful MoodlersPlugin developers

Hi Salvatore,
did you check in the PHP error log for some more info about the error?
Does it happen only when uploading SCORM files or on any file upload via the Moodle File Picker in any activity?

HTH,
Matteo

 
Average of ratings: Useful (1)
Picture of Salvatore DeMaio
Re: Scorm not uploading
 

I have attached what I beleieve to be the PHP error log.  The error only happens when I upload scorm packages.


I ran this command to see if it would tell me location of log.

Linux

php --info | grep error 

The terminal will output the error log location. see attachment.


I also went into php.ini file and turned display errors, 1st line in grep command text file


 
Picture of Matteo Scaramuccia
Re: Scorm not uploading
Core developersParticularly helpful MoodlersPlugin developers

Hi Salvatore,

error_log => no value => no value
...
PHP Warning:  Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0

First, you need to fix the missing timezone: http://php.net/manual/en/timezones.europe.php .
Then, from your PHP info no error log is defined so you need to check the error log of Apache and not its access.log.

HTH,
Matteo

 
Average of ratings: Useful (2)
Picture of Salvatore DeMaio
Re: Scorm not uploading
 

Hello Matteo,

I fixed the timezone issue by setting it to America/New York.  I went o get a copy of the error log and mistakenly moved it instead of copying.  Now apache will not start, so moodle will not load.attached is the information I found out when I ran the command:

systemctl status httpd.service -l.  I am researching now any help would be appreciated.  Thanks

 
Average of ratings: -
Picture of Salvatore DeMaio
Re: Scorm not uploading
 
Seems to be a permission issue but I am unable to figure out what to do.

Ran command below to see permissions

[root@localhost /]# ls -laZ /var/log/httpd/
drwx------. root root system_u:object_r:httpd_log_t:s0 .
drwxr-xr-x. root root system_u:object_r:var_log_t:s0   ..
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180211
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180218
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180228
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180304
-rw-r--r--. root root unconfined_u:object_r:httpd_log_t:s0 error_log
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180211
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180218
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180225
-rw-r--r--. root root system_u:object_r:dosfs_t:s0     error_log-20180305


 
Average of ratings: -
Picture of Matteo Scaramuccia
Re: Scorm not uploading
Core developersParticularly helpful MoodlersPlugin developers

Hi Salvatore,
if you rename that file, Apache will recreat it with the proper permissions; otherwise, restore the SELinux policies for the httpd log folder:

# Check for issues: at least error_log doesn't fulfill the Apache log SElinux policy.
matchpathcon -V /var/log/httpd/* # Fix at least the issue in error.log. '-Rv' on the folder will fix everything restorecon -v /var/log/httpd/error_log

Refs:

HTH,
Matteo

 
Average of ratings: Useful (1)
Picture of Salvatore DeMaio
Re: Scorm not uploading
 

Thank you  Matteo.  I  renamed the error_log file and it recreated itself.  Moodle is up and running. Now back to the Scorm package.  I beleive I may have the answer.  I will respond by Friday. Thanks again

 
Average of ratings: -
Picture of Salvatore DeMaio
Re: Scorm not uploading
 
Thanks again Matteo, I am all set for now.  Being new to moodle, I forgot to zip my scorm packages before uploading.  Thanks for your help.  I have a new issue under courses if you have time to look at. Thanks again
 
Average of ratings: -