Quantcast
Channel: Installing and upgrading help
Viewing all 47390 articles
Browse latest View live

Re: Upgrade of 404 stable failed via git

$
0
0
by Matt Wallace.  

Yup, especially as other PHP apps are working fine, and this only happened after the upgrade via git to Moodle...

Re: Upgrade of 404 stable failed via git

$
0
0
by Howard Miller.  

Well, it's easy to confirm that it's not Moodle...

<?php

$result = is_dir('fred');

Re: Upgrade of 404 stable failed via git

$
0
0
by Matt Wallace.  

Thanks - that put me on to the right course of action as this code worked from the command line but not from the web server.

Despite the fact that I had not manually changed the PHP configuration for some months, the socket path had changed either in the PHP FPM pool config or the Nginx config for this site.  This must have been done by a debian package change as I'm the only person with access to that server.

I updated the nginx config for the site to point to the new path and it is all working again.

Re: Can a teacher create zoom meeting?

$
0
0
by Jamtech 717.  

Thank you all and I got the solution.
Admin needs to load teacher emails under user management in Zoom and allow the licensed. Zoom will send the verification mails on that teacher emails after that teacher can create zoom meeting link.

Re: Can a teacher create zoom meeting? [SOLVED]

$
0
0
by Visvanath Ratnaweera.  

Good to know. I remember the list of teacher e-mails but never had to do it. I believe the difference is, without the teacher e-mails it is always the meeting of the same account (the site account) and subjects to its limitations, for example the number of parallel meetings. With teacher accounts, the meetings belong to the teachers, so more parallel meetings are possible. Is that correct? Could you post the links to the documentation?

Re: Upgrade of 404 stable failed via git [SOLVED]

$
0
0
by Visvanath Ratnaweera.  

Is it a "location" in Nginx? Could you post the part of the nginx.conf before and after?

Cloning an existing production to create a slimmer version as development

$
0
0
by Tamtomo Abdi Negoro.  

Hi everyone,

Something bad has happened to our development server and we need to have it ready again as soon as possible, and the only source we have is from production server.

The thing is, the size of moodledata on production server is already humongous, and I am wondering whether I could just copy a smaller part of it to our development along with the moodle folder and get it to work? I tried not copying and the moodle copy won't launch.

If anyone here can shed some light on whether it can be done, I'd be very grateful.

Thank you

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Howard Miller.  

No.

The file area is a tree-structured hash and there's no way to extract just a part of it.

Re: Cloning an existing production to create a slimmer version as development

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Ken Task.  

Does your setup have the ability to attach to a data device with space enough to handle your producton moodledata?

If so, you could clone the production moodledata to the data device moodledata.  Clone production code and DB to a test mirror on same server.   Edit config.php of the clone and change location/db + the location of the cloned moodledata on the data device.

'SoS', Ken

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Visvanath Ratnaweera.  

Consider the advice above "creative" (means with built-in surprises). You need to be that much flexible and also be clear what you expect from the new development server.

In fact, after seeing that your are on a shaky platform, ref. Re: How to bulk upload completed course, I'm not sure whether my "slim" copy was a good idea. BTW, do you know why the database server died? How did you recover? 
 
P.S. It would have been better if those questions were answered in the original thread. Ref. Code of conduct> Provide feedback. It is too late now.

Re: Can a teacher create zoom meeting? [SOLVED]

Re: Attempt to restore course fails (solved)

$
0
0
by John Smith.  

Hi François,

It looks like the issue is related to HTML character entities in the title of the 'Text and media area' causing the restore process to truncate course sections. Here’s a concise summary of the solution:

  1. Remove HTML Character Entities: Edit the title in the 'Text and media area' to remove any HTML character entities, such as those for "<script>".
  2. Redo the Backup: Update the course backup with the corrected title.
  3. Retest the Restore: Attempt the course restore again on your sandbox environment.

Ensure that the title fields are free of any problematic HTML code to prevent similar issues in the future. If you encounter further issues, consider checking Moodle’s documentation or reaching out to their support for additional assistance.

Thank you for sharing the solution!

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Tamtomo Abdi Negoro.  

It was entirely human error, the VM guy should've deleted the one on another IP, but because he misread 1 number.. he deleted that one instead. And since it is labeled development server, there's no backup.

Now we're going to set up backup for Moodle development server.

Thank you so very much for the suggestion, will try your 'slim' version as soon as I got home

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Tamtomo Abdi Negoro.  

That's the thing.. will need to wait until a new storage is ordered, configured and ready for use which would take about a week or so because of our administration. And exactly as Visvanath has informed, I would prefer not to have production data carried to development because it contains sensitive information as well. But, if it have to come to that, I have no choice but to do data cleansing afterwards

Re: Cloning an existing production to create a slimmer version as development

$
0
0
by Ken Task.  

One could have a virtual apache/nginx on same server as production for code and DB.   The 'test instance' restricted by IP ... for moodledata ...  Is there a reason your entity couldn't use a mounted Google Bucket or similar?   That's 'leased' ... detachable ... and doesn't require any investment in hardware (cheaper).

