hazamashoken
hazamashoken
Explore posts from servers
RRailway
Created by hazamashoken on 8/21/2024 in #✋|help
Dockerfile Permission denied on apt-get ?
Project ID: 30421e78-0af4-4e56-8bc5-4890f4ffe42d In service: hiveMQ, Initialally I'm trying to deploy from the hiveMQ template but it seem to throw this error on apt-get ? Now i'm confused
#7 0.095 E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y nginx" did not complete successfully: exit code: 100

-----
> [3/4] RUN apt-get update && apt-get install -y nginx:



0.095 E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

-----



1 warning found (use --debug to expand):

- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 21)



Dockerfile:13

-------------------

12 | # Install Nginx for reverse proxy

13 | >>> RUN apt-get update && \

14 | >>> apt-get install -y nginx

15 |

-------------------

ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y nginx" did not complete successfully: exit code: 100
#7 0.095 E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y nginx" did not complete successfully: exit code: 100

-----
> [3/4] RUN apt-get update && apt-get install -y nginx:



0.095 E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

-----



1 warning found (use --debug to expand):

- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 21)



Dockerfile:13

-------------------

12 | # Install Nginx for reverse proxy

13 | >>> RUN apt-get update && \

14 | >>> apt-get install -y nginx

15 |

-------------------

ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y nginx" did not complete successfully: exit code: 100
10 replies
DTDrizzle Team
Created by hazamashoken on 4/5/2024 in #help
POSTGRES_URI is required during build time when using with next-auth/beta ?
So I have this simple google auth build with next-auth + drizzle orm pg adapter. for testing purposes, currently there's only /api/auth/[...nextauth]/route.ts and auth.js for simple authentication This cause ERR_INVALID_URL that came from DrizzleAdapterto be thrown during npm run build Even though it can be change again during run-time, it just very annoying to have to inject this variable in during build process. Anyone have any solution or workaround that does not require setting POSTGRES_URI during build-time and changing it again ? thank you.
// route.ts
export { GET, POST } from "@/auth";
// route.ts
export { GET, POST } from "@/auth";
// auth.js
import { DrizzleAdapter } from "@auth/drizzle-adapter";
import { db } from "@/lib/db/clients";
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";

export const {
handlers: { GET, POST },
auth,
} = NextAuth({
adapter: DrizzleAdapter(db),
session: {
strategy: "database",
},
providers: [Google],
});
// auth.js
import { DrizzleAdapter } from "@auth/drizzle-adapter";
import { db } from "@/lib/db/clients";
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";

export const {
handlers: { GET, POST },
auth,
} = NextAuth({
adapter: DrizzleAdapter(db),
session: {
strategy: "database",
},
providers: [Google],
});
2 replies