Stuck on "Sorry! We will be back soon.", after Verifying

There’s your problem

1 Like

I understand…

Can you give me some tips of how can I solve it?

Thanks!

ok my guess is you want to delete files here to free up space.

What is the problem that you can’t access this?

Do a

df -h

To see how much space you have free. Sometimes Los caches etc grow immensely and you may have to delete the offending files first.

I’m trying to follow, consider my noob linux level, a lot of post I’ve seeing on the net.

My reality at now is:

ubuntu@ip-172-31-86-84:/$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 488M 0 488M 0% /dev
tmpfs 100M 3.3M 96M 4% /run
/dev/xvda1 7.7G 7.6G 110M 99% /
tmpfs 496M 0 496M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 496M 0 496M 0% /sys/fs/cgroup
/dev/loop0 17M 17M 0 100% /snap/amazon-ssm-agent/734
/dev/loop1 88M 88M 0 100% /snap/core/5548
/dev/loop2 88M 88M 0 100% /snap/core/5328
/dev/loop3 13M 13M 0 100% /snap/amazon-ssm-agent/295
/dev/loop4 13M 13M 0 100% /snap/amazon-ssm-agent/495
/dev/loop5 87M 87M 0 100% /snap/core/5145
tmpfs 100M 0 100M 0% /run/user/1000

ubuntu@ip-172-31-86-84:/$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 124813 322 124491 1% /dev
tmpfs 126814 440 126374 1% /run
/dev/xvda1 1024000 173452 850548 17% /
tmpfs 126814 1 126813 1% /dev/shm
tmpfs 126814 4 126810 1% /run/lock
tmpfs 126814 16 126798 1% /sys/fs/cgroup
/dev/loop0 15 15 0 100% /snap/amazon-ssm-agent/734
/dev/loop1 12783 12783 0 100% /snap/core/5548
/dev/loop2 12860 12860 0 100% /snap/core/5328
/dev/loop3 13 13 0 100% /snap/amazon-ssm-agent/295
/dev/loop4 13 13 0 100% /snap/amazon-ssm-agent/495
/dev/loop5 12847 12847 0 100% /snap/core/5145
tmpfs 126814 4 126810 1% /run/user/1000

I don’t know what to do… Can you help?

Hi

You have a few problems here. Firstly you need to clear space in your root partition. Google the command on CMD line to find really big files to see where you can save space. You also have your /snap partitions 100% full too so there may well need getting more space on these

I’m sorry… I’ve spent all day trying to do this simple step… seek and delete the huge files, but I’m a windows man, trying to do this on AWS…

I know that I still have to fix something, but I’m starting to be afraid of ruin all the things.

I went to AWS EC2, and double the size of xvda1:

root@ip-172-31-86-84:/home/frappe/frappe-bench# df -h
Filesystem Size Used Avail Use% Mounted on
udev 488M 0 488M 0% /dev
tmpfs 100M 3.3M 96M 4% /run
/dev/xvda1 16G 7.4G 8.1G 48% /
tmpfs 496M 0 496M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 496M 0 496M 0% /sys/fs/cgroup
/dev/loop0 88M 88M 0 100% /snap/core/5328
/dev/loop1 88M 88M 0 100% /snap/core/5548
/dev/loop2 17M 17M 0 100% /snap/amazon-ssm-agent/734
/dev/loop3 87M 87M 0 100% /snap/core/5145
/dev/loop4 13M 13M 0 100% /snap/amazon-ssm-agent/495
/dev/loop5 13M 13M 0 100% /snap/amazon-ssm-agent/295
tmpfs 100M 0 100M 0% /run/user/1000

I’m still seeing the “sorry, its…” page. I did the backups, have made some customizations on Doctypes…

I really don’t know what to do.

I’m now trying to solve in a diferent way… Trying to backup and restore in another server… But, it doesn’t work also…

Back to the files:


I can see some git files and, looking close the mysql folder…

But, still stuck on what file I need to delete… By the way, I increased the size, and, now I have space to load things… So, I don’t know if there is something that I need to do after solve this mysterious size issue…

The mysql data files are (normally) stored at /var/lib/mysql, which, from your picture, is in the red.
Also, you /home/frappe-bench subdir is full/red.
8GB is not enough space for what you are trying to achieve, so you need to change the partition sizes and/or capacity.
If you are new to linux, I recommend trying a single partition / instead of fixed sizes for /, /home, /var, tmp etc.
A minimalist approach would be
/boot ~200MB
swap ~512MB

The best way to experiment with linux is to create a few VM’s using something like VirtualBox - play around with one or 2 and see how it all works to determine the best option for when you work on your live AWS machine
/ the rest

1 Like

how much space do you think I’ll gonna need?

16-20GB would be a safe start point. 40GB would be better for future expansion.
I have installed a VM with only 12GB of disk, but it quickly ran into problems

OK. Thanks…

As you can see, I already increased the size of partition:

… but, I’m still stuck.

I have restarted all the services, and tryed to bench update:

From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling frappe_io
    INFO:bench.utils:git pull upstream master
    error: cannot open .git/FETCH_HEAD: Permission denied

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File “/home/frappe/.bench/bench/commands/update.py”, line 73, in _update
pull_all_apps(bench_path=bench_path, reset=reset)
File “/home/frappe/.bench/bench/app.py”, line 257, in pull_all_apps
remote=remote, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir)
File “/home/frappe/.bench/bench/utils.py”, line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull upstream master

But I can’t update…

I did also git in the apps/*.

Your console prompt indicates that you are logged in as user “ubuntu”. This user might not have permission in the /home/frappe subdirectory.

su frappe
cd ~/frappe-bench
bench update --reset

Will probably/hopefully work

unfortunately not… I’ve got the same:

frappe@ip-172-31-86-84:~/frappe-bench$ bench update --reset
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
INFO:bench.app:pulling frappe
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at 9d74acf Merge branch ‘hotfix’
INFO:bench.utils:find . -name “*.pyc” -delete
INFO:bench.app:pulling frappe_io
INFO:bench.utils:git fetch --all
error: cannot open .git/FETCH_HEAD: Permission denied

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File “/home/frappe/.bench/bench/commands/update.py”, line 73, in _update
pull_all_apps(bench_path=bench_path, reset=reset)
File “/home/frappe/.bench/bench/app.py”, line 252, in pull_all_apps
exec_cmd(“git fetch --all”, cwd=app_dir)
File “/home/frappe/.bench/bench/utils.py”, line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git fetch --all

If you don’t have any data in your system yet, can I recommend that you do a reinstall from scratch?

when I try to git pull on frappe_io, using ‘git pull’, I got:

frappe@ip-172-31-86-84:~/frappe-bench/apps/frappe_io$ git pull
error: cannot open .git/FETCH_HEAD: Permission denied

when I use ‘sudo git pull’:

frappe@ip-172-31-86-84:~/frappe-bench/apps/frappe_io$ sudo git pull
[sudo] password for frappe:
Sorry, user frappe is not allowed to execute ‘/usr/bin/git pull’ as root on ip-172-31-86-84.ec2.internal.

Maybe this file is causing the problem…

When you created user frappe, did you give it sudoers permission?

You might be better off doing a manual install using this

yes… It was running, but… after trying to use the Android app, it was stuck on login page… After, I tried to use the site login… and then, it was loading, on “Verifying…” status… and then, out of service…

Sorry - I have no experience/knowledge about the android app

Thanks… I’m just saying it because in could be the reason of the lack of space… maybe creating some temporary files, of something like… Thanks for your help!!