OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.07k stars 206 forks source link

digit-based wlan password is not added to OVM configuration #57

Closed mhrynovets closed 3 years ago

mhrynovets commented 3 years ago

Script don't want to add RPI wlan configuration in case of wlan password is digit only. Further setup over wifi is not available, wlan should be added with sudo omv-firstaid or wired cable should be used.

Output of installScript:

Adding eth0 to openmedivault database ...
Adding wlan0 to openmedivault database ...
Traceback (most recent call last):
  File "/usr/sbin/omv-confdbadm", line 76, in <module>
    sys.exit(main())
  File "/usr/sbin/omv-confdbadm", line 72, in main
    return cmd_inst.execute(*sys.argv)
  File "/usr/share/openmediavault/confdbadm/commands.d/update.py", line 57, in execute
    obj.set_dict(cmd_args.data)
  File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict
    self.set(key, value, validate)
  File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 184, in set
    self.model.property_validate(name, value)
  File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 272, in property_validate
    self.schema.validate(value, name)
  File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 175, in validate
    self._validate_type(value, schema, name)
  File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 229, in _validate_type
    raise last_exception
  File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 209, in _validate_type
    self._validate_string(value, schema, name)
  File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 278, in _validate_string
    % ("NULL" if (value is None) else str(value)),
openmediavault.json.schema.SchemaValidationException: wpapsk: The value '12345678' is not a string.
IP address may change and you could lose connection if running this script via ssh.
ryecoaaron commented 3 years ago

The install script puts the password in quotes but OMV still thinks it is an integer. Are you putting the password in quotes in the wpa_supplicant file? If you are, there isn't anything else the install script can do to convince OMV that is a string instead of a number.

mhrynovets commented 3 years ago

Yep, password in wpa_supplicant.conf is stored in doublequotes. Wifi setup was made by sudo raspi-config and should be correct.

ryecoaaron commented 3 years ago

I tried a few things. If I add single quotes, they are added to the password. So, not much I can do here. All I can suggest is follow the guide that will require setting up the system via ethernet and then configure wifi. Either that or change your wifi password to someting that is a little more complex. https://forum.openmediavault.org/index.php?thread/28789-installing-omv5-on-raspberry-pi-s-armbian-sbc-s-i386-32-bit-platforms/