Backup issue - undefined method `every' for Jobs::CreateBackup:Class


(Allen - Watchman Monitoring) #1

I’m seeing a ton of backup errors also in a forum I run. 16027 so far

I just rebuilt completely, and get this still.

This is my only plugin, but try discourse-details, which failed to bootstrap so I remove the line from the app.yml but discourse-details remained in the container, so I removed it, no change

	
Job exception: undefined method `every' for Jobs::CreateBackup:Class

Details
/var/www/discourse/lib/scheduler/schedule_info.rb:79:in `schedule!'
/var/www/discourse/lib/scheduler/manager.rb:221:in `schedule_next_job'
/var/www/discourse/lib/scheduler/manager.rb:199:in `block in tick'
/var/www/discourse/lib/scheduler/manager.rb:246:in `block in lock'
/var/www/discourse/lib/distributed_mutex.rb:21:in `synchronize'
/var/www/discourse/lib/scheduler/manager.rb:245:in `lock'
/var/www/discourse/lib/scheduler/manager.rb:198:in `tick'
/var/www/discourse/config/initializers/100-sidekiq.rb:35:in `block (2 levels) in <top (required)>'

I can't get a good backup - it fails after after_create_hook
How to troubleshoot sidekiq?
(Daniela) #2

You are lucky, I have more than 40.000 errors Automatic daily backups do not work


(Jeff Atwood) #3

Sounds like you were both out of disk space? Anything we can look at here @zogstrip?


(Allen - Watchman Monitoring) #4

I just checked another discourse I manage, and its backups stopped on December 12th. It’s disk space is fine: 30G volume, 67% free

it’s two commits behind on docker_manager (46bee3a)

and 47 commits behind on discourse (3c3d7c0)


I can't get a good backup - it fails after after_create_hook
(Régis Hanol) #5

I don’t think it’s related to disk space. @watchmanmonitor can you update to latest and see if that error persists? Seems weird that there’s an error on a line that doesn’t exist anymore…


(Allen - Watchman Monitoring) #6

There’s one instance of mine that’s been giving me fits. I’ll call it forum (since the other three I managed have different subdomains).

forum was giving me sidekiq errors, and generally being unhappy since I upgraded it to 2gb RAM, but that’s fixed after a complete removal of docker, a dose of rm -rf /var/lib/docker re-installing and a fresh bootstrap.

Sidekiq is happy now, but Im still looking at

Job exception: undefined methodevery’ for Jobs::CreateBackup:Class`

/var/www/discourse/lib/scheduler/schedule_info.rb:79:in `schedule!'
/var/www/discourse/lib/scheduler/manager.rb:221:in `schedule_next_job'
/var/www/discourse/lib/scheduler/manager.rb:199:in `block in tick'
/var/www/discourse/lib/scheduler/manager.rb:246:in `block in lock'
/var/www/discourse/lib/distributed_mutex.rb:21:in `synchronize'
/var/www/discourse/lib/scheduler/manager.rb:245:in `lock'
/var/www/discourse/lib/scheduler/manager.rb:198:in `tick'
/var/www/discourse/config/initializers/100-sidekiq.rb:35:in `block (2 levels) in <top (required)>'

I can enter the container and navigate to /var/www/discourse/public/backups/default
where I see some old backups, and an manually trigger a new backup.

If I look at plugins

root@www:/var/www/discourse/plugins# ls -al
total 32
drwxr-xr-x 10 discourse discourse 4096 Dec 20 17:22 .
drwxr-xr-x 42 discourse discourse 4096 Dec 20 17:40 ..
drwxr-xr-x  4 discourse root      4096 Dec 20 17:21 discourse-details
drwxr-xr-x  5 discourse root      4096 Dec 20 17:22 discourse-solved
drwxr-xr-x  8 discourse root      4096 Dec 20 17:22 docker_manager
drwxr-xr-x  4 discourse discourse 4096 Dec 20 17:21 lazyYT
drwxr-xr-x  2 discourse root      4096 Dec 20 17:22 plugins
drwxr-xr-x 12 discourse discourse 4096 Dec 20 17:21 poll

then I see more folders there than I expect, here’s the related bits of my app.yml

        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git

I had recently restored this backup from another host and it booted fine, so I added in discourse-details and discourse-solved, but the forum failed to rebuild, so I took out the plugins and tried to rebuild again.

at this point, I’m tempted to manually remove the discourse-details folder and see if this fixes everything.


(Allen - Watchman Monitoring) #7
./launcher enter app
rm /var/www/discourse/plugins/discourse-details
exit
./launcher rebuild app

didn’t stop the Job exception: undefined methodevery’ for Jobs::CreateBackup:Class` errors


(Régis Hanol) #8

Preeetty sure that error has nothing to do with the discourse-details plugin. This plugin does not use any asynchronous jobs.


(Allen - Watchman Monitoring) #9

what’s being scheduled here:

could this be anything related to the hostname?

my app.yml has the right hostname, but my host’s name is not the same.


(Allen - Watchman Monitoring) #10

I moved to a new VM. Not sure what caused this, but can’t spend more time on it.


(Régis Hanol) #11

Did moving to a new VM fix it?


(Allen - Watchman Monitoring) #12

I setup the new VM, bootstrapped a fresh discourse, then restored. I got this error, restored again, and I haven’t seen that error come back yet.


(Sam Saffron) #13