[schools] Wizard for new site is failing every time

Hi guys, greetings from Colombia, South America.
First of all, let me say that this is an awesome piece of software and that I keep finding more reasons to like it and get involved. I know some high end propietary alternatives and I spent more than 2 years supporting and customizing open source ERP products. The one that was by far the most robust and complete of all of them, and in position of competing against the propietary ones was adempiere. And the more I learn about frappe and erpnex, the more i feel like the others are so last century, and it’s weird because I used to hate ERP because they were ugly, monstrous and counterintuitive for everything, but this is a masterpiece. I hope my skills one day will be of use for frappe and erpnext.

Well getting down to business. I was using the site on production with the ova from the official link, and everything was quite good. I was using https with an nginx reverse proxy from another machine… until I decided to update bench for last version. I couldn’t resist the impulse to try some new features on 8 as the kanban views and the email inbox, or the employee loan… The fact is updating didn’t went so smooth, and there were git problems, some fields were not there…(where?) so I decided to trash my perfeclty funcioning instance (not so much info anyway) based on almost everyone reporting success on update, I downloaded a fresh ova and run the update inmediately.

Few hours later i had my system running… off course after I realized that my setup for ssl was not working I was getting a lot of errors form scripts… so I had to use plain http. I also had some problems with gunicorn and websockets, and prints and wkhtmltopdf, but after a lot of sorting I’m still stuck with something. I have multitenant on. I have two sites. The first one I set up took me on a trip of fixes. But now is live. But every time I try to set up the wizard for the second site I get errors. At first they were caused by me. I misconfigured nginx on the gateway, and I was blocking the websocket. but now Im clear. I even remove the site and installed it again in case I had ruined the db when the socket was dying on me. But now I don’t know what to do next. If some one could shed some light on this. I’m posting the error obtained from the JSConsole.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 42, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py”, line 38, in setup_complete
frappe.get_attr(method)(args)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 42, in setup_complete
create_program(args)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 576, in create_program
program.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 254, in save
self.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 188, in insert
self.set_new_name()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 334, in set_new_name
set_new_name(self)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/naming.py”, line 45, in set_new_name
frappe.throw(
("{0} is required").format(doc.meta.get_label(fieldname)))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 316, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 306, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 279, in _raise_exception
raise raise_exception, encode(msg)
ValidationError: Program Code es requerido

1 Like

@t3nshi welcome to the community and thank you for your kind words :smile:

We will look into this asap. Thanks for rerporting!

Hi @t3nshi
The issue has been fixed. You can pull the latest repo now.

That’s awesome! I wil try ASAP and report back here.

1 Like

Perfect!! I just updated the bench and now completed the wizard. It’s alive!!!
Thanks a lot for looking into this. I was expecting something like “you forgot this or try this” Thanks a lot.

2 Likes