Once bucket is attached and mounted, production moodledata could be rsync'd to the bucket.  Test instance uses the bucket mounted moodledata.

If one uses moosh (command line only) on test instance, a looping bash shell script can reset all courses in the test instance ... removing all student roles and data from courses.  Courses then become shells.  You could then remove all student accounts.  Before using set test instance to 'nomailever'.

I have done similar to above.  Occasional bucket hickups but easily solved by unmounting then mounting again.

Think a bucket would be cheaper than true hardware.

Anyhooo ... more than one way to 'skin a cat' as the saying goes!

'SoS', Ken

Re: When I check 'System status' it's showing a number of tasks that are failing

$
0
0
von John Smith.  

the specific task assignfeedback_editpdf\task\convert_submission might not be visible in the task logs you’re checking. Here’s where you can look for it:

Check the Scheduled Tasks List:
Go to Site Administration > Server> Scheduled tasks to see if the task is listed there and check its status.

Look in the Task Log Table Directly:
You can query the database to check for task logs related to this specific task. Use a SQL client to run:

sql
Copy code
SELECT * FROM mdl_task_adhoc WHERE classname = 'assignfeedback_editpdf\task\convert_submission';
Verify Task Execution:
If the task isn’t listed in the logs, it may not have been executed yet or might have completed without logging. Ensure that the. cron job is running properly and check its output for any errors.

If you still can't find the task, double-check that the task is correctly configured and scheduled in Moodle.

Moodle in docker environent

$
0
0
by Steve Pelham.  

I have a docker environment comprised of 3 docker containers: 
php-fpm 
nginx 
mariadb 

I'm trying to install a moodle in that environment. The install process gets stuck at the php script "user/editadvanced.php". "user/editadvanced.php" looks like so:

erterz

If I fill in the form and click "Update Profile" and get:

zewt

If I click on "Skip to main content" i get redirected to "user/editadvanced.php". Loading "user/editadvanced.php" In the console of the browser I can see  "net::ERR_ABORTED 404 (Not Found)" for the file admin/index.php. That points to the line 33 (and lines 35 and 36) of user/editadvanced.php. In the line 33 the js-file "http://localhost:8080/lib/javascript.php/1723639906/lib/babel-polyfill/polyfill.min.js" is supposed to be loaded.

When I load  "http://localhost:8080/lib/javascript.php/1723639906/lib/babel-polyfill/polyfill.min.js" maunally it gets redirected to "user/editadvanced.php". That goes for each file that has "1723639906" in its path. Is "1723639906" a key or similar in connection with boost theme ? And if so, is it possibleUseful to disable it ?

How ever the prob remains. In the Logs of the nginx container I get in case of a reload of "user/editadvanced.php" the following logs:

172.18.0.1 - - [16/Aug/2024:15:44:37 +0000] "GET /theme/styles.php/boost/1723822570_1/all HTTP/1.1" 303 447 "http://localhost:8080/user/editadvanced.php?id=2""Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36""-"
2024/08/16 15:44:37 [error] 33#33: *203 FastCGI sent in stderr: "PHP message: Cannot find session record ie731vdqrb20msjtss8lohpus4 for user 2, creating new session" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET /lib/javascript.php/1723822570/lib/polyfills/polyfill.js HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost:8080", referrer: "http://localhost:8080/user/editadvanced.php?id=2"
172.18.0.1 - - [16/Aug/2024:15:44:37 +0000] "GET /lib/javascript.php/1723822570/lib/polyfills/polyfill.js HTTP/1.1" 303 447 "http://localhost:8080/user/editadvanced.php?id=2""Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36""-"
2024/08/16 15:44:37 [error] 33#33: *188 FastCGI sent in stderr: "PHP message: Cannot find session record ie731vdqrb20msjtss8lohpus4 for user 2, creating new session" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET /lib/javascript.php/1723822570/lib/babel-polyfill/polyfill.min.js HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost:8080", referrer: "http://localhost:8080/user/editadvanced.php?id=2"

So this points to the session management. I made a php-test script for sessions. It files the session data correctly in the session path. So the path is writable. 
Do you have experiences on how to set up sessions in such a set up ?

Thanks for any help, hint etc.

Best,

Steve

Re: Moodle in docker environent

$
0
0
by Howard Miller.  

My development environment uses Docker (nginx, php-fpm, Mariadb and Redis) and works fine without any particular configuration. Noting the lack of styling on your example page - before we go any further - have you got nginx configured properly? See Nginx (it being in a container is irrelevant).

Failing that, you're going to have to give us a detailed description of your setup.

Bear in mind that there's an "official" docker-compose script for developers here, https://github.com/moodlehq/moodle-docker. I found it way too complicated for my needs, so created my own but you might find it useful.

Re: Moodle in docker environent

$
0
0
by Visvanath Ratnaweera.  

 
Yeah, I'm keen to know the tutorial you used to set this Moodle on Docker.
 
P.S. Generally this kind of system administration questions are not directly for the Moodle developers. I would say Installing and upgrading help is the right place.
Viewing all 47390 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>