Power port to Power outlet connection #2351

Closed
opened 2025-12-29 17:25:09 +01:00 by adam · 3 comments
Owner

Originally created by @andre-lx on GitHub (Feb 6, 2019).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.5.5

Hi. When I try the connection between a power port and a power outlet, netbox returns an error.

Steps to Reproduce

  1. create a power port in a device
  2. create a power outlet in a pdu
  3. try to do a connection

Expected Behavior

Cable connection created.

Observed Behavior

If I didn't specify a length:

IntegrityError at /dcim/power-ports/59/connect/
null value in column "length_unit" violates not-null constraint
DETAIL: Failing row contains (11, 2019-02-06, 2019-02-06 11:06:36.054882+00, 59, 1, 5000, t, , , null, null, null, 27, 25).

If I specify a length:

DataError at /dcim/power-ports/59/connect/
value too long for type character varying(2)

Originally created by @andre-lx on GitHub (Feb 6, 2019). ### Environment * Python version: 3.6.8 * NetBox version: 2.5.5 Hi. When I try the connection between a power port and a power outlet, netbox returns an error. ### Steps to Reproduce 1. create a power port in a device 2. create a power outlet in a pdu 3. try to do a connection ### Expected Behavior Cable connection created. ### Observed Behavior If I didn't specify a length: IntegrityError at /dcim/power-ports/59/connect/ null value in column "length_unit" violates not-null constraint DETAIL: Failing row contains (11, 2019-02-06, 2019-02-06 11:06:36.054882+00, 59, 1, 5000, t, , , null, null, null, 27, 25). If I specify a length: DataError at /dcim/power-ports/59/connect/ value too long for type character varying(2)
adam closed this issue 2025-12-29 17:25:09 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 6, 2019):

I'm not able to replicate this on v2.5.5. Looks related to #2616, which was raised during the v2.5 beta. Did you try upgrading from a beta to the current release? This would result in missing migrations.

@jeremystretch commented on GitHub (Feb 6, 2019): I'm not able to replicate this on v2.5.5. Looks related to #2616, which was raised during the v2.5 beta. Did you try upgrading from a beta to the current release? This would result in missing migrations.
Author
Owner

@jbakklund commented on GitHub (Feb 6, 2019):

I'm not able to replicate this either.

@jbakklund commented on GitHub (Feb 6, 2019): I'm not able to replicate this either.
Author
Owner

@andre-lx commented on GitHub (Feb 6, 2019):

I didn't upgraded from beta to 2.5.5 but from 2.5.4.

Anyway I just start to make the connections in this version. Since we are reaching this point of detail at this time. So, @jeremystretch , that can be the problem.

Do you identify any problem in the database that can be easy to change in order to fix my bug? Otherwise I will try to identify and modify the database in a way to solve my problem.

@andre-lx commented on GitHub (Feb 6, 2019): I didn't upgraded from beta to 2.5.5 but from 2.5.4. Anyway I just start to make the connections in this version. Since we are reaching this point of detail at this time. So, @jeremystretch , that can be the problem. Do you identify any problem in the database that can be easy to change in order to fix my bug? Otherwise I will try to identify and modify the database in a way to solve my problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2